Kubernetes 中 kubectl.sh 各類參數(待譯)

kubectl 是控制 Kubernetes 的集羣管理器。 詳情查看 https://github.com/kubernetes/kubernetes 用法:   kubectl [flags]   kubectl [command] 可用命令:   get                            顯示一個或多個資源   describe                    顯示指定資源或一組資源的詳細信息   create                        經過文件名 或 標準輸入建立一個資源   replace                      經過文件名或標準輸入替換資源   patch                        Update field(s) of a resource using strategic merge patch.   delete                        Delete resources by filenames, stdin, resources and names, or by resources and label selector.   edit                            編輯資源   apply                         Apply a configuration to a resource by filename or stdin   namespace                SUPERSEDED: Set and view the current Kubernetes namespace   logs                            打印在 POD 容器中的日誌   rolling-update Perform a rolling update of the given ReplicationController.   scale          Set a new size for a Replication Controller, Job, or Deployment.   attach                         Attach 到容器中   exec                            在容器中執行命令   port-forward               裝法一個或多個本地端口到 pod.   proxy                           運行 Kubernetes API Server 代理   run                               集羣上運行特定鏡像   expose                        Take a replication controller, service or pod and expose it as a new Kubernetes Service   autoscale                     自動衡量部署和冗餘調節   label                            更新 資源上的 labels    annotate                      更新資源上的 annotations   config                           配置修改 kubeconfig 文件   cluster-info                   顯示集羣信息   api-versions   Print the supported API versions on the server, in the form of "group/version".   version        Print the client and server version information.   explain        Documentation of resources.   convert        Convert config files between different API versions Flags:       --alsologtostderr[=false]: log to standard error as well as files       --api-version="": The API version to use when talking to the server       --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 use   -h, --help[=false]: help for kubectl       --insecure-skip-tls-verify[=false]: If true, the server's certificate will not be checked for validity. This will make your HTTPS connections insecure.       --kubeconfig="": Path to the kubeconfig file to use for CLI requests.       --log-backtrace-at=:0: when logging hits line file:N, emit a stack trace       --log-dir="": If non-empty, write log files in this directory       --log-flush-frequency=5s: Maximum number of seconds between log flushes       --logtostderr[=true]: log to standard error instead of files       --match-server-version[=false]: Require server version to match client version       --namespace="": If present, the namespace scope for this CLI request.       --password="": Password for basic authentication to the API server.   -s, --server="": The address and port of the Kubernetes API server       --stderrthreshold=2: logs at or above this threshold go to stderr       --token="": Bearer token for authentication to the API server.       --user="": The name of the kubeconfig user to use       --username="": Username for basic authentication to the API server.       --v=0: log level for V logs       --vmodule=: comma-separated list of pattern=N settings for file-filtered logging
相關文章
相關標籤/搜索