Skip to content

Commit

Permalink
static-pod example bad format in the final page
Browse files Browse the repository at this point in the history
  • Loading branch information
陈宏 committed Oct 26, 2017
1 parent 7b5228d commit 6ee67bd
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions docs/tasks/administer-cluster/static-pod.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ For example, this is how to start a simple web server as a static pod:
2. Choose a directory, say `/etc/kubelet.d` and place a web server pod definition there, e.g. `/etc/kubelet.d/static-web.yaml`:
```shell
[root@my-node1 ~] $ mkdir /etc/kubelet.d/
[root@my-node1 ~] $ cat <<EOF >/etc/kubelet.d/static-web.yaml
apiVersion: v1
Expand All @@ -46,6 +47,7 @@ For example, this is how to start a simple web server as a static pod:
containerPort: 80
protocol: TCP
EOF
```
3. 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:
Expand Down

0 comments on commit 6ee67bd

Please sign in to comment.