File tree Expand file tree Collapse file tree 1 file changed +9
-10
lines changed
content/en/docs/tasks/configure-pod-container Expand file tree Collapse file tree 1 file changed +9
-10
lines changed Original file line number Diff line number Diff line change @@ -97,17 +97,16 @@ For example, this is how to start a simple web server as a static Pod:
97
97
EOF
98
98
` ` `
99
99
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
101
108
` --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
+
111
110
1. Restart the kubelet. On Fedora, you would run:
112
111
113
112
` ` ` shell
You can’t perform that action at this time.
0 commit comments