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

NAME

6       kubectl cordon - Mark node as unschedulable
7
8
9

SYNOPSIS

11       kubectl cordon [OPTIONS]
12
13
14

DESCRIPTION

16       Mark node as unschedulable.
17
18
19

OPTIONS

21       --dry-run=false
22           If  true, only print the object that would be sent, without sending
23       it.
24
25
26       -l, --selector=""
27           Selector (label query) to filter on
28
29
30

OPTIONS INHERITED FROM PARENT COMMANDS

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

EXAMPLE

308                # Mark node "foo" as unschedulable.
309                kubectl cordon foo
310
311
312
313

SEE ALSO

315       kubectl(1),
316
317
318

HISTORY

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