Error: unknown flag: --scale-up-delay See 'kubectl create --help' for usage.
时间: 2024-05-29 21:12:40 浏览: 140
This error message appears when you run a kubectl command with an unknown flag or option. In this case, the flag "--scale-up-delay" is not recognized by the kubectl create command.
To resolve this error, you can check the kubectl create command documentation using the "kubectl create --help" command to see if the "--scale-up-delay" flag is supported. If it is not supported, you may need to use a different command or option to achieve the desired result.
相关问题
[root@k8s-master ~]# kubectl create deolyment web --image=nginx -o yaml --drt-run > my1.yaml Error: unknown flag: --image See 'kubectl create --help' for usage.
您在使用kubectl create命令时,可能是因为打错了单词,正确的是kubectl create deployment,而不是kubectl create deolyment。您需要在deployment后面加上正确的参数,例如:--image=nginx。另外,您输入的命令中还有一个错误,应该是--dry-run而不是--drt-run。您可以尝试以下命令:
```
kubectl create deployment web --image=nginx -o yaml --dry-run > my1.yaml
```
这样就可以创建一个名为web的deployment,并将其输出到my1.yaml文件中。
阅读全文