1KUBERNETES(1)(kubernetes)                            KUBERNETES(1)(kubernetes)
2
3
4
5Eric Paris Jan 2015
6
7

NAME

9       kubectl config view - Display merged kubeconfig settings or a specified
10       kubeconfig file
11
12
13

SYNOPSIS

15       kubectl config view [OPTIONS]
16
17
18

DESCRIPTION

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

OPTIONS

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

OPTIONS INHERITED FROM PARENT COMMANDS

64       --as=""      Username to impersonate for the operation. User could be a
65       regular user or a service account in a namespace.
66
67
68       --as-group=[]       Group  to  impersonate for the operation, this flag
69       can be repeated to specify multiple groups.
70
71
72       --as-uid=""      UID to impersonate for the operation.
73
74
75       --azure-container-registry-config=""      Path to the  file  containing
76       Azure container registry configuration information.
77
78
79       --cache-dir="/builddir/.kube/cache"      Default cache directory
80
81
82       --certificate-authority=""      Path to a cert file for the certificate
83       authority
84
85
86       --client-certificate=""      Path to a client certificate file for TLS
87
88
89       --client-key=""      Path to a client key file for TLS
90
91
92       --cluster=""      The name of the kubeconfig cluster to use
93
94
95       --context=""      The name of the kubeconfig context to use
96
97
98       --insecure-skip-tls-verify=false      If true, the server's certificate
99       will not be checked for validity. This will make your HTTPS connections
100       insecure
101
102
103       --kubeconfig=""      use a particular kubeconfig file
104
105
106       --match-server-version=false       Require  server  version  to   match
107       client version
108
109
110       -n,  --namespace=""       If  present, the namespace scope for this CLI
111       request
112
113
114       --password=""      Password for basic authentication to the API server
115
116
117       --profile="none"        Name   of   profile   to   capture.   One    of
118       (none|cpu|heap|goroutine|threadcreate|block|mutex)
119
120
121       --profile-output="profile.pprof"       Name  of  the  file to write the
122       profile to
123
124
125       --request-timeout="0"      The length of time to wait before giving  up
126       on  a  single  server  request. Non-zero values should contain a corre‐
127       sponding time unit (e.g. 1s, 2m, 3h). A value of zero means don't time‐
128       out requests.
129
130
131       -s, --server=""      The address and port of the Kubernetes API server
132
133
134       --tls-server-name=""       Server  name  to  use for server certificate
135       validation. If it is not provided, the hostname  used  to  contact  the
136       server is used
137
138
139       --token=""      Bearer token for authentication to the API server
140
141
142       --user=""      The name of the kubeconfig user to use
143
144
145       --username=""      Username for basic authentication to the API server
146
147
148       --version=false      Print version information and quit
149
150
151       --warnings-as-errors=false      Treat warnings received from the server
152       as errors and exit with a non-zero exit code
153
154
155

EXAMPLE

157                # Show merged kubeconfig settings
158                kubectl config view
159
160                # Show merged kubeconfig settings and raw certificate data
161                kubectl config view --raw
162
163                # Get the password for the e2e user
164                kubectl config view -o jsonpath='{.users[?(@.name == "e2e")].user.password}'
165
166
167
168

SEE ALSO

170       kubectl-config(1),
171
172
173

HISTORY

175       January 2015, Originally compiled by Eric Paris (eparis at  redhat  dot
176       com)  based  on the kubernetes source material, but hopefully they have
177       been automatically generated since!
178
179
180
181Manuals                              User            KUBERNETES(1)(kubernetes)
Impressum