fix words issue (#18312)
* fix words issue * fix word * fix word * fix review issue on static-pod.md
This commit is contained in:
committed by
Kubernetes Prow Robot
parent
5469d4417c
commit
a975a0787f
@@ -52,7 +52,7 @@ You can configure a static Pod with either a [file system hosted configuration f
|
|||||||
|
|
||||||
### Filesystem-hosted static Pod manifest {#configuration-files}
|
### Filesystem-hosted static Pod manifest {#configuration-files}
|
||||||
|
|
||||||
Manifests are standard Pod definitions in JSON or YAML format in a specific directory. Use the `staticPodPath: <the directory>` field in the [KubeletConfiguration file](/docs/tasks/administer-cluster/kubelet-config-file), which periodically scans the directory and creates/deletes static Pods as YAML/JSON files appear/disappear there.
|
Manifests are standard Pod definitions in JSON or YAML format in a specific directory. Use the `staticPodPath: <the directory>` field in the [kubelet configuration file](/docs/tasks/administer-cluster/kubelet-config-file), which periodically scans the directory and creates/deletes static Pods as YAML/JSON files appear/disappear there.
|
||||||
Note that the kubelet will ignore files starting with dots when scanning the specified directory.
|
Note that the kubelet will ignore files starting with dots when scanning the specified directory.
|
||||||
|
|
||||||
For example, this is how to start a simple web server as a static Pod:
|
For example, this is how to start a simple web server as a static Pod:
|
||||||
@@ -91,7 +91,7 @@ For example, this is how to start a simple web server as a static Pod:
|
|||||||
```
|
```
|
||||||
KUBELET_ARGS="--cluster-dns=10.254.0.10 --cluster-domain=kube.local --pod-manifest-path=/etc/kubelet.d/"
|
KUBELET_ARGS="--cluster-dns=10.254.0.10 --cluster-domain=kube.local --pod-manifest-path=/etc/kubelet.d/"
|
||||||
```
|
```
|
||||||
or add the `staticPodPath: <the directory>` field in the [KubeletConfiguration file](/docs/tasks/administer-cluster/kubelet-config-file).
|
or add the `staticPodPath: <the directory>` field in the [kubelet configuration file](/docs/tasks/administer-cluster/kubelet-config-file).
|
||||||
|
|
||||||
4. Restart the kubelet. On Fedora, you would run:
|
4. Restart the kubelet. On Fedora, you would run:
|
||||||
|
|
||||||
@@ -129,8 +129,6 @@ To use this approach:
|
|||||||
protocol: TCP
|
protocol: TCP
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
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:
|
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:
|
||||||
|
|
||||||
```
|
```
|
||||||
@@ -152,7 +150,7 @@ already be running.
|
|||||||
|
|
||||||
You can view running containers (including static Pods) by running (on the node):
|
You can view running containers (including static Pods) by running (on the node):
|
||||||
```shell
|
```shell
|
||||||
# Run this command on the node where kubelet is running
|
# Run this command on the node where the kubelet is running
|
||||||
docker ps
|
docker ps
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user