abcee2dccd
* Update localization guidelines for language labels
Continuing work
Continuing work
Continuing work
More work in progress
Add local OWNERS folders
Add an OWNERS file to Chinese
Remove shortcode for repos
Add Japanese
Alphabetize languages, change weights accordingly
More updates
Add Korean in Korean
Add English to languageName
Feedback from gochist
Move Chinese content from cn/ to zh/
Move OWNERS from cn/ to zh/
Resolve merge conflicts by updating from master
Add files back in to prep for resolution
After rebase on upstream/master, remove files
Review and update localization guidelines
Feedback from gochist, tnir, cstoku
Add a trailing newline to content/ja/OWNERS
Add a trailing newline to content/zh/OWNERS
Drop requirement for GH repo project
Clarify language about forks/branches
Edits and typos
Remove a shortcode specific to a multi-repo language setup
Update aliases and owners
Add explicit OWNERS for content/en
Migrate content from Chinese repo, update regex in config.toml
Remove untranslated strings
Add trailing newline to content/en/OWNERS
Add trailing newlines to OWNERS files
add Jaguar project description (#10433)
* add Jaguar project description
[Jaguar](https://gitlab.com/sdnlab/jaguar) is an open source solution for Kubernetes's network based on OpenDaylight.
Jaguar provides overlay network using vxlan and Jaguar CNIPlugin provides one IP address per pod.
* Minor newline tweak
blog post for azure vmss (#10538)
Add microk8s to pick-right-solution.md (#10542)
* Add microk8s to pick-right-solution.md
Microk8s is a single-command installation of upstream Kubernetes on any Linux and should be included in the list of local-machine solutions.
* capitalized Istio
Add microk8s to foundational.md (#10543)
* Add microk8s to foundational.md
Adding microk8s as credible and stable alternative to get started with Kubernetes on a local machine. This is especially attractive for those not wanting to incur the overhead of running a VM for a local cluster.
* Update foundational.md
Thank you for your suggestions! LMK if this works now?
* Rewrote first paragraph
And included a bullet list of features of microk8s
* Copyedit
fix typo (#10545)
Fix the kubectl subcommands links. (#10550)
Signed-off-by: William Zhang <warmchang@outlook.com>
Fix command issue (#10515)
Signed-off-by: mooncake <xcoder@tenxcloud.com>
remove imported community files per issue 10184 (#10501)
networking.md: Markdown fix (#10498)
Fix front matter, federation command-line tools (#10500)
Clean up glossary entry (#10399)
update slack link (#10536)
typo in StatefulSet docs (#10558)
fix discription about horizontal pod autoscale (#10557)
Remove redundant symbols (#10556)
Fix issue #10520 (#10554)
Signed-off-by: William Zhang <warmchang@outlook.com>
Update api-concepts.md (#10534)
Revert "Fix command issue (#10515)"
This reverts commit c02a7fb9f9.
Update memory-constraint-namespace.md (#10530)
update memory request to 100MiB corresponding the yaml content
Blog: Introducing Volume Snapshot Alpha for Kubernetes (#10562)
* blog post for azure vmss
* snapshot blog post
Resolve merge conflicts in OWNERS*
Minor typo fix (#10567)
Not sure what's supposed to be here, proposing removing it.
* Feedback from gochist
Tweaks to feedback
* Feedback from ClaudiaJKang
11 KiB
11 KiB
title, notitle
| title | notitle |
|---|---|
| kubectl | true |
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 进行身份认证的承载令牌
--user string 指定使用的 kubeconfig 配置文件中的用户名
-v, --v Level 指定输出日志的日志级别
--vmodule moduleSpec 指定输出日志的模块,格式如下:pattern=N,使用逗号分隔
接下来看
- kubectl alpha - alpha环境上命令属性
- kubectl annotate - 更新资源上注释
- kubectl api-resources - 在服务器上打印支持的 API 资源
- kubectl api-versions - 以 "group/version" 的形式在服务器上打印支持的 API 版本
- kubectl apply - 通过文件名或标准输入将配置添加给资源
- kubectl attach - 附加到正在运行的容器
- kubectl auth - 检查授权
- kubectl autoscale - 自动扩展 Deployment, ReplicaSet 或 ReplicationController
- kubectl certificate - 修改证书资源。
- kubectl cluster-info - 展示集群信息
- kubectl completion - 为给定的 shell 输出完成代码( bash 或 zsh)
- kubectl config - 修改 kubeconfig 配置文件
- kubectl convert - 在不同的 API 版本之间转换配置文件
- kubectl cordon - 将 node 节点标记为不可调度
- kubectl cp - 从容器复制文件和目录,也可将文件和目录复制到容器。
- kubectl create - 通过文件名或标准输入创建资源。
- kubectl delete - 通过文件名,标准输入,资源和名称或资源和标签选择器删除资源
- kubectl describe - 显示特定资源或资源组的详细信息
- kubectl drain - 为便于维护,需要提前驱逐node节点
- kubectl edit - 在服务器编辑资源
- kubectl exec - 容器内退出命令
- kubectl explain - 资源文档
- kubectl expose - 获取 replication controller, service, deployment 或 pod 资源,并作为新的 Kubernetes 服务暴露
- kubectl get - 展示一个或多个资源
- kubectl label - 升级资源标签
- kubectl logs - 为 pod 中的容器打印日志
- kubectl options - 打印所有命令继承的标识列表
- kubectl patch - 使用战略性合并补丁更新资源字段
- kubectl plugin - 运行命令行插件
- kubectl port-forward - 给 pod 开放一个或多个本地端口
- kubectl proxy - 为 Kubernetes API server 运行代理
- kubectl replace - 通过文件或标准输入替换资源
- kubectl rollout - 管理资源展示
- kubectl run - 在集群上运行指定镜像
- kubectl scale - 给 Deployment, ReplicaSet, Replication Controller 或 Job 设置新副本规模
- kubectl set - 给对象设置特定功能
- kubectl taint - 更新一个或多个 node 节点的污点信息
- kubectl top - 展示资源 (CPU/Memory/Storage) 使用信息。
- kubectl uncordon - 标记 node 节点为可调度
- kubectl version - 打印客户端和服务端版本信息
- kubectl wait - 试验: 在一个或多个资源上等待条件完成
######2018年6月16日,通过spf13/cobra自动生成