Skip to content

Commit 8a0a983

Browse files
Changes to reflect the deprecation of pod-manifest-path argument
Changes to reflect the deprecation of pod-manifest-path argument Update content/en/docs/tasks/configure-pod-container/static-pod.md Review comments implemented. Co-authored-by: Dipesh Rawat Review comments implemented.
1 parent 8737933 commit 8a0a983

File tree

1 file changed

+9
-10
lines changed

1 file changed

+9
-10
lines changed

content/en/docs/tasks/configure-pod-container/static-pod.md

Lines changed: 9 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -97,17 +97,16 @@ For example, this is how to start a simple web server as a static Pod:
9797
EOF
9898
```
9999
100-
1. Configure your kubelet on the node to use this directory by running it with
100+
1. Configure the kubelet on that node to set a `staticPodPath` value in the
101+
[kubelet configuration file](/docs/reference/config-api/kubelet-config.v1beta1/).
102+
See [Set Kubelet Parameters Via A Configuration File](/docs/tasks/administer-cluster/kubelet-config-file/)
103+
for more information.
104+
105+
An alternative and deprecated method is to configure the kubelet on that node
106+
to look for static Pod manifests locally, using a command line argument.
107+
To use the deprecated approach, start the kubelet with the
101108
`--pod-manifest-path=/etc/kubernetes/manifests/` argument.
102-
On Fedora, edit `/etc/kubernetes/kubelet` to include this line:
103-
104-
```
105-
KUBELET_ARGS="--cluster-dns=10.254.0.10 --cluster-domain=kube.local --pod-manifest-path=/etc/kubernetes/manifests/"
106-
```
107-
108-
or add the `staticPodPath: ` field in the
109-
[kubelet configuration file](/docs/reference/config-api/kubelet-config.v1beta1/).
110-
109+
111110
1. Restart the kubelet. On Fedora, you would run:
112111
113112
```shell

0 commit comments

Comments
 (0)