1KUBERNETES(1)(kubernetes) KUBERNETES(1)(kubernetes)
2
3
4
5Eric Paris Jan 2015
6
7
9 kubectl rollout restart - Restart a resource
10
11
12
14 kubectl rollout restart [OPTIONS]
15
16
17
19 Restart a resource.
20
21
22 Resource rollout will be restarted.
23
24
25
27 --allow-missing-template-keys=true If true, ignore any errors in
28 templates when a field or map key is missing in the template. Only ap‐
29 plies to golang and jsonpath output formats.
30
31
32 --field-manager="kubectl-rollout" Name of the manager used to
33 track field ownership.
34
35
36 -f, --filename=[] Filename, directory, or URL to files identifying
37 the resource to get from a server.
38
39
40 -k, --kustomize="" Process the kustomization directory. This flag
41 can't be used together with -f or -R.
42
43
44 -o, --output="" Output format. One of: (json, yaml, name, go-tem‐
45 plate, go-template-file, template, templatefile, jsonpath, jsonpath-as-
46 json, jsonpath-file).
47
48
49 -R, --recursive=false Process the directory used in -f, --filename
50 recursively. Useful when you want to manage related manifests organized
51 within the same directory.
52
53
54 -l, --selector="" Selector (label query) to filter on, supports
55 '=', '==', and '!='.(e.g. -l key1=value1,key2=value2). Matching objects
56 must satisfy all of the specified label constraints.
57
58
59 --show-managed-fields=false If true, keep the managedFields when
60 printing objects in JSON or YAML format.
61
62
63 --template="" Template string or path to template file to use when
64 -o=go-template, -o=go-template-file. The template format is golang tem‐
65 plates [http://golang.org/pkg/text/template/#pkg-overview].
66
67
68
70 --as="" Username to impersonate for the operation. User could be a
71 regular user or a service account in a namespace.
72
73
74 --as-group=[] Group to impersonate for the operation, this flag
75 can be repeated to specify multiple groups.
76
77
78 --as-uid="" UID to impersonate for the operation.
79
80
81 --azure-container-registry-config="" Path to the file containing
82 Azure container registry configuration information.
83
84
85 --cache-dir="/builddir/.kube/cache" Default cache directory
86
87
88 --certificate-authority="" Path to a cert file for the certificate
89 authority
90
91
92 --client-certificate="" Path to a client certificate file for TLS
93
94
95 --client-key="" Path to a client key file for TLS
96
97
98 --cluster="" The name of the kubeconfig cluster to use
99
100
101 --context="" The name of the kubeconfig context to use
102
103
104 --disable-compression=false If true, opt-out of response compres‐
105 sion for all requests to the server
106
107
108 --insecure-skip-tls-verify=false If true, the server's certificate
109 will not be checked for validity. This will make your HTTPS connections
110 insecure
111
112
113 --kubeconfig="" Path to the kubeconfig file to use for CLI re‐
114 quests.
115
116
117 --match-server-version=false Require server version to match
118 client version
119
120
121 -n, --namespace="" If present, the namespace scope for this CLI
122 request
123
124
125 --password="" Password for basic authentication to the API server
126
127
128 --profile="none" Name of profile to capture. One of
129 (none|cpu|heap|goroutine|threadcreate|block|mutex)
130
131
132 --profile-output="profile.pprof" Name of the file to write the
133 profile to
134
135
136 --request-timeout="0" The length of time to wait before giving up
137 on a single server request. Non-zero values should contain a corre‐
138 sponding time unit (e.g. 1s, 2m, 3h). A value of zero means don't time‐
139 out requests.
140
141
142 -s, --server="" The address and port of the Kubernetes API server
143
144
145 --tls-server-name="" Server name to use for server certificate
146 validation. If it is not provided, the hostname used to contact the
147 server is used
148
149
150 --token="" Bearer token for authentication to the API server
151
152
153 --user="" The name of the kubeconfig user to use
154
155
156 --username="" Username for basic authentication to the API server
157
158
159 --version=false Print version information and quit
160
161
162 --warnings-as-errors=false Treat warnings received from the server
163 as errors and exit with a non-zero exit code
164
165
166
168 # Restart a deployment
169 kubectl rollout restart deployment/nginx
170
171 # Restart a daemon set
172 kubectl rollout restart daemonset/abc
173
174 # Restart deployments with the app=nginx label
175 kubectl rollout restart deployment --selector=app=nginx
176
177
178
179
181 kubectl-rollout(1),
182
183
184
186 January 2015, Originally compiled by Eric Paris (eparis at redhat dot
187 com) based on the kubernetes source material, but hopefully they have
188 been automatically generated since!
189
190
191
192Manuals User KUBERNETES(1)(kubernetes)