fix the command output (#10417)
This commit is contained in:
committed by
k8s-ci-robot
parent
c22d8d42a8
commit
e1459f2a71
@@ -65,7 +65,7 @@ You can create a Service for your 2 nginx replicas with `kubectl expose`:
|
|||||||
|
|
||||||
```shell
|
```shell
|
||||||
$ kubectl expose deployment/my-nginx
|
$ kubectl expose deployment/my-nginx
|
||||||
service "my-nginx" exposed
|
service/my-nginx exposed
|
||||||
```
|
```
|
||||||
|
|
||||||
This is equivalent to `kubectl create -f` the following yaml:
|
This is equivalent to `kubectl create -f` the following yaml:
|
||||||
@@ -213,7 +213,7 @@ You can acquire all these from the [nginx https example](https://github.com/kube
|
|||||||
```shell
|
```shell
|
||||||
$ make keys secret KEY=/tmp/nginx.key CERT=/tmp/nginx.crt SECRET=/tmp/secret.json
|
$ make keys secret KEY=/tmp/nginx.key CERT=/tmp/nginx.crt SECRET=/tmp/secret.json
|
||||||
$ kubectl create -f /tmp/secret.json
|
$ kubectl create -f /tmp/secret.json
|
||||||
secret "nginxsecret" created
|
secret/nginxsecret created
|
||||||
$ kubectl get secrets
|
$ kubectl get secrets
|
||||||
NAME TYPE DATA AGE
|
NAME TYPE DATA AGE
|
||||||
default-token-il9rc kubernetes.io/service-account-token 1 1d
|
default-token-il9rc kubernetes.io/service-account-token 1 1d
|
||||||
|
|||||||
Reference in New Issue
Block a user