1OC(1)                              June 2016                             OC(1)
2
3
4

NAME

6       oc  autoscale  - Autoscale a deployment config, deployment, replication
7       controller, or replica set
8
9
10

SYNOPSIS

12       oc autoscale [OPTIONS]
13
14
15

DESCRIPTION

17       Autoscale a deployment config or replication controller.
18
19
20       Looks up a deployment config or replication controller by name and cre‐
21       ates an autoscaler that uses this deployment config or replication con‐
22       troller as a reference. An autoscaler  can  automatically  increase  or
23       decrease number of pods deployed within the system as needed.
24
25
26

OPTIONS

28       --allow-missing-template-keys=true
29           If  true, ignore any errors in templates when a field or map key is
30       missing in the template. Only applies to  golang  and  jsonpath  output
31       formats.
32
33
34       --cpu-percent=-1
35           The  target  average  CPU  utilization (represented as a percent of
36       requested CPU) over all the pods. If it's not specified or negative,  a
37       default autoscaling policy will be used.
38
39
40       --dry-run=false
41           If  true, only print the object that would be sent, without sending
42       it.
43
44
45       -f, --filename=[]
46           Filename, directory, or URL to files identifying  the  resource  to
47       autoscale.
48
49
50       --generator="horizontalpodautoscaler/v1"
51           The  name  of  the  API generator to use. Currently there is only 1
52       generator.
53
54
55       --max=-1
56           The upper limit for the number of pods  that  can  be  set  by  the
57       autoscaler. Required.
58
59
60       --min=-1
61           The  lower  limit  for  the  number  of pods that can be set by the
62       autoscaler. If it's not specified or negative, the server will apply  a
63       default value.
64
65
66       --name=""
67           The  name  for the newly created object. If not specified, the name
68       of the input resource will be used.
69
70
71       -o, --output=""
72           Output format.  One  of:  json|yaml|name|go-template-file|template‐
73       file|template|go-template|jsonpath|jsonpath-file.
74
75
76       --record=false
77           Record  current  kubectl command in the resource annotation. If set
78       to false, do not record the command. If set to true,  record  the  com‐
79       mand.  If  not  set,  default to updating the existing annotation value
80       only if one already exists.
81
82
83       -R, --recursive=false
84           Process the directory used in -f,  --filename  recursively.  Useful
85       when  you  want  to  manage related manifests organized within the same
86       directory.
87
88
89       --save-config=false
90           If true, the configuration of current object will be saved  in  its
91       annotation.  Otherwise,  the annotation will be unchanged. This flag is
92       useful when you want to perform kubectl apply on  this  object  in  the
93       future.
94
95
96       --template=""
97           Template  string  or  path  to template file to use when -o=go-tem‐
98       plate, -o=go-template-file. The template format is golang  templates  [
99http://golang.org/pkg/text/template/#pkg-overview⟩].
100
101
102

OPTIONS INHERITED FROM PARENT COMMANDS

104       --allow_verification_with_non_compliant_keys=false
105           Allow  a  SignatureVerifier  to  use  keys  which  are  technically
106       non-compliant with RFC6962.
107
108
109       --alsologtostderr=false
110           log to standard error as well as files
111
112
113       --application_metrics_count_limit=100
114           Max number of application metrics to store (per container)
115
116
117       --as=""
118           Username to impersonate for the operation
119
120
121       --as-group=[]
122           Group to impersonate for the operation, this flag can  be  repeated
123       to specify multiple groups.
124
125
126       --azure-container-registry-config=""
127           Path  to the file containing Azure container registry configuration
128       information.
129
130
131       --boot_id_file="/proc/sys/kernel/random/boot_id"
132           Comma-separated list of files to check for boot-id. Use  the  first
133       one that exists.
134
135
136       --cache-dir="/builddir/.kube/http-cache"
137           Default HTTP cache directory
138
139
140       --certificate-authority=""
141           Path to a cert file for the certificate authority
142
143
144       --client-certificate=""
145           Path to a client certificate file for TLS
146
147
148       --client-key=""
149           Path to a client key file for TLS
150
151
152       --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
153           CIDRs opened in GCE firewall for LB traffic proxy  health checks
154
155
156       --cluster=""
157           The name of the kubeconfig cluster to use
158
159
160       --container_hints="/etc/cadvisor/container_hints.json"
161           location of the container hints file
162
163
164       --containerd="unix:///var/run/containerd.sock"
165           containerd endpoint
166
167
168       --context=""
169           The name of the kubeconfig context to use
170
171
172       --default-not-ready-toleration-seconds=300
173           Indicates   the   tolerationSeconds   of   the    toleration    for
174       notReady:NoExecute  that is added by default to every pod that does not
175       already have such a toleration.
176
177
178       --default-unreachable-toleration-seconds=300
179           Indicates the tolerationSeconds  of  the  toleration  for  unreach‐
180       able:NoExecute  that  is  added  by  default to every pod that does not
181       already have such a toleration.
182
183
184       --docker="unix:///var/run/docker.sock"
185           docker endpoint
186
187
188       --docker-tls=false
189           use TLS to connect to docker
190
191
192       --docker-tls-ca="ca.pem"
193           path to trusted CA
194
195
196       --docker-tls-cert="cert.pem"
197           path to client certificate
198
199
200       --docker-tls-key="key.pem"
201           path to private key
202
203
204       --docker_env_metadata_whitelist=""
205           a comma-separated list of environment variable keys that  needs  to
206       be collected for docker containers
207
208
209       --docker_only=false
210           Only report docker containers in addition to root stats
211
212
213       --docker_root="/var/lib/docker"
214           DEPRECATED:  docker  root is read from docker info (this is a fall‐
215       back, default: /var/lib/docker)
216
217
218       --enable_load_reader=false
219           Whether to enable cpu load reader
220
221
222       --event_storage_age_limit="default=24h"
223           Max length of time for which to store events (per type). Value is a
224       comma  separated  list  of  key  values, where the keys are event types
225       (e.g.: creation, oom) or "default" and the value is a duration. Default
226       is applied to all non-specified event types
227
228
229       --event_storage_event_limit="default=100000"
230           Max  number  of  events to store (per type). Value is a comma sepa‐
231       rated list of key values, where the keys are event  types  (e.g.:  cre‐
232       ation,  oom)  or  "default"  and  the  value  is an integer. Default is
233       applied to all non-specified event types
234
235
236       --global_housekeeping_interval=0
237           Interval between global housekeepings
238
239
240       --housekeeping_interval=0
241           Interval between container housekeepings
242
243
244       --insecure-skip-tls-verify=false
245           If true, the server's certificate will not be checked for validity.
246       This will make your HTTPS connections insecure
247
248
249       --kubeconfig=""
250           Path to the kubeconfig file to use for CLI requests.
251
252
253       --log-flush-frequency=0
254           Maximum number of seconds between log flushes
255
256
257       --log_backtrace_at=:0
258           when logging hits line file:N, emit a stack trace
259
260
261       --log_cadvisor_usage=false
262           Whether to log the usage of the cAdvisor container
263
264
265       --log_dir=""
266           If non-empty, write log files in this directory
267
268
269       --logtostderr=true
270           log to standard error instead of files
271
272
273       --machine_id_file="/etc/machine-id,/var/lib/dbus/machine-id"
274           Comma-separated  list  of  files  to  check for machine-id. Use the
275       first one that exists.
276
277
278       --match-server-version=false
279           Require server version to match client version
280
281
282       -n, --namespace=""
283           If present, the namespace scope for this CLI request
284
285
286       --request-timeout="0"
287           The length of time to wait before giving  up  on  a  single  server
288       request. Non-zero values should contain a corresponding time unit (e.g.
289       1s, 2m, 3h). A value of zero means don't timeout requests.
290
291
292       -s, --server=""
293           The address and port of the Kubernetes API server
294
295
296       --stderrthreshold=2
297           logs at or above this threshold go to stderr
298
299
300       --storage_driver_buffer_duration=0
301           Writes in the storage driver will be buffered  for  this  duration,
302       and committed to the non memory backends as a single transaction
303
304
305       --storage_driver_db="cadvisor"
306           database name
307
308
309       --storage_driver_host="localhost:8086"
310           database host:port
311
312
313       --storage_driver_password="root"
314           database password
315
316
317       --storage_driver_secure=false
318           use secure connection with database
319
320
321       --storage_driver_table="stats"
322           table name
323
324
325       --storage_driver_user="root"
326           database username
327
328
329       --token=""
330           Bearer token for authentication to the API server
331
332
333       --user=""
334           The name of the kubeconfig user to use
335
336
337       -v, --v=0
338           log level for V logs
339
340
341       --version=false
342           Print version information and quit
343
344
345       --vmodule=
346           comma-separated  list  of pattern=N settings for file-filtered log‐
347       ging
348
349
350

EXAMPLE

352                # Auto scale a deployment config "foo", with the number of pods between 2 to
353                # 10, target CPU utilization at a default value that server applies:
354                oc autoscale dc/foo --min=2 --max=10
355
356                # Auto scale a replication controller "foo", with the number of pods between
357                # 1 to 5, target CPU utilization at 80%
358                oc autoscale rc/foo --max=5 --cpu-percent=80
359
360
361
362

SEE ALSO

364       oc(1),
365
366
367

HISTORY

369       June 2016, Ported from the Kubernetes man-doc generator
370
371
372
373Openshift                  Openshift CLI User Manuals                    OC(1)
Impressum