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 and sensitive 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       --disable-compression=false      If true, opt-out of response  compres‐
99       sion for all requests to the server
100
101
102       --insecure-skip-tls-verify=false      If true, the server's certificate
103       will not be checked for validity. This will make your HTTPS connections
104       insecure
105
106
107       --kubeconfig=""      use a particular kubeconfig file
108
109
110       --match-server-version=false        Require  server  version  to  match
111       client version
112
113
114       -n, --namespace=""      If present, the namespace scope  for  this  CLI
115       request
116
117
118       --password=""      Password for basic authentication to the API server
119
120
121       --profile="none"         Name   of   profile   to   capture.   One   of
122       (none|cpu|heap|goroutine|threadcreate|block|mutex)
123
124
125       --profile-output="profile.pprof"      Name of the  file  to  write  the
126       profile to
127
128
129       --request-timeout="0"       The length of time to wait before giving up
130       on a single server request. Non-zero values  should  contain  a  corre‐
131       sponding time unit (e.g. 1s, 2m, 3h). A value of zero means don't time‐
132       out requests.
133
134
135       -s, --server=""      The address and port of the Kubernetes API server
136
137
138       --tls-server-name=""      Server name to  use  for  server  certificate
139       validation.  If  it  is  not provided, the hostname used to contact the
140       server is used
141
142
143       --token=""      Bearer token for authentication to the API server
144
145
146       --user=""      The name of the kubeconfig user to use
147
148
149       --username=""      Username for basic authentication to the API server
150
151
152       --version=false      Print version information and quit
153
154
155       --warnings-as-errors=false      Treat warnings received from the server
156       as errors and exit with a non-zero exit code
157
158
159

EXAMPLE

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

SEE ALSO

174       kubectl-config(1),
175
176
177

HISTORY

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