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

SEE ALSO

309       kubectl(1),          kubectl-set-env(1),          kubectl-set-image(1),
310       kubectl-set-resources(1),   kubectl-set-selector(1),   kubectl-set-ser‐
311       viceaccount(1), kubectl-set-subject(1),
312
313
314

HISTORY

316       January  2015,  Originally compiled by Eric Paris (eparis at redhat dot
317       com) based on the kubernetes source material, but hopefully  they  have
318       been automatically generated since!
319
320
321
322Eric Paris                  kubernetes User Manuals              KUBERNETES(1)
Impressum