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

EXAMPLE

307                # Delete the context for the minikube cluster
308                kubectl config delete-context minikube
309
310
311
312

SEE ALSO

314       kubectl-config(1),
315
316
317

HISTORY

319       January 2015, Originally compiled by Eric Paris (eparis at  redhat  dot
320       com)  based  on the kubernetes source material, but hopefully they have
321       been automatically generated since!
322
323
324
325Eric Paris                  kubernetes User Manuals              KUBERNETES(1)
Impressum