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

NAME

9       kubectl cordon - Mark node as unschedulable
10
11
12

SYNOPSIS

14       kubectl cordon [OPTIONS]
15
16
17

DESCRIPTION

19       Mark node as unschedulable.
20
21
22

OPTIONS

24       --dry-run="none"       Must be "none", "server", or "client". If client
25       strategy, only print the object that would be sent, without sending it.
26       If  server  strategy, submit server-side request without persisting the
27       resource.
28
29
30       -l, --selector=""      Selector (label query) to  filter  on,  supports
31       '=', '==', and '!='.(e.g. -l key1=value1,key2=value2). Matching objects
32       must satisfy all of the specified label constraints.
33
34
35

OPTIONS INHERITED FROM PARENT COMMANDS

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

EXAMPLE

131                # Mark node "foo" as unschedulable
132                kubectl cordon foo
133
134
135
136

SEE ALSO

138       kubectl(1),
139
140
141

HISTORY

143       January  2015,  Originally compiled by Eric Paris (eparis at redhat dot
144       com) based on the kubernetes source material, but hopefully  they  have
145       been automatically generated since!
146
147
148
149Manuals                              User            KUBERNETES(1)(kubernetes)
Impressum