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

NAME

6       kubectl rollout restart - Restart a resource
7
8
9

SYNOPSIS

11       kubectl rollout restart [OPTIONS]
12
13
14

DESCRIPTION

16       Restart a resource.
17
18
19               Resource will be rollout restarted.
20
21
22
23

OPTIONS

25       --allow-missing-template-keys=true
26           If true, ignore any errors in templates when a field or map key is
27       missing in the template. Only applies to golang and jsonpath output
28       formats.
29
30
31       -f, --filename=[]
32           Filename, directory, or URL to files identifying the resource to
33       get from a server.
34
35
36       -k, --kustomize=""
37           Process the kustomization directory. This flag can't be used
38       together with -f or -R.
39
40
41       -o, --output=""
42           Output format. One of:
43       json|yaml|name|go-template|go-template-file|template|templatefile|jsonpath|jsonpath-file.
44
45
46       -R, --recursive=false
47           Process the directory used in -f, --filename recursively. Useful
48       when you want to manage related manifests organized within the same
49       directory.
50
51
52       --template=""
53           Template string or path to template file to use when
54       -o=go-template, -o=go-template-file. The template format is golang
55       templates [ ⟨http://golang.org/pkg/text/template/#pkg-overview⟩].
56
57
58

OPTIONS INHERITED FROM PARENT COMMANDS

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

EXAMPLE

362                # Restart a deployment
363                kubectl rollout restart deployment/nginx
364
365                # Restart a daemonset
366                kubectl rollout restart daemonset/abc
367
368
369
370

SEE ALSO

372       kubectl-rollout(1),
373
374
375

HISTORY

377       January 2015, Originally compiled by Eric Paris (eparis at redhat dot
378       com) based on the kubernetes source material, but hopefully they have
379       been automatically generated since!
380
381
382
383Eric Paris                  kubernetes User Manuals              KUBERNETES(1)
Impressum