Kubernetes kubectl描述未知的速记标志-o

Kubernetes kubectl描述未知的速记标志-o,kubernetes,google-cloud-platform,google-kubernetes-engine,kubectl,Kubernetes,Google Cloud Platform,Google Kubernetes Engine,Kubectl,我认为-o应该是kubectl的通用选项。 但是,当我运行下面的kubectl命令时,不知怎的我得到了下面的错误 你能告诉我为什么吗?多谢各位 mamun$ kubectl describe secret -n development serviceaccount-foo -o yaml Error: unknown shorthand flag: 'o' in -o See 'kubectl describe --help' for usage. -o|--output不是通用标志,它不包括

我认为-o应该是kubectl的通用选项。 但是,当我运行下面的kubectl命令时,不知怎的我得到了下面的错误

你能告诉我为什么吗?多谢各位

mamun$ kubectl describe secret -n development serviceaccount-foo -o yaml
Error: unknown shorthand flag: 'o' in -o
See 'kubectl describe --help' for usage.

-o|--output
不是通用标志,它不包括在默认值(
1.18
)中,并且。

kubectl get
支持
-o|--output
标志,您可以
get
规范为
yaml
kubectl get secret-n development services-account foo-yaml