首页 > 技术文章 > k8s 命令创建问题

caonw 2020-07-02 17:00 原文

 

 

[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

 

 

推荐阅读