Skip to content

Commit 18c3073

Browse files
authored
Merge branch 'master' into master
2 parents a213c71 + a196d0d commit 18c3073

File tree

15 files changed

+103
-103
lines changed

15 files changed

+103
-103
lines changed

docs/admin/daemons.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ title: Daemon Sets
77
* TOC
88
{:toc}
99

10-
## What is a _Daemon Set_?
10+
## What is a Daemon Set?
1111

1212
A _Daemon Set_ ensures that all (or some) nodes run a copy of a pod. As nodes are added to the
1313
cluster, pods are added to them. As nodes are removed from the cluster, those pods are garbage

docs/admin/static-pods.md

+5-5
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ Static pod can be created in two ways: either by using configuration file(s) or
1616

1717
### Configuration files
1818

19-
The configuration files are just standard pod definition in json or yaml format in specific directory. Use `kubelet --config=<the directory>` to start kubelet daemon, which periodically scans the directory and creates/deletes static pods as yaml/json files appear/disappear there.
19+
The configuration files are just standard pod definition in json or yaml format in specific directory. Use `kubelet --pod-manifest-path=<the directory>` to start kubelet daemon, which periodically scans the directory and creates/deletes static pods as yaml/json files appear/disappear there.
2020

2121
For example, this is how to start a simple web server as a static pod:
2222

@@ -48,10 +48,10 @@ For example, this is how to start a simple web server as a static pod:
4848
EOF
4949
```
5050
51-
2. Configure your kubelet daemon on the node to use this directory by running it with `--config=/etc/kubelet.d/` argument. On Fedora edit `/etc/kubernetes/kubelet` to include this line:
51+
2. Configure your kubelet daemon on the node to use this directory by running it with `--pod-manifest-path=/etc/kubelet.d/` argument. On Fedora edit `/etc/kubernetes/kubelet` to include this line:
5252
5353
```conf
54-
KUBELET_ARGS="--cluster-dns=10.254.0.10 --cluster-domain=kube.local --config=/etc/kubelet.d/"
54+
KUBELET_ARGS="--cluster-dns=10.254.0.10 --cluster-domain=kube.local --pod-manifest-path=/etc/kubelet.d/"
5555
```
5656
5757
Instructions for other distributions or Kubernetes installations may vary.
@@ -64,11 +64,11 @@ For example, this is how to start a simple web server as a static pod:
6464
6565
## Pods created via HTTP
6666
67-
Kubelet periodically downloads a file specified by `--manifest-url=<URL>` argument and interprets it as a json/yaml file with a pod definition. It works the same as `--config=<directory>`, i.e. it's reloaded every now and then and changes are applied to running static pods (see below).
67+
Kubelet periodically downloads a file specified by `--manifest-url=<URL>` argument and interprets it as a json/yaml file with a pod definition. It works the same as `--pod-manifest-path=<directory>`, i.e. it's reloaded every now and then and changes are applied to running static pods (see below).
6868
6969
## Behavior of static pods
7070
71-
When kubelet starts, it automatically starts all pods defined in directory specified in `--config=` or `--manifest-url=` arguments, i.e. our static-web. (It may take some time to pull nginx image, be patient…):
71+
When kubelet starts, it automatically starts all pods defined in directory specified in `--pod-manifest-path=` or `--manifest-url=` arguments, i.e. our static-web. (It may take some time to pull nginx image, be patient…):
7272
7373
```shell
7474
[joe@my-node1 ~] $ docker ps

docs/concepts/abstractions/controllers/statefulsets.md

+12-13
Original file line numberDiff line numberDiff line change
@@ -32,12 +32,12 @@ following.
3232
* Ordered, graceful deployment and scaling.
3333
* Ordered, graceful deletion and termination.
3434

35-
In the above, stable is synonymous with persistent across Pod (re) schedulings.
35+
In the above, stable is synonymous with persistence across Pod (re)schedulings.
3636
If an application doesn't require any stable identifiers or ordered deployment,
3737
deletion, or scaling, you should deploy your application with a controller that
38-
provides a set of stateless replicas. Such controllers, such as
38+
provides a set of stateless replicas. Controllers such as
3939
[Deployment](/docs/user-guide/deployments/) or
40-
[ReplicaSet](/docs/user-guide/replicasets/) may be better suited to your needs.
40+
[ReplicaSet](/docs/user-guide/replicasets/) may be better suited to your stateless needs.
4141

