1KUBERNETES(1)(kubernetes) KUBERNETES(1)(kubernetes)
2
3
4
5Eric Paris Jan 2015
6
7
9 kubectl config unset - Unset an individual value in a kubeconfig file
10
11
12
14 kubectl config unset [OPTIONS]
15
16
17
19 Unset an individual value in a kubeconfig file.
20
21
22 PROPERTY_NAME is a dot delimited name where each token represents ei‐
23 ther an attribute name or a map key. Map keys may not contain dots.
24
25
26
28 --as="" Username to impersonate for the operation. User could be a
29 regular user or a service account in a namespace.
30
31
32 --as-group=[] Group to impersonate for the operation, this flag
33 can be repeated to specify multiple groups.
34
35
36 --as-uid="" UID to impersonate for the operation.
37
38
39 --azure-container-registry-config="" Path to the file containing
40 Azure container registry configuration information.
41
42
43 --cache-dir="/builddir/.kube/cache" Default cache directory
44
45
46 --certificate-authority="" Path to a cert file for the certificate
47 authority
48
49
50 --client-certificate="" Path to a client certificate file for TLS
51
52
53 --client-key="" Path to a client key file for TLS
54
55
56 --cluster="" The name of the kubeconfig cluster to use
57
58
59 --context="" The name of the kubeconfig context to use
60
61
62 --insecure-skip-tls-verify=false If true, the server's certificate
63 will not be checked for validity. This will make your HTTPS connections
64 insecure
65
66
67 --kubeconfig="" use a particular kubeconfig file
68
69
70 --match-server-version=false Require server version to match
71 client version
72
73
74 -n, --namespace="" If present, the namespace scope for this CLI
75 request
76
77
78 --password="" Password for basic authentication to the API server
79
80
81 --profile="none" Name of profile to capture. One of
82 (none|cpu|heap|goroutine|threadcreate|block|mutex)
83
84
85 --profile-output="profile.pprof" Name of the file to write the
86 profile to
87
88
89 --request-timeout="0" The length of time to wait before giving up
90 on a single server request. Non-zero values should contain a corre‐
91 sponding time unit (e.g. 1s, 2m, 3h). A value of zero means don't time‐
92 out requests.
93
94
95 -s, --server="" The address and port of the Kubernetes API server
96
97
98 --tls-server-name="" Server name to use for server certificate
99 validation. If it is not provided, the hostname used to contact the
100 server is used
101
102
103 --token="" Bearer token for authentication to the API server
104
105
106 --user="" The name of the kubeconfig user to use
107
108
109 --username="" Username for basic authentication to the API server
110
111
112 --version=false Print version information and quit
113
114
115 --warnings-as-errors=false Treat warnings received from the server
116 as errors and exit with a non-zero exit code
117
118
119
121 # Unset the current-context
122 kubectl config unset current-context
123
124 # Unset namespace in foo context
125 kubectl config unset contexts.foo.namespace
126
127
128
129
131 kubectl-config(1),
132
133
134
136 January 2015, Originally compiled by Eric Paris (eparis at redhat dot
137 com) based on the kubernetes source material, but hopefully they have
138 been automatically generated since!
139
140
141
142Manuals User KUBERNETES(1)(kubernetes)