Comment on page
Kubelet
[root@k8s bin]# ./kubelet --version
Kubernetes v1.7.3
[root@k8s bin]# ./kubelet --help
Usage of ./kubelet:
--address ip The IP address for the Kubelet to serve on (set to 0.0.0.0 for all interfaces) (default 0.0.0.0)
--allow-privileged If true, allow containers to request privileged mode.
... ...
选项 | 说明 |
--address ip | kubelet 监听地址,默认 0.0.0.0 ,表示监听在所有网络接口 |
--allow-privileged | 如果值为 true 则允许容器请求 privileged 选项,默认 false |
--cadvisor-port int32 | 指定 cAdvisor 端口, 默认 4194 |
--cluster-dns stringSlice | 指定集群 DNS 服务地址列表,通过逗号分隔,用于 Pod 设置项 dnsPolicy=ClusterFirst 的容器 DNS 服务器。 |
--cpu-cfs-quota | 启用 CPU CFS 配额用于容器 CPU 资源限制,默认 true |
--kubeconfig string | kubeconfig 文件路径, 指定如何连接 API server。除非 --require-kubeconfig 选项设置了,否则使用 --api-servers 。 默认 "/var/lib/kubelet/kubeconfig" |
--http-check-frequency duration | http check 时间间隔,默认 20s |
--kube-api-burst int32 | Burst 用于 kubelet 与 apiserver 通信限制,默认 10 |
--kube-api-content-type string | 指定发送请求给 apiserver 的通信内容类型,默认 "application/vnd.kubernetes.protobuf" |
--kube-api-qps int32 | QPS 用于 kubelet 与 apiserver 通信限制,默认 5 |
--max-pods int32 | 当前 Kubelet 节点上可以运行的最大 pod 数,默认 110 |
--max-open-files int | kubelet 进程最大打开文件句柄数, 默认 1000000 |
--node-labels mapStringString | <警告:Alpha 特性> 当启动时注册到 apiserver 的标签,标签必须 key=value 键值对,以逗号分隔 |
--pod-infra-container-image string | pod 中容器共享的 network/ipc 命名空间基础组件镜像,默认 "gcr.io/google_containers/pause-amd64:3.0" |
--port int32 | kubelet 监听端口,默认 10250 |
--require-kubeconfig | 如果设置为 true ,则配置不存在 Kubelet 进程会退出, 并且会忽略 --api-servers 选项 |
-read-only-port int32 | kubelet 只读端口,一般用于 metrics 信息获取,设置为 0 表示禁用,默认 10255 |
--resolv-conf string | DNS 解析文件指定,默认为 "/etc/resolv.conf" |
--root-dir string | 用于管理 kubelet 文件(volume mounts 等)目录路径,默认 "/var/lib/kubelet" |
选项 | 说明 |
--anonymous-auth | 启用对 kubelet 服务的匿名请求,匿名请求的用户名为 system:anonymous ,组名为 system:unauthenticated ,默认为 true |
--authorization-mode string | kubelet 授权方式,可用选项包括 AlwaysAllow 和 Webhook ,Webhook 通过 SubjectAccessReview API 确认授权,默认 "AlwaysAllow" |
--bootstrap-kubeconfig string | Path to a kubeconfig file that will be used to get client certificate for kubelet. If the file specified by --kubeconfig does not exist, the bootstrap kubeconfig is used to request a client certificate from the API server. On success, a kubeconfig file referencing the generated client certificate and key is written to the path specified by --kubeconfig. The client certificate and key file will be stored in the directory pointed by --cert-dir. |
--cert-dir string | TLS certs 证书目录,如果同时指定 --tls-cert-file 和 --tls-private-key-file 则该参数会被忽略。 默认 "/var/run/kubernetes" |
--client-ca-file string | If set, any request presenting a client certificate signed by one of the authorities in the client-ca-file is authenticated with an identity corresponding to the CommonName of the client certificate. |
--tls-cert-file string | 包含 x509 证书的文件路径,用于提供 HTTPS 服务,如果未提供 --tls-cert-file 和 --tls-private-key-file ,则会为公用地址生成自签名证书和密钥,并保存到 --cert-dir 目录 |
--tls-private-key-file string | 包含 X509 匹配 --tls-cert-file 私钥的文件路径 |
选项 | 说明 |
--alsologtostderr | 日志输出到文件同时输出到 stderr |
--log-backtrace-at traceLocation | when logging hits line file:N, emit a stack trace (default :0 ) |
--log-cadvisor-usage | 记录 cadvisor 运行日志 |
--log-dir string | 如果非空,则输出日志到指定目录 |
--log-flush-frequency duration | 日志刷新的最大间隔秒数,默认 5s |
--logtostderr | 日志输出到标准错误输出而不是文件,默认值为 true |
--stderrthreshold severity | 超过此阈值的日志将转到 stderr,默认为 2 |
-v, --v Level | log level for V logs |
选项 |