k3s/docs/man/kubelet.1.md

106 lines
3.7 KiB
Markdown
Raw Normal View History

2014-10-09 22:42:04 +00:00
% KUBERNETES(1) kubernetes User Manuals
% Scott Collier
% October 2014
# NAME
kubelet \- Processes a container manifest so the containers are launched according to how they are described.
# SYNOPSIS
**kubelet** [OPTIONS]
# DESCRIPTION
The **kubernetes** kubelet runs on each node. The Kubelet works in terms of a container manifest. A container manifest is a YAML or JSON file that describes a pod. The Kubelet takes a set of manifests that are provided in various mechanisms and ensures that the containers described in those manifests are started and continue running.
There are 4 ways that a container manifest can be provided to the Kubelet:
File Path passed as a flag on the command line. This file is rechecked every 20 seconds (configurable with a flag).
HTTP endpoint HTTP endpoint passed as a parameter on the command line. This endpoint is checked every 20 seconds (also configurable with a flag).
etcd server The Kubelet will reach out and do a watch on an etcd server. The etcd path that is watched is /registry/hosts/$(hostname -f). As this is a watch, changes are noticed and acted upon very quickly.
HTTP server The kubelet can also listen for HTTP and respond to a simple API (underspec'd currently) to submit a new manifest.
# OPTIONS
2015-01-13 20:02:24 +00:00
**--address**="127.0.0.1"
2014-10-09 22:42:04 +00:00
The address for the info server to serve on (set to 0.0.0.0 or "" for all interfaces).
2015-01-13 20:02:24 +00:00
**--allow_privileged**=false
2014-10-09 22:42:04 +00:00
If true, allow containers to request privileged mode. [default=false].
2015-01-13 20:02:24 +00:00
**--alsologtostderr**=false
2014-10-09 22:42:04 +00:00
log to standard error as well as files.
2015-01-13 20:02:24 +00:00
**--config**=""
2014-10-09 22:42:04 +00:00
Path to the config file or directory of files.
2015-01-13 20:02:24 +00:00
**--docker_endpoint**=""
2014-10-09 22:42:04 +00:00
If non-empty, use this for the docker endpoint to communicate with.
2015-01-13 20:02:24 +00:00
**--enable_server**=true
2014-10-09 22:42:04 +00:00
Enable the info server.
2015-01-13 20:02:24 +00:00
**--etcd_servers**=[]
2014-10-09 22:42:04 +00:00
List of etcd servers to watch (http://ip:port), comma separated.
2015-01-13 20:02:24 +00:00
**--file_check_frequency**=20s
2014-10-09 22:42:04 +00:00
Duration between checking config files for new data.
2015-01-13 20:02:24 +00:00
**--hostname_override**=""
2014-10-09 22:42:04 +00:00
If non-empty, will use this string as identification instead of the actual hostname.
2015-01-13 20:02:24 +00:00
**--http_check_frequency**=20s
2014-10-09 22:42:04 +00:00
Duration between checking http for new data.
2015-01-13 20:02:24 +00:00
**--log_backtrace_at**=:0
2014-10-09 22:42:04 +00:00
when logging hits line file:N, emit a stack trace.
2015-01-13 20:02:24 +00:00
**--log_dir**=""
2014-10-09 22:42:04 +00:00
If non-empty, write log files in this directory.
2015-01-13 20:02:24 +00:00
**--log_flush_frequency**=5s
2014-10-09 22:42:04 +00:00
Maximum number of seconds between log flushes.
2015-01-13 20:02:24 +00:00
**--logtostderr**=false
2014-10-09 22:42:04 +00:00
log to standard error instead of files.
2015-01-13 20:02:24 +00:00
**--manifest_url**=""
2014-10-09 22:42:04 +00:00
URL for accessing the container manifest.
**--pod_infra_container_image**="kubernetes/pause:latest"
The image that pod infra containers in each pod will use.
2014-10-09 22:42:04 +00:00
2015-01-13 20:02:24 +00:00
**--port**=10250
2014-10-09 22:42:04 +00:00
The port for the info server to serve on.
2015-01-13 20:02:24 +00:00
**--registry_burst**=10
2014-10-09 22:42:04 +00:00
Maximum size of a bursty pulls, temporarily allows pulls to burst to this number, while still not exceeding registry_qps. Only used if --registry_qps > 0.
2015-01-13 20:02:24 +00:00
**--registry_qps**=0
2014-10-09 22:42:04 +00:00
If > 0, limit registry pull QPS to this value. If 0, unlimited. [default=0.0].
2015-01-13 20:02:24 +00:00
**--root_dir**="/var/lib/kubelet"
2014-10-09 22:42:04 +00:00
Directory path for managing kubelet files (volume mounts,etc).
2015-01-13 20:02:24 +00:00
**--stderrthreshold**=0
2014-10-09 22:42:04 +00:00
logs at or above this threshold go to stderr.
2015-01-13 20:02:24 +00:00
**--sync_frequency**=10s
2014-10-09 22:42:04 +00:00
Max period between synchronizing running containers and config.
2015-01-13 20:02:24 +00:00
**--v**=0
2014-10-09 22:42:04 +00:00
log level for V logs.
2015-01-13 20:02:24 +00:00
**--version**=false
2014-10-09 22:42:04 +00:00
Print version information and quit.
2015-01-13 20:02:24 +00:00
**--vmodule**=
2014-10-09 22:42:04 +00:00
comma-separated list of pattern=N settings for file-filtered logging.
# EXAMPLES
```
/usr/bin/kubelet --logtostderr=true --v=0 --etcd_servers=http://127.0.0.1:4001 --address=127.0.0.1 --port=10250 --hostname_override=127.0.0.1 --allow_privileged=false
```
2014-10-09 22:42:04 +00:00
# HISTORY
October 2014, Originally compiled by Scott Collier (scollier at redhat dot com) based
on the kubernetes source material and internal work.