Skip to content

Commit

Permalink
static-pod example bad format in the final page (kubernetes#6050)
Browse files Browse the repository at this point in the history
* static-pod example bad format in the final page

* static-pod example bad format in the final page

* static-pod example bad format in the final page

* static-pod example bad format in the final page

* static-pod example bad format in the final page
  • Loading branch information
chenhonggc authored and colemickens committed Oct 26, 2017
1 parent 8f5ad91 commit 01e60c8
Showing 1 changed file with 18 additions and 18 deletions.
36 changes: 18 additions & 18 deletions docs/tasks/administer-cluster/static-pod.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,25 +29,25 @@ 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`:
```
[root@my-node1 ~] $ mkdir /etc/kubelet.d/
[root@my-node1 ~] $ cat <<EOF >/etc/kubelet.d/static-web.yaml
apiVersion: v1
kind: Pod
metadata:
name: static-web
labels:
role: myrole
spec:
containers:
```shell
[root@my-node1 ~] $ mkdir /etc/kubelet.d/
[root@my-node1 ~] $ cat <<EOF >/etc/kubelet.d/static-web.yaml
apiVersion: v1
kind: Pod
metadata:
name: static-web
labels:
role: myrole
spec:
containers:
- name: web
image: nginx
ports:
- name: web
image: nginx
ports:
- name: web
containerPort: 80
protocol: TCP
EOF
```
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 01e60c8

Please sign in to comment.