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

NAME

6       oc  completion  -  Output shell completion code for the specified shell
7       (bash or zsh)
8
9
10

SYNOPSIS

12       oc completion [OPTIONS]
13
14
15

DESCRIPTION

17       This command prints shell code  which  must  be  evaluated  to  provide
18       interactive completion of oc commands.
19
20
21

OPTIONS INHERITED FROM PARENT COMMANDS

23       --allow_verification_with_non_compliant_keys=false
24           Allow  a  SignatureVerifier  to  use  keys  which  are  technically
25       non-compliant with RFC6962.
26
27
28       --alsologtostderr=false
29           log to standard error as well as files
30
31
32       --application_metrics_count_limit=100
33           Max number of application metrics to store (per container)
34
35
36       --as=""
37           Username to impersonate for the operation
38
39
40       --as-group=[]
41           Group to impersonate for the operation, this flag can  be  repeated
42       to specify multiple groups.
43
44
45       --azure-container-registry-config=""
46           Path  to the file containing Azure container registry configuration
47       information.
48
49
50       --boot_id_file="/proc/sys/kernel/random/boot_id"
51           Comma-separated list of files to check for boot-id. Use  the  first
52       one that exists.
53
54
55       --cache-dir="/builddir/.kube/http-cache"
56           Default HTTP cache directory
57
58
59       --certificate-authority=""
60           Path to a cert file for the certificate authority
61
62
63       --client-certificate=""
64           Path to a client certificate file for TLS
65
66
67       --client-key=""
68           Path to a client key file for TLS
69
70
71       --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
72           CIDRs opened in GCE firewall for LB traffic proxy  health checks
73
74
75       --cluster=""
76           The name of the kubeconfig cluster to use
77
78
79       --container_hints="/etc/cadvisor/container_hints.json"
80           location of the container hints file
81
82
83       --containerd="unix:///var/run/containerd.sock"
84           containerd endpoint
85
86
87       --context=""
88           The name of the kubeconfig context to use
89
90
91       --default-not-ready-toleration-seconds=300
92           Indicates   the   tolerationSeconds   of   the    toleration    for
93       notReady:NoExecute  that is added by default to every pod that does not
94       already have such a toleration.
95
96
97       --default-unreachable-toleration-seconds=300
98           Indicates the tolerationSeconds  of  the  toleration  for  unreach‐
99       able:NoExecute  that  is  added  by  default to every pod that does not
100       already have such a toleration.
101
102
103       --docker="unix:///var/run/docker.sock"
104           docker endpoint
105
106
107       --docker-tls=false
108           use TLS to connect to docker
109
110
111       --docker-tls-ca="ca.pem"
112           path to trusted CA
113
114
115       --docker-tls-cert="cert.pem"
116           path to client certificate
117
118
119       --docker-tls-key="key.pem"
120           path to private key
121
122
123       --docker_env_metadata_whitelist=""
124           a comma-separated list of environment variable keys that  needs  to
125       be collected for docker containers
126
127
128       --docker_only=false
129           Only report docker containers in addition to root stats
130
131
132       --docker_root="/var/lib/docker"
133           DEPRECATED:  docker  root is read from docker info (this is a fall‐
134       back, default: /var/lib/docker)
135
136
137       --enable_load_reader=false
138           Whether to enable cpu load reader
139
140
141       --event_storage_age_limit="default=24h"
142           Max length of time for which to store events (per type). Value is a
143       comma  separated  list  of  key  values, where the keys are event types
144       (e.g.: creation, oom) or "default" and the value is a duration. Default
145       is applied to all non-specified event types
146
147
148       --event_storage_event_limit="default=100000"
149           Max  number  of  events to store (per type). Value is a comma sepa‐
150       rated list of key values, where the keys are event  types  (e.g.:  cre‐
151       ation,  oom)  or  "default"  and  the  value  is an integer. Default is
152       applied to all non-specified event types
153
154
155       --global_housekeeping_interval=0
156           Interval between global housekeepings
157
158
159       --housekeeping_interval=0
160           Interval between container housekeepings
161
162
163       --httptest.serve=""
164           if non-empty, httptest.NewServer serves on this address and blocks
165
166
167       --insecure-skip-tls-verify=false
168           If true, the server's certificate will not be checked for validity.
169       This will make your HTTPS connections insecure
170
171
172       --kubeconfig=""
173           Path to the kubeconfig file to use for CLI requests.
174
175
176       --log-flush-frequency=0
177           Maximum number of seconds between log flushes
178
179
180       --log_backtrace_at=:0
181           when logging hits line file:N, emit a stack trace
182
183
184       --log_cadvisor_usage=false
185           Whether to log the usage of the cAdvisor container
186
187
188       --log_dir=""
189           If non-empty, write log files in this directory
190
191
192       --logtostderr=true
193           log to standard error instead of files
194
195
196       --machine_id_file="/etc/machine-id,/var/lib/dbus/machine-id"
197           Comma-separated  list  of  files  to  check for machine-id. Use the
198       first one that exists.
199
200
201       --match-server-version=false
202           Require server version to match client version
203
204
205       -n, --namespace=""
206           If present, the namespace scope for this CLI request
207
208
209       --request-timeout="0"
210           The length of time to wait before giving  up  on  a  single  server
211       request. Non-zero values should contain a corresponding time unit (e.g.
212       1s, 2m, 3h). A value of zero means don't timeout requests.
213
214
215       -s, --server=""
216           The address and port of the Kubernetes API server
217
218
219       --stderrthreshold=2
220           logs at or above this threshold go to stderr
221
222
223       --storage_driver_buffer_duration=0
224           Writes in the storage driver will be buffered  for  this  duration,
225       and committed to the non memory backends as a single transaction
226
227
228       --storage_driver_db="cadvisor"
229           database name
230
231
232       --storage_driver_host="localhost:8086"
233           database host:port
234
235
236       --storage_driver_password="root"
237           database password
238
239
240       --storage_driver_secure=false
241           use secure connection with database
242
243
244       --storage_driver_table="stats"
245           table name
246
247
248       --storage_driver_user="root"
249           database username
250
251
252       --token=""
253           Bearer token for authentication to the API server
254
255
256       --user=""
257           The name of the kubeconfig user to use
258
259
260       -v, --v=0
261           log level for V logs
262
263
264       --version=false
265           Print version information and quit
266
267
268       --vmodule=
269           comma-separated  list  of pattern=N settings for file-filtered log‐
270       ging
271
272
273

EXAMPLE

275                # Generate the oc completion code for bash
276                oc completion bash > bash_completion.sh
277                source bash_completion.sh
278
279                # The above example depends on the bash-completion framework.
280                # It must be sourced before sourcing the openshift cli completion,
281                # i.e. on the Mac:
282
283                brew install bash-completion
284                source $(brew --prefix)/etc/bash_completion
285                oc completion bash > bash_completion.sh
286                source bash_completion.sh
287
288                # In zsh*, the following will load openshift cli zsh completion:
289                source <(oc completion zsh)
290
291                * zsh completions are only supported in versions of zsh >= 5.2
292
293
294
295

SEE ALSO

297       oc(1),
298
299
300

HISTORY

302       June 2016, Ported from the Kubernetes man-doc generator
303
304
305
306Openshift                  Openshift CLI User Manuals                    OC(1)
Impressum