k8s 命令创建问题

 

 

[root@k8s-master1 hpa]# kubectl create delpoyment nginx  --image=nginx
Error: unknown flag: --image
See 'kubectl create --help' for usage.

提示是未知标签,这个定位有点坑,一直以为是image哪里错误,实际上是我deployment 写成了 delpoyment造成的错误

[root@k8s-master1 hpa]# kubectl create deployment nginx  --image=nginx
Error from server (AlreadyExists): deployments.apps "nginx" already exists

 

原文地址:https://www.cnblogs.com/caonw/p/13225775.html