4242
### Limitations
4343
* StatefulSet is a beta resource, not available in any Kubernetes release prior to 1.5.
@@ -52,7 +52,7 @@ The example below demonstrates the components of a StatefulSet.
5252

5353
* A Headless Service, named nginx, is used to control the network domain.
5454
* The StatefulSet, named web, has a Spec that indicates that 3 replicas of the nginx container will be launched in unique Pods.
55-
* The volumeClaimTemplates, will provide stable storage using [PersistentVolumes](/docs/user-guide/volumes/) provisioned by a
55+
* The volumeClaimTemplates will provide stable storage using [PersistentVolumes](/docs/user-guide/volumes/) provisioned by a
5656
PersistentVolume Provisioner.
5757

5858
```yaml
@@ -106,7 +106,7 @@ spec:
106106
### Pod Identity
107107
StatefulSet Pods have a unique identity that is comprised of an ordinal, a
108108
stable network identity, and stable storage. The identity sticks to the Pod,
109-
regardless of which node it's (re) scheduled on.
109+
regardless of which node it's (re)scheduled on.
110110
111111
__Ordinal Index__
112112
@@ -141,13 +141,12 @@ Note that Cluster Domain will be set to `cluster.local` unless
141141

142142
__Stable Storage__
143143

144-
Kubernetes creates one [PersistentVolumes](/docs/user-guide/volumes/) for each
145-
VolumeClaimTemplate, as specified in the StatefulSet's volumeClaimTemplates field
146-
In the example above, each Pod will receive a single PersistentVolume with a storage
147-
class of `anything` and 1 Gib of provisioned storage. When a Pod is (re) scheduled onto
148-
a node, its `volumeMounts` mount the PersistentVolumes associated with its
144+
Kubernetes creates one [PersistentVolume](/docs/user-guide/volumes/) for each
145+
VolumeClaimTemplate. In the nginx example above, each Pod will receive a single PersistentVolume
146+
with a storage class of `anything` and 1 Gib of provisioned storage. When a Pod is (re)scheduled
147+
onto a node, its `volumeMounts` mount the PersistentVolumes associated with its
149148
PersistentVolume Claims. Note that, the PersistentVolumes associated with the
150-
Pods' PersistentVolume Claims are not deleted when the Pods, or StatefulSet are deleted.
149+
Pods' PersistentVolume Claims are not deleted when the Pods, or StatefulSet are deleted.
151150
This must be done manually.
152151

153152
### Deployment and Scaling Guarantee
@@ -157,9 +156,9 @@ This must be done manually.
157156
* Before a scaling operation is applied to a Pod, all of its predecessors must be Running and Ready.
158157
* Before a Pod is terminated, all of its successors must be completely shutdown.
159158

160-
The StatefulSet should not specify a `pod.Spec.TerminationGracePeriodSeconds` of 0. The practice of setting a `pod.Spec.TerminationGracePeriodSeconds` of 0 seconds is unsafe and strongly discouraged. For further explanation, please refer to [force deleting StatefulSet Pods](/docs/tasks/manage-stateful-set/delete-pods/#deleting-pods).
159+
The StatefulSet should not specify a `pod.Spec.TerminationGracePeriodSeconds` of 0. This practice is unsafe and strongly discouraged. For further explanation, please refer to [force deleting StatefulSet Pods](/docs/tasks/manage-stateful-set/delete-pods/#deleting-pods).
161160

162-
When the web example above is created, three Pods will be deployed in the order
161+
When the nginx example above is created, three Pods will be deployed in the order
163162
web-0, web-1, web-2. web-1 will not be deployed before web-0 is
164163
[Running and Ready](/docs/user-guide/pod-states), and web-2 will not be deployed until
165164
web-1 is Running and Ready. If web-0 should fail, after web-1 is Running and Ready, but before

0 commit comments

Comments
 (0)