Edit This Page

kubectl

kubectl Բٿ Kubernetes Ⱥ

kubectl Բٿ Kubernetes Ⱥ

ȡϢʣhttps://kubernetes.io/docs/reference/kubectl/overview/

kubectl [flags]

ѡ

      --alsologtostderr                  ͬʱ־׼̨ļ
      --as string                        ָûִв
	  --as-group stringArray             ģ飬ʹʶָ顣
      --cache-dir string                 Ĭ HTTP Ŀ¼Ĭֵ "/home/username/.kube/http-cache" 
      --certificate-authority string     ڽ֤Ȩ .cert ļ·
      --client-certificate string        TLS ʹõĿͻ֤·
      --client-key string                TLS ʹõĿͻԿļ·
      --cluster string                   ָҪʹõ kubeconfig ļмȺ
      --context string                   ָҪʹõ kubeconfig ļ
  -h, --help                             kubectl 
      --insecure-skip-tls-verify         ֵΪ true򲻻֤Чԡ ⽫ʹHTTPSӲȫ
      --kubeconfig string                CLI ʹõ kubeconfig ļ·
      --log-backtrace-at traceLocation   ־ȳ涨ʱԶջϢĬֵ0
      --log-dir string                   Ϊգ־ļдĿ¼
      --logtostderr                      ־׼̨ļ
      --match-server-version             Ҫͻ˰汾ͷ˰汾ƥ
  -n, --namespace string                 ڣCLI ʹôռ
      --request-timeout string           һ򵥷ǰĵȴʱ䣬ֵҪӦʱ䵥λ(磺1s, 2m, 3h)ֵΪʱ (Ĭֵ "0")
  -s, --server string                    Kubernetes API server ĵַͶ˿
      --stderrthreshold severity         ڻڴֵ־׼̨Ĭֵ2
      --token string                      API server ֤ij
      --user string                      ָʹõ kubeconfig ļеû
  -v, --v Level                          ָ־־
      --vmodule moduleSpec               ָ־ģ飬ʽ£pattern=Nʹöŷָ

######2018616գͨspf13/cobraԶ