Merge pull request #25337 from smashse/patch-2
Update docker-cli-to-kubectl.md
This commit is contained in:
@@ -37,16 +37,11 @@ kubectl:
|
|||||||
# start the pod running nginx
|
# start the pod running nginx
|
||||||
kubectl create deployment --image=nginx nginx-app
|
kubectl create deployment --image=nginx nginx-app
|
||||||
```
|
```
|
||||||
|
|
||||||
```shell
|
|
||||||
# add env to nginx-app
|
|
||||||
kubectl set env deployment/nginx-app DOMAIN=cluster
|
|
||||||
```
|
|
||||||
```
|
```
|
||||||
deployment.apps/nginx-app created
|
deployment.apps/nginx-app created
|
||||||
```
|
```
|
||||||
|
|
||||||
```
|
```shell
|
||||||
# add env to nginx-app
|
# add env to nginx-app
|
||||||
kubectl set env deployment/nginx-app DOMAIN=cluster
|
kubectl set env deployment/nginx-app DOMAIN=cluster
|
||||||
```
|
```
|
||||||
|
|||||||
Reference in New Issue
Block a user