You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/admin/static-pods.md
+5-5
Original file line number
Diff line number
Diff line change
@@ -16,7 +16,7 @@ Static pod can be created in two ways: either by using configuration file(s) or
16
16
17
17
### Configuration files
18
18
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.
20
20
21
21
For example, this is how to start a simple web server as a static pod:
22
22
@@ -48,10 +48,10 @@ For example, this is how to start a simple web server as a static pod:
48
48
EOF
49
49
```
50
50
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:
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:
64
64
65
65
## Pods created via HTTP
66
66
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).
68
68
69
69
## Behavior of static pods
70
70
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…):
Copy file name to clipboardExpand all lines: docs/concepts/abstractions/controllers/statefulsets.md
+12-13
Original file line number
Diff line number
Diff line change
@@ -32,12 +32,12 @@ following.
32
32
* Ordered, graceful deployment and scaling.
33
33
* Ordered, graceful deletion and termination.
34
34
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.
36
36
If an application doesn't require any stable identifiers or ordered deployment,
37
37
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
39
39
[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.
41
41
42
42
### Limitations
43
43
* 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.
52
52
53
53
* A Headless Service, named nginx, is used to control the network domain.
54
54
* 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
56
56
PersistentVolume Provisioner.
57
57
58
58
```yaml
@@ -106,7 +106,7 @@ spec:
106
106
### Pod Identity
107
107
StatefulSet Pods have a unique identity that is comprised of an ordinal, a
108
108
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.
110
110
111
111
__Ordinal Index__
112
112
@@ -141,13 +141,12 @@ Note that Cluster Domain will be set to `cluster.local` unless
141
141
142
142
__Stable Storage__
143
143
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
149
148
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.
151
150
This must be done manually.
152
151
153
152
### Deployment and Scaling Guarantee
@@ -157,9 +156,9 @@ This must be done manually.
157
156
* Before a scaling operation is applied to a Pod, all of its predecessors must be Running and Ready.
158
157
* Before a Pod is terminated, all of its successors must be completely shutdown.
159
158
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).
161
160
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
163
162
web-0, web-1, web-2. web-1 will not be deployed before web-0 is
164
163
[Running and Ready](/docs/user-guide/pod-states), and web-2 will not be deployed until
165
164
web-1 is Running and Ready. If web-0 should fail, after web-1 is Running and Ready, but before
0 commit comments