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="unix:///var/run/containerd.sock"
118           containerd endpoint
119
120
121       --context=""
122           The name of the kubeconfig context to use
123
124
125       --default-not-ready-toleration-seconds=300
126           Indicates    the    tolerationSeconds   of   the   toleration   for
127       notReady:NoExecute that is added by default to every pod that does  not
128       already have such a toleration.
129
130
131       --default-unreachable-toleration-seconds=300
132           Indicates  the  tolerationSeconds  of  the  toleration for unreach‐
133       able:NoExecute that is added by default to  every  pod  that  does  not
134       already have such a toleration.
135
136
137       --docker="unix:///var/run/docker.sock"
138           docker endpoint
139
140
141       --docker-env-metadata-whitelist=""
142           a  comma-separated  list of environment variable keys that needs to
143       be collected for docker containers
144
145
146       --docker-only=false
147           Only report docker containers in addition to root stats
148
149
150       --docker-root="/var/lib/docker"
151           DEPRECATED: docker root is read from docker info (this is  a  fall‐
152       back, default: /var/lib/docker)
153
154
155       --docker-tls=false
156           use TLS to connect to docker
157
158
159       --docker-tls-ca="ca.pem"
160           path to trusted CA
161
162
163       --docker-tls-cert="cert.pem"
164           path to client certificate
165
166
167       --docker-tls-key="key.pem"
168           path to private key
169
170
171       --enable-load-reader=false
172           Whether to enable cpu load reader
173
174
175       --event-storage-age-limit="default=0"
176           Max length of time for which to store events (per type). Value is a
177       comma separated list of key values, where  the  keys  are  event  types
178       (e.g.: creation, oom) or "default" and the value is a duration. Default
179       is applied to all non-specified event types
180
181
182       --event-storage-event-limit="default=0"
183           Max number of events to store (per type). Value is  a  comma  sepa‐
184       rated  list  of  key values, where the keys are event types (e.g.: cre‐
185       ation, oom) or "default" and  the  value  is  an  integer.  Default  is
186       applied to all non-specified event types
187
188
189       --global-housekeeping-interval=1m0s
190           Interval between global housekeepings
191
192
193       --housekeeping-interval=10s
194           Interval between container housekeepings
195
196
197       --insecure-skip-tls-verify=false
198           If true, the server's certificate will not be checked for validity.
199       This will make your HTTPS connections insecure
200
201
202       --kubeconfig=""
203           use a particular kubeconfig file
204
205
206       --log-backtrace-at=:0
207           when logging hits line file:N, emit a stack trace
208
209
210       --log-cadvisor-usage=false
211           Whether to log the usage of the cAdvisor container
212
213
214       --log-dir=""
215           If non-empty, write log files in this directory
216
217
218       --log-file=""
219           If non-empty, use this log file
220
221
222       --log-flush-frequency=5s
223           Maximum number of seconds between log flushes
224
225
226       --logtostderr=true
227           log to standard error instead of files
228
229
230       --machine-id-file="/etc/machine-id,/var/lib/dbus/machine-id"
231           Comma-separated list of files to  check  for  machine-id.  Use  the
232       first one that exists.
233
234
235       --match-server-version=false
236           Require server version to match client version
237
238
239       --mesos-agent="127.0.0.1:5051"
240           Mesos agent address
241
242
243       --mesos-agent-timeout=10s
244           Mesos agent timeout
245
246
247       -n, --namespace=""
248           If present, the namespace scope for this CLI request
249
250
251       --password=""
252           Password for basic authentication to the API server
253
254
255       --profile="none"
256           Name of profile to capture. One of (none|cpu|heap|goroutine|thread‐
257       create|block|mutex)
258
259
260       --profile-output="profile.pprof"
261           Name of the file to write the profile to
262
263
264       --request-timeout="0"
265           The length of time to wait before giving  up  on  a  single  server
266       request. Non-zero values should contain a corresponding time unit (e.g.
267       1s, 2m, 3h). A value of zero means don't timeout requests.
268
269
270       -s, --server=""
271           The address and port of the Kubernetes API server
272
273
274       --skip-headers=false
275           If true, avoid header prefixes in the log messages
276
277
278       --stderrthreshold=2
279           logs at or above this threshold go to stderr
280
281
282       --storage-driver-buffer-duration=1m0s
283           Writes in the storage driver will be buffered  for  this  duration,
284       and committed to the non memory backends as a single transaction
285
286
287       --storage-driver-db="cadvisor"
288           database name
289
290
291       --storage-driver-host="localhost:8086"
292           database host:port
293
294
295       --storage-driver-password="root"
296           database password
297
298
299       --storage-driver-secure=false
300           use secure connection with database
301
302
303       --storage-driver-table="stats"
304           table name
305
306
307       --storage-driver-user="root"
308           database username
309
310
311       --token=""
312           Bearer token for authentication to the API server
313
314
315       --user=""
316           The name of the kubeconfig user to use
317
318
319       --username=""
320           Username for basic authentication to the API server
321
322
323       -v, --v=0
324           log level for V logs
325
326
327       --version=false
328           Print version information and quit
329
330
331       --vmodule=
332           comma-separated  list  of pattern=N settings for file-filtered log‐
333       ging
334
335
336

EXAMPLE

338                # Show merged kubeconfig settings.
339                kubectl config view
340
341                # Show merged kubeconfig settings and raw certificate data.
342                kubectl config view --raw
343
344                # Get the password for the e2e user
345                kubectl config view -o jsonpath='{.users[?(@.name == "e2e")].user.password}'
346
347
348
349

SEE ALSO

351       kubectl-config(1),
352
353
354

HISTORY

356       January 2015, Originally compiled by Eric Paris (eparis at  redhat  dot
357       com)  based  on the kubernetes source material, but hopefully they have
358       been automatically generated since!
359
360
361
362Eric Paris                  kubernetes User Manuals              KUBERNETES(1)
Impressum