Kubectl command

Creating POD 
kubectl RUN podname --image = nginx: Latest --replicas = 2 --port = 80 --namespace = younamespace 
### the --dry-RUN quit after commissioning, testing command expose service port kubectl EXPOSE Deployment
/ podname --name = --port = nginx-svc 80 -n you namespace
### marked red pod write the name of the
exported deployment deployment template kubectl GET the Deployments nginxdep you -n namespace -o YAML --export> demo.yaml

 

Guess you like

Origin www.cnblogs.com/jarno/p/11778369.html