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

NAME

9       kubectl config - Modify kubeconfig files
10
11
12

SYNOPSIS

14       kubectl config [OPTIONS]
15
16
17

DESCRIPTION

19       Modify kubeconfig files using subcommands like "kubectl config set cur‐
20       rent-context my-context"
21
22
23       The loading order follows these rules:
24
25
26                1. If the --kubeconfig flag is set, then  only  that  file  is
27                   loaded.  The flag may only be set once and no merging takes
28                   place.
29
30                2. If $KUBECONFIG environment variable is set, then it is used
31                   as  a  list of paths (normal path delimiting rules for your
32                   system). These paths are merged. When a value is  modified,
33                   it  is modified in the file that defines the stanza. When a
34                   value is created, it is created in the first file that  ex‐
35                   ists.  If  no files in the chain exist, then it creates the
36                   last file in the list.
37
38                3. Otherwise, ${HOME}/.kube/config  is  used  and  no  merging
39                   takes place.
40
41
42
43

OPTIONS

45       --kubeconfig=""      use a particular kubeconfig file
46
47
48

OPTIONS INHERITED FROM PARENT COMMANDS

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

SEE ALSO

144       kubectl(1),  kubectl-config-current-context(1),  kubectl-config-delete-
145       cluster(1),   kubectl-config-delete-context(1),  kubectl-config-delete-
146       user(1),    kubectl-config-get-clusters(1),     kubectl-config-get-con‐
147       texts(1),    kubectl-config-get-users(1),    kubectl-config-rename-con‐
148       text(1), kubectl-config-set(1), kubectl-config-set-cluster(1), kubectl-
149       config-set-context(1),  kubectl-config-set-credentials(1), kubectl-con‐
150       fig-unset(1), kubectl-config-use-context(1), kubectl-config-view(1),
151
152
153

HISTORY

155       January 2015, Originally compiled by Eric Paris (eparis at  redhat  dot
156       com)  based  on the kubernetes source material, but hopefully they have
157       been automatically generated since!
158
159
160
161Manuals                              User            KUBERNETES(1)(kubernetes)
Impressum