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

NAME

9       kubectl rollout restart - Restart a resource
10
11
12

SYNOPSIS

14       kubectl rollout restart [OPTIONS]
15
16
17

DESCRIPTION

19       Restart a resource.
20
21
22               Resource rollout will be restarted.
23
24
25
26

OPTIONS

28       --allow-missing-template-keys=true       If  true, ignore any errors in
29       templates when a field or map key is missing in the template. Only  ap‐
30       plies to golang and jsonpath output formats.
31
32
33       --field-manager="kubectl-rollout"       Name  of  the  manager  used to
34       track field ownership.
35
36
37       -f, --filename=[]      Filename, directory, or URL to files identifying
38       the resource to get from a server.
39
40
41       -k,  --kustomize=""      Process the kustomization directory. This flag
42       can't be used together with -f or -R.
43
44
45       -o, --output=""      Output format. One of: (json, yaml, name,  go-tem‐
46       plate, go-template-file, template, templatefile, jsonpath, jsonpath-as-
47       json, jsonpath-file).
48
49
50       -R, --recursive=false      Process the directory used in -f, --filename
51       recursively. Useful when you want to manage related manifests organized
52       within the same directory.
53
54
55       -l, --selector=""      Selector (label query) to  filter  on,  supports
56       '=', '==', and '!='.(e.g. -l key1=value1,key2=value2). Matching objects
57       must satisfy all of the specified label constraints.
58
59
60       --show-managed-fields=false      If true, keep the  managedFields  when
61       printing objects in JSON or YAML format.
62
63
64       --template=""      Template string or path to template file to use when
65       -o=go-template, -o=go-template-file. The template format is golang tem‐
66       plates [http://golang.org/pkg/text/template/#pkg-overview].
67
68
69

OPTIONS INHERITED FROM PARENT COMMANDS

71       --as=""      Username to impersonate for the operation. User could be a
72       regular user or a service account in a namespace.
73
74
75       --as-group=[]      Group to impersonate for the  operation,  this  flag
76       can be repeated to specify multiple groups.
77
78
79       --as-uid=""      UID to impersonate for the operation.
80
81
82       --azure-container-registry-config=""       Path  to the file containing
83       Azure container registry configuration information.
84
85
86       --cache-dir="/builddir/.kube/cache"      Default cache directory
87
88
89       --certificate-authority=""      Path to a cert file for the certificate
90       authority
91
92
93       --client-certificate=""      Path to a client certificate file for TLS
94
95
96       --client-key=""      Path to a client key file for TLS
97
98
99       --cluster=""      The name of the kubeconfig cluster to use
100
101
102       --context=""      The name of the kubeconfig context to use
103
104
105       --insecure-skip-tls-verify=false      If true, the server's certificate
106       will not be checked for validity. This will make your HTTPS connections
107       insecure
108
109
110       --kubeconfig=""       Path  to  the  kubeconfig file to use for CLI re‐
111       quests.
112
113
114       --match-server-version=false       Require  server  version  to   match
115       client version
116
117
118       -n,  --namespace=""       If  present, the namespace scope for this CLI
119       request
120
121
122       --password=""      Password for basic authentication to the API server
123
124
125       --profile="none"        Name   of   profile   to   capture.   One    of
126       (none|cpu|heap|goroutine|threadcreate|block|mutex)
127
128
129       --profile-output="profile.pprof"       Name  of  the  file to write the
130       profile to
131
132
133       --request-timeout="0"      The length of time to wait before giving  up
134       on  a  single  server  request. Non-zero values should contain a corre‐
135       sponding time unit (e.g. 1s, 2m, 3h). A value of zero means don't time‐
136       out requests.
137
138
139       -s, --server=""      The address and port of the Kubernetes API server
140
141
142       --tls-server-name=""       Server  name  to  use for server certificate
143       validation. If it is not provided, the hostname  used  to  contact  the
144       server is used
145
146
147       --token=""      Bearer token for authentication to the API server
148
149
150       --user=""      The name of the kubeconfig user to use
151
152
153       --username=""      Username for basic authentication to the API server
154
155
156       --version=false      Print version information and quit
157
158
159       --warnings-as-errors=false      Treat warnings received from the server
160       as errors and exit with a non-zero exit code
161
162
163

EXAMPLE

165                # Restart a deployment
166                kubectl rollout restart deployment/nginx
167
168                # Restart a daemon set
169                kubectl rollout restart daemonset/abc
170
171                # Restart deployments with the app=nginx label
172                kubectl rollout restart deployment --selector=app=nginx
173
174
175
176

SEE ALSO

178       kubectl-rollout(1),
179
180
181

HISTORY

183       January 2015, Originally compiled by Eric Paris (eparis at  redhat  dot
184       com)  based  on the kubernetes source material, but hopefully they have
185       been automatically generated since!
186
187
188
189Manuals                              User            KUBERNETES(1)(kubernetes)
Impressum