forked from kubernetes/kubernetes
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathkubelet.1
143 lines (107 loc) · 4.03 KB
/
kubelet.1
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
.TH "KUBERNETES" "1" " kubernetes User Manuals" "Scott Collier" "October 2014" ""
.SH NAME
.PP
kubelet \- Processes a container manifest so the containers are launched according to how they are described.
.SH SYNOPSIS
.PP
\fBkubelet\fP [OPTIONS]
.SH DESCRIPTION
.PP
The \fBkubernetes\fP 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.
.PP
There are 4 ways that a container manifest can be provided to the Kubelet:
.PP
.RS
.nf
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/\$(uname \-n). 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.
.fi
.SH OPTIONS
.PP
\fB\-\-address\fP="127.0.0.1"
The address for the info server to serve on (set to 0.0.0.0 or "" for all interfaces).
.PP
\fB\-\-allow\_privileged\fP=false
If true, allow containers to request privileged mode. [default=false].
.PP
\fB\-\-alsologtostderr\fP=false
log to standard error as well as files.
.PP
\fB\-\-config\fP=""
Path to the config file or directory of files.
.PP
\fB\-\-docker\_endpoint\fP=""
If non\-empty, use this for the docker endpoint to communicate with.
.PP
\fB\-\-enable\_server\fP=true
Enable the info server.
.PP
\fB\-\-etcd\_servers\fP=[]
List of etcd servers to watch (
\[la]http://ip:port\[ra]), comma separated.
.PP
\fB\-\-file\_check\_frequency\fP=20s
Duration between checking config files for new data.
.PP
\fB\-\-hostname\_override\fP=""
If non\-empty, will use this string as identification instead of the actual hostname.
.PP
\fB\-\-http\_check\_frequency\fP=20s
Duration between checking http for new data.
.PP
\fB\-\-log\_backtrace\_at\fP=:0
when logging hits line file:N, emit a stack trace.
.PP
\fB\-\-log\_dir\fP=""
If non\-empty, write log files in this directory.
.PP
\fB\-\-log\_flush\_frequency\fP=5s
Maximum number of seconds between log flushes.
.PP
\fB\-\-logtostderr\fP=false
log to standard error instead of files.
.PP
\fB\-\-manifest\_url\fP=""
URL for accessing the container manifest.
.PP
\fB\-\-pod\_infra\_container\_image\fP="kubernetes/pause:latest"
The image that pod infra containers in each pod will use.
.PP
\fB\-\-port\fP=10250
The port for the info server to serve on.
.PP
\fB\-\-registry\_burst\fP=10
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.
.PP
\fB\-\-registry\_qps\fP=0
If > 0, limit registry pull QPS to this value. If 0, unlimited. [default=0.0].
.PP
\fB\-\-root\_dir\fP="/var/lib/kubelet"
Directory path for managing kubelet files (volume mounts,etc).
.PP
\fB\-\-stderrthreshold\fP=0
logs at or above this threshold go to stderr.
.PP
\fB\-\-sync\_frequency\fP=10s
Max period between synchronizing running containers and config.
.PP
\fB\-\-v\fP=0
log level for V logs.
.PP
\fB\-\-version\fP=false
Print version information and quit.
.PP
\fB\-\-vmodule\fP=
comma\-separated list of pattern=N settings for file\-filtered logging.
.SH EXAMPLES
.PP
.RS
.nf
/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
.fi
.SH HISTORY
.PP
October 2014, Originally compiled by Scott Collier (scollier at redhat dot com) based
on the kubernetes source material and internal work.