1KUBERNETES(1)                      Jan 2015                      KUBERNETES(1)
2
3
4

NAME

6       kubectl set - Set specific features on objects
7
8
9

SYNOPSIS

11       kubectl set [OPTIONS]
12
13
14

DESCRIPTION

16       Configure application resources
17
18
19       These commands help you make changes to existing application resources.
20
21
22

OPTIONS INHERITED FROM PARENT COMMANDS

24       --add-dir-header=false
25           If true, adds the file directory to the header
26
27
28       --alsologtostderr=false
29           log to standard error as well as files
30
31
32       --application-metrics-count-limit=100
33           Max number of application metrics to store (per container)
34
35
36       --as=""
37           Username to impersonate for the operation
38
39
40       --as-group=[]
41           Group to impersonate for the operation, this flag can be repeated
42       to specify multiple groups.
43
44
45       --azure-container-registry-config=""
46           Path to the file containing Azure container registry configuration
47       information.
48
49
50       --boot-id-file="/proc/sys/kernel/random/boot_id"
51           Comma-separated list of files to check for boot-id. Use the first
52       one that exists.
53
54
55       --cache-dir="/builddir/.kube/http-cache"
56           Default HTTP cache directory
57
58
59       --certificate-authority=""
60           Path to a cert file for the certificate authority
61
62
63       --client-certificate=""
64           Path to a client certificate file for TLS
65
66
67       --client-key=""
68           Path to a client key file for TLS
69
70
71       --cloud-provider-gce-l7lb-src-cidrs=130.211.0.0/22,35.191.0.0/16
72           CIDRs opened in GCE firewall for L7 LB traffic proxy  health checks
73
74
75       --cloud-provider-gce-lb-src-cidrs=130.211.0.0/22,209.85.152.0/22,209.85.204.0/22,35.191.0.0/16
76           CIDRs opened in GCE firewall for L4 LB traffic proxy  health checks
77
78
79       --cluster=""
80           The name of the kubeconfig cluster to use
81
82
83       --container-hints="/etc/cadvisor/container_hints.json"
84           location of the container hints file
85
86
87       --containerd="/run/containerd/containerd.sock"
88           containerd endpoint
89
90
91       --containerd-namespace="k8s.io"
92           containerd namespace
93
94
95       --context=""
96           The name of the kubeconfig context to use
97
98
99       --default-not-ready-toleration-seconds=300
100           Indicates the tolerationSeconds of the toleration for
101       notReady:NoExecute that is added by default to every pod that does not
102       already have such a toleration.
103
104
105       --default-unreachable-toleration-seconds=300
106           Indicates the tolerationSeconds of the toleration for
107       unreachable:NoExecute that is added by default to every pod that does
108       not already have such a toleration.
109
110
111       --disable-root-cgroup-stats=false
112           Disable collecting root Cgroup stats
113
114
115       --docker="unix:///var/run/docker.sock"
116           docker endpoint
117
118
119       --docker-env-metadata-whitelist=""
120           a comma-separated list of environment variable keys that needs to
121       be collected for docker containers
122
123
124       --docker-only=false
125           Only report docker containers in addition to root stats
126
127
128       --docker-root="/var/lib/docker"
129           DEPRECATED: docker root is read from docker info (this is a
130       fallback, default: /var/lib/docker)
131
132
133       --docker-tls=false
134           use TLS to connect to docker
135
136
137       --docker-tls-ca="ca.pem"
138           path to trusted CA
139
140
141       --docker-tls-cert="cert.pem"
142           path to client certificate
143
144
145       --docker-tls-key="key.pem"
146           path to private key
147
148
149       --enable-load-reader=false
150           Whether to enable cpu load reader
151
152
153       --event-storage-age-limit="default=0"
154           Max length of time for which to store events (per type). Value is a
155       comma separated list of key values, where the keys are event types
156       (e.g.: creation, oom) or "default" and the value is a duration. Default
157       is applied to all non-specified event types
158
159
160       --event-storage-event-limit="default=0"
161           Max number of events to store (per type). Value is a comma
162       separated list of key values, where the keys are event types (e.g.:
163       creation, oom) or "default" and the value is an integer. Default is
164       applied to all non-specified event types
165
166
167       --global-housekeeping-interval=1m0s
168           Interval between global housekeepings
169
170
171       --housekeeping-interval=10s
172           Interval between container housekeepings
173
174
175       --insecure-skip-tls-verify=false
176           If true, the server's certificate will not be checked for validity.
177       This will make your HTTPS connections insecure
178
179
180       --kubeconfig=""
181           Path to the kubeconfig file to use for CLI requests.
182
183
184       --log-backtrace-at=:0
185           when logging hits line file:N, emit a stack trace
186
187
188       --log-cadvisor-usage=false
189           Whether to log the usage of the cAdvisor container
190
191
192       --log-dir=""
193           If non-empty, write log files in this directory
194
195
196       --log-file=""
197           If non-empty, use this log file
198
199
200       --log-file-max-size=1800
201           Defines the maximum size a log file can grow to. Unit is megabytes.
202       If the value is 0, the maximum file size is unlimited.
203
204
205       --log-flush-frequency=5s
206           Maximum number of seconds between log flushes
207
208
209       --logtostderr=true
210           log to standard error instead of files
211
212
213       --machine-id-file="/etc/machine-id,/var/lib/dbus/machine-id"
214           Comma-separated list of files to check for machine-id. Use the
215       first one that exists.
216
217
218       --match-server-version=false
219           Require server version to match client version
220
221
222       -n, --namespace=""
223           If present, the namespace scope for this CLI request
224
225
226       --password=""
227           Password for basic authentication to the API server
228
229
230       --profile="none"
231           Name of profile to capture. One of
232       (none|cpu|heap|goroutine|threadcreate|block|mutex)
233
234
235       --profile-output="profile.pprof"
236           Name of the file to write the profile to
237
238
239       --request-timeout="0"
240           The length of time to wait before giving up on a single server
241       request. Non-zero values should contain a corresponding time unit (e.g.
242       1s, 2m, 3h). A value of zero means don't timeout requests.
243
244
245       -s, --server=""
246           The address and port of the Kubernetes API server
247
248
249       --skip-headers=false
250           If true, avoid header prefixes in the log messages
251
252
253       --skip-log-headers=false
254           If true, avoid headers when opening log files
255
256
257       --stderrthreshold=2
258           logs at or above this threshold go to stderr
259
260
261       --storage-driver-buffer-duration=1m0s
262           Writes in the storage driver will be buffered for this duration,
263       and committed to the non memory backends as a single transaction
264
265
266       --storage-driver-db="cadvisor"
267           database name
268
269
270       --storage-driver-host="localhost:8086"
271           database host:port
272
273
274       --storage-driver-password="root"
275           database password
276
277
278       --storage-driver-secure=false
279           use secure connection with database
280
281
282       --storage-driver-table="stats"
283           table name
284
285
286       --storage-driver-user="root"
287           database username
288
289
290       --tls-server-name=""
291           Server name to use for server certificate validation. If it is not
292       provided, the hostname used to contact the server is used
293
294
295       --token=""
296           Bearer token for authentication to the API server
297
298
299       --update-machine-info-interval=5m0s
300           Interval between machine info updates.
301
302
303       --user=""
304           The name of the kubeconfig user to use
305
306
307       --username=""
308           Username for basic authentication to the API server
309
310
311       -v, --v=0
312           number for the log level verbosity
313
314
315       --version=false
316           Print version information and quit
317
318
319       --vmodule=
320           comma-separated list of pattern=N settings for file-filtered
321       logging
322
323
324

SEE ALSO

326       kubectl(1), kubectl-set-env(1), kubectl-set-image(1),
327       kubectl-set-resources(1), kubectl-set-selector(1),
328       kubectl-set-serviceaccount(1), kubectl-set-subject(1),
329
330
331

HISTORY

333       January 2015, Originally compiled by Eric Paris (eparis at redhat dot
334       com) based on the kubernetes source material, but hopefully they have
335       been automatically generated since!
336
337
338
339Eric Paris                  kubernetes User Manuals              KUBERNETES(1)
Impressum