
[k8s] imperative command
·
DevOps_k8s
kubectl run nginx --image=nginx (deployment) kubectl run nginx --image=nginx --restart=Never (pod) kubectl run nginx --image=nginx --restart=OnFailure (job) kubectl run nginx --image=nginx --restart=OnFailure --schedule"* * * * *" (cronjob) kubectl run nginx --image=nginx \ --restart=Never --port=80 \ --namespace=myname --command -- serviceaccount=mysql --env=HOSTNAME=local \ --labels=bu=instanc..