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