mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-09-05 19:21:37 +00:00
Fix some 101 typos
This commit is contained in:
@@ -21,13 +21,13 @@ desiredState:
|
||||
image: dockerfile/nginx
|
||||
```
|
||||
|
||||
A pod definition is a declaration of a _desired state_. Desired state is a really important part of Kubernetes. Many things present a desired state to the system, and it is Kubernetes' responsibility to make sure that the current state matches the desired state. For example, when you create a Pod, you declare that you want the containers in it to be running. If the containers happen to not be running (program failure, ...), Kubernetes will continue to (re)create them for you until you delete the Pod.
|
||||
A pod definition is a declaration of a _desired state_. Desired state is a very important concept in the Kubernetes model. Many things present a desired state to the system, and it is Kubernetes' responsibility to make sure that the current state matches the desired state. For example, when you create a Pod, you declare that you want the containers in it to be running. If the containers happen to not be running (e.g. program failure, ...), Kubernetes will continue to (re-)create them for you in order to drive them to the desired state. This process continues until you delete the Pod.
|
||||
|
||||
See the [design document](../../DESIGN.md) for more details.
|
||||
|
||||
### Volumes
|
||||
|
||||
Now that's great for a static webserver, but what about persistent storage? We know that the container file system only lives as long as the container does, we need more persistent storage. To do this, you also declare a ```volume``` as part of your pod, and mount it into a container:
|
||||
Now that's great for a static web server, but what about persistent storage? We know that the container file system only lives as long as the container does, so we need more persistent storage. To do this, you also declare a ```volume``` as part of your pod, and mount it into a container:
|
||||
|
||||
```yaml
|
||||
apiVersion: v1beta1
|
||||
@@ -51,6 +51,7 @@ desiredState:
|
||||
```
|
||||
|
||||
Ok, so what did we do? We added a volume to our pod:
|
||||
|
||||
```yaml
|
||||
...
|
||||
volumes:
|
||||
|
Reference in New Issue
Block a user