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: content/en/docs/reference/labels-annotations-taints/_index.md
+6-4
Original file line number
Diff line number
Diff line change
@@ -260,8 +260,9 @@ When a StatefulSet controller creates a Pod for the StatefulSet, it sets this la
260
260
The value of the label is the ordinal index of the pod being created.
261
261
262
262
See [Pod Index Label](/docs/concepts/workloads/controllers/statefulset/#pod-index-label)
263
-
in the StatefulSet topic for more details. Note the [PodIndexLabel](content/en/docs/reference/command-line-tools-reference/feature-gates.md) feature gate must be enabled
264
-
for this label to be added to pods.
263
+
in the StatefulSet topic for more details.
264
+
Note the [PodIndexLabel](/docs/reference/command-line-tools-reference/feature-gates/)
265
+
feature gate must be enabled for this label to be added to pods.
A predefined `certificateKey` can be provided in `InitConfiguration` when passing the [configuration file](https://kubernetes.io/docs/reference/config-api/kubeadm-config.v1beta3/) with `--config`.
297
+
A predefined `certificateKey` can be provided in `InitConfiguration` when passing the
298
+
[configuration file](/docs/reference/config-api/kubeadm-config.v1beta4/) with `--config`.
298
299
{{< /note >}}
299
300
300
301
If a predefined certificate key is not passed to `kubeadm init` and
Copy file name to clipboardExpand all lines: content/en/docs/tasks/administer-cluster/kubeadm/kubeadm-certs.md
+4-1
Original file line number
Diff line number
Diff line change
@@ -167,7 +167,10 @@ kubeadm certs renew all
167
167
```
168
168
169
169
{{< note >}}
170
-
Clusters built with kubeadm often copy the `admin.conf` certificate into `$HOME/.kube/config`, as instructed in [Creating a cluster with kubeadm](https://kubernetes.io/docs/setup/production-environment/tools/kubeadm/create-cluster-kubeadm/). On such a system, to update the contents of `$HOME/.kube/config` after renewing the `admin.conf` you must run the following commands:
170
+
Clusters built with kubeadm often copy the `admin.conf` certificate into
171
+
`$HOME/.kube/config`, as instructed in [Creating a cluster with kubeadm](/docs/setup/production-environment/tools/kubeadm/create-cluster-kubeadm/).
172
+
On such a system, to update the contents of `$HOME/.kube/config`
173
+
after renewing the `admin.conf`, you must run the following commands:
@@ -54,11 +53,14 @@ Instructions for other distributions or Kubernetes installations may vary.
54
53
55
54
## Create a static pod {#static-pod-creation}
56
55
57
-
You can configure a static Pod with either a [file system hosted configuration file](/docs/tasks/configure-pod-container/static-pod/#configuration-files) or a [web hosted configuration file](/docs/tasks/configure-pod-container/static-pod/#pods-created-via-http).
56
+
You can configure a static Pod with either a
57
+
[file system hosted configuration file](/docs/tasks/configure-pod-container/static-pod/#configuration-files)
58
+
or a [web hosted configuration file](/docs/tasks/configure-pod-container/static-pod/#pods-created-via-http).
58
59
59
60
### Filesystem-hosted static Pod manifest {#configuration-files}
60
61
61
-
Manifests are standard Pod definitions in JSON or YAML format in a specific directory. Use the `staticPodPath: <the directory>` field in the
62
+
Manifests are standard Pod definitions in JSON or YAML format in a specific directory.
63
+
Use the `staticPodPath: <the directory>` field in the
which periodically scans the directory and creates/deletes static Pods as YAML/JSON files appear/disappear there.
64
66
Note that the kubelet will ignore files starting with dots when scanning the specified directory.
@@ -71,38 +73,42 @@ For example, this is how to start a simple web server as a static Pod:
71
73
ssh my-node1
72
74
```
73
75
74
-
2. Choose a directory, say `/etc/kubernetes/manifests` and place a web server Pod definition there, for example `/etc/kubernetes/manifests/static-web.yaml`:
76
+
1. Choose a directory, say `/etc/kubernetes/manifests` and place a web server
77
+
Pod definition there, for example `/etc/kubernetes/manifests/static-web.yaml`:
75
78
76
-
```shell
77
-
# Run this command on the node where kubelet is running
3. Configure your kubelet on the node to use this directory by running it with `--pod-manifest-path=/etc/kubernetes/manifests/` argument. On Fedora edit `/etc/kubernetes/kubelet` to include this line:
100
+
1. Configure your kubelet on the node to use this directory by running it with
# Run this command on the node where the kubelet is running
@@ -138,18 +144,20 @@ To use this approach:
138
144
protocol: TCP
139
145
```
140
146
141
-
2. Configure the kubelet on your selected node to use this web manifest by running it with `--manifest-url=<manifest-url>`. On Fedora, edit `/etc/kubernetes/kubelet` to include this line:
147
+
1. Configure the kubelet on your selected node to use this web manifest by
148
+
running it with `--manifest-url=<manifest-url>`.
149
+
On Fedora, edit `/etc/kubernetes/kubelet` to include this line:
To find more about how to debug using `crictl`, please visit [_Debugging Kubernetes nodes with crictl_](https://kubernetes.io/docs/tasks/debug/debug-cluster/crictl/)
250
+
251
+
To find more about how to debug using `crictl`, please visit
252
+
[_Debugging Kubernetes nodes with crictl_](/docs/tasks/debug/debug-cluster/crictl/).
240
253
241
254
## Dynamic addition and removal of static pods
242
255
243
-
The running kubelet periodically scans the configured directory (`/etc/kubernetes/manifests`in our example) forchanges and adds/removes Pods as files appear/disappearin this directory.
256
+
The running kubelet periodically scans the configured directory
257
+
(`/etc/kubernetes/manifests`in our example) for changes and
258
+
adds/removes Pods as files appear/disappear in this directory.
244
259
245
260
```shell
246
261
# This assumes you are using filesystem-hosted static Pod configuration
0 commit comments