Merge pull request #307 from Paul-Xiong/issue-306
update practice/kubedns-addon-installation.md docpull/312/head
commit
4f2fc925b7
|
@ -133,7 +133,7 @@ $ kubectl create -f .
|
||||||
新建一个 Deployment
|
新建一个 Deployment
|
||||||
|
|
||||||
``` bash
|
``` bash
|
||||||
$ cat my-nginx.yaml
|
$ cat >> my-nginx.yaml << EOF
|
||||||
apiVersion: extensions/v1beta1
|
apiVersion: extensions/v1beta1
|
||||||
kind: Deployment
|
kind: Deployment
|
||||||
metadata:
|
metadata:
|
||||||
|
@ -150,6 +150,7 @@ spec:
|
||||||
image: harbor-001.jimmysong.io/library/nginx:1.9
|
image: harbor-001.jimmysong.io/library/nginx:1.9
|
||||||
ports:
|
ports:
|
||||||
- containerPort: 80
|
- containerPort: 80
|
||||||
|
EOF
|
||||||
$ kubectl create -f my-nginx.yaml
|
$ kubectl create -f my-nginx.yaml
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue