kubectl options 可以打印出所有命令行的共有选项
[root@yyzc-zjjcs01 ~]# /opt/kubernetes/bin/kubectl --kubeconfig /opt/kubernetes/conf/default-admin.kubeconfig options
The following options can be passed to any command:
–add-dir-header=false: If true, adds the file directory to the header of the log messages
–alsologtostderr=false: log to standard error as well as files
–as=‘’: Username to impersonate for the operation
–as-group=[]: Group to impersonate for the operation, this flag can be repeated to specify multiple groups.
–cache-dir=‘/root/.kube/cache’: Default cache directory
–certificate-authority=‘’: Path to a cert file for the certificate authority
–client-certificate=‘’: Path to a client certificate file for TLS
–client-key=‘’: Path to a client key file for TLS
–cluster=‘’: The name of the kubeconfig cluster to use
–context=‘’: The name of the kubeconfig context to 文章来源地址https://www.toymoban.com/news/detail-787000.html
文章来源:https://www.toymoban.com/news/detail-787000.html
到了这里,关于K8S---kubectl options的文章就介绍完了。如果您还想了解更多内容,请在右上角搜索TOY模板网以前的文章或继续浏览下面的相关文章,希望大家以后多多支持TOY模板网!