1KUBERNETES(1)                      Jan 2015                      KUBERNETES(1)
2
3
4

NAME

6       kubectl  config  delete-context - Delete the specified context from the
7       kubeconfig
8
9
10

SYNOPSIS

12       kubectl config delete-context [OPTIONS]
13
14
15

DESCRIPTION

17       Delete the specified context from the kubeconfig
18
19
20

OPTIONS INHERITED FROM PARENT COMMANDS

22       --allow-verification-with-non-compliant-keys=false
23           Allow  a  SignatureVerifier  to  use  keys  which  are  technically
24       non-compliant with RFC6962.
25
26
27       --alsologtostderr=false
28           log to standard error as well as files
29
30
31       --application-metrics-count-limit=100
32           Max number of application metrics to store (per container)
33
34
35       --as=""
36           Username to impersonate for the operation
37
38
39       --as-group=[]
40           Group  to  impersonate for the operation, this flag can be repeated
41       to specify multiple groups.
42
43
44       --azure-container-registry-config=""
45           Path to the file containing Azure container registry  configuration
46       information.
47
48
49       --boot-id-file="/proc/sys/kernel/random/boot_id"
50           Comma-separated  list  of files to check for boot-id. Use the first
51       one that exists.
52
53
54       --cache-dir="/builddir/.kube/http-cache"
55           Default HTTP cache directory
56
57
58       --certificate-authority=""
59           Path to a cert file for the certificate authority
60
61
62       --client-certificate=""
63           Path to a client certificate file for TLS
64
65
66       --client-key=""
67           Path to a client key file for TLS
68
69
70       --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
71           CIDRs opened in GCE firewall for LB traffic proxy  health checks
72
73
74       --cluster=""
75           The name of the kubeconfig cluster to use
76
77
78       --container-hints="/etc/cadvisor/container_hints.json"
79           location of the container hints file
80
81
82       --containerd="unix:///var/run/containerd.sock"
83           containerd endpoint
84
85
86       --context=""
87           The name of the kubeconfig context to use
88
89
90       --default-not-ready-toleration-seconds=300
91           Indicates    the    tolerationSeconds   of   the   toleration   for
92       notReady:NoExecute that is added by default to every pod that does  not
93       already have such a toleration.
94
95
96       --default-unreachable-toleration-seconds=300
97           Indicates  the  tolerationSeconds  of  the  toleration for unreach‐
98       able:NoExecute that is added by default to  every  pod  that  does  not
99       already have such a toleration.
100
101
102       --docker="unix:///var/run/docker.sock"
103           docker endpoint
104
105
106       --docker-env-metadata-whitelist=""
107           a  comma-separated  list of environment variable keys that needs to
108       be collected for docker containers
109
110
111       --docker-only=false
112           Only report docker containers in addition to root stats
113
114
115       --docker-root="/var/lib/docker"
116           DEPRECATED: docker root is read from docker info (this is  a  fall‐
117       back, default: /var/lib/docker)
118
119
120       --docker-tls=false
121           use TLS to connect to docker
122
123
124       --docker-tls-ca="ca.pem"
125           path to trusted CA
126
127
128       --docker-tls-cert="cert.pem"
129           path to client certificate
130
131
132       --docker-tls-key="key.pem"
133           path to private key
134
135
136       --enable-load-reader=false
137           Whether to enable cpu load reader
138
139
140       --event-storage-age-limit="default=0"
141           Max length of time for which to store events (per type). Value is a
142       comma separated list of key values, where  the  keys  are  event  types
143       (e.g.: creation, oom) or "default" and the value is a duration. Default
144       is applied to all non-specified event types
145
146
147       --event-storage-event-limit="default=0"
148           Max number of events to store (per type). Value is  a  comma  sepa‐
149       rated  list  of  key values, where the keys are event types (e.g.: cre‐
150       ation, oom) or "default" and  the  value  is  an  integer.  Default  is
151       applied to all non-specified event types
152
153
154       --global-housekeeping-interval=1m0s
155           Interval between global housekeepings
156
157
158       --google-json-key=""
159           The  Google  Cloud  Platform  Service  Account  JSON Key to use for
160       authentication.
161
162
163       --housekeeping-interval=10s
164           Interval between container housekeepings
165
166
167       --insecure-skip-tls-verify=false
168           If true, the server's certificate will not be checked for validity.
169       This will make your HTTPS connections insecure
170
171
172       --kubeconfig=""
173           use a particular kubeconfig file
174
175
176       --log-backtrace-at=:0
177           when logging hits line file:N, emit a stack trace
178
179
180       --log-cadvisor-usage=false
181           Whether to log the usage of the cAdvisor container
182
183
184       --log-dir=""
185           If non-empty, write log files in this directory
186
187
188       --log-flush-frequency=5s
189           Maximum number of seconds between log flushes
190
191
192       --logtostderr=true
193           log to standard error instead of files
194
195
196       --machine-id-file="/etc/machine-id,/var/lib/dbus/machine-id"
197           Comma-separated  list  of  files  to  check for machine-id. Use the
198       first one that exists.
199
200
201       --match-server-version=false
202           Require server version to match client version
203
204
205       --mesos-agent="127.0.0.1:5051"
206           Mesos agent address
207
208
209       --mesos-agent-timeout=10s
210           Mesos agent timeout
211
212
213       -n, --namespace=""
214           If present, the namespace scope for this CLI request
215
216
217       --request-timeout="0"
218           The length of time to wait before giving  up  on  a  single  server
219       request. Non-zero values should contain a corresponding time unit (e.g.
220       1s, 2m, 3h). A value of zero means don't timeout requests.
221
222
223       -s, --server=""
224           The address and port of the Kubernetes API server
225
226
227       --stderrthreshold=2
228           logs at or above this threshold go to stderr
229
230
231       --storage-driver-buffer-duration=1m0s
232           Writes in the storage driver will be buffered  for  this  duration,
233       and committed to the non memory backends as a single transaction
234
235
236       --storage-driver-db="cadvisor"
237           database name
238
239
240       --storage-driver-host="localhost:8086"
241           database host:port
242
243
244       --storage-driver-password="root"
245           database password
246
247
248       --storage-driver-secure=false
249           use secure connection with database
250
251
252       --storage-driver-table="stats"
253           table name
254
255
256       --storage-driver-user="root"
257           database username
258
259
260       --token=""
261           Bearer token for authentication to the API server
262
263
264       --user=""
265           The name of the kubeconfig user to use
266
267
268       -v, --v=0
269           log level for V logs
270
271
272       --version=false
273           Print version information and quit
274
275
276       --vmodule=
277           comma-separated  list  of pattern=N settings for file-filtered log‐
278       ging
279
280
281

EXAMPLE

283                # Delete the context for the minikube cluster
284                kubectl config delete-context minikube
285
286
287
288

SEE ALSO

290       kubectl-config(1),
291
292
293

HISTORY

295       January 2015, Originally compiled by Eric Paris (eparis at  redhat  dot
296       com)  based  on the kubernetes source material, but hopefully they have
297       been automatically generated since!
298
299
300
301Eric Paris                  kubernetes User Manuals              KUBERNETES(1)
Impressum