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

NAME

6       kubectl config view - Display merged kubeconfig settings or a specified
7       kubeconfig file
8
9
10

SYNOPSIS

12       kubectl config view [OPTIONS]
13
14
15

DESCRIPTION

17       Display merged kubeconfig settings or a specified kubeconfig file.
18
19
20       You can use --output jsonpath={...} to extract specific values using  a
21       jsonpath expression.
22
23
24

OPTIONS

26       --allow-missing-template-keys=true
27           If  true, ignore any errors in templates when a field or map key is
28       missing in the template. Only applies to  golang  and  jsonpath  output
29       formats.
30
31
32       --flatten=false
33           Flatten  the  resulting  kubeconfig file into self-contained output
34       (useful for creating portable kubeconfig files)
35
36
37       --merge=true
38           Merge the full hierarchy of kubeconfig files
39
40
41       --minify=false
42           Remove all information not used by current-context from the output
43
44
45       -o, --output="yaml"
46           Output   format.   One    of:    json|yaml|name|go-template|go-tem‐
47       plate-file|template|templatefile|jsonpath|jsonpath-file.
48
49
50       --raw=false
51           Display raw byte data
52
53
54       --template=""
55           Template  string  or  path  to template file to use when -o=go-tem‐
56       plate, -o=go-template-file. The template format is golang  templates  [
57http://golang.org/pkg/text/template/#pkg-overview⟩].
58
59
60

OPTIONS INHERITED FROM PARENT COMMANDS

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

EXAMPLE

347                # Show merged kubeconfig settings.
348                kubectl config view
349
350                # Show merged kubeconfig settings and raw certificate data.
351                kubectl config view --raw
352
353                # Get the password for the e2e user
354                kubectl config view -o jsonpath='{.users[?(@.name == "e2e")].user.password}'
355
356
357
358

SEE ALSO

360       kubectl-config(1),
361
362
363

HISTORY

365       January  2015,  Originally compiled by Eric Paris (eparis at redhat dot
366       com) based on the kubernetes source material, but hopefully  they  have
367       been automatically generated since!
368
369
370
371Eric Paris                  kubernetes User Manuals              KUBERNETES(1)
Impressum