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

NAME

6       oc - Command line tools for managing applications
7
8
9

SYNOPSIS

11       oc [OPTIONS]
12
13
14

DESCRIPTION

16       OpenShift Client
17
18
19       This client helps you develop, build, deploy, and run your applications
20       on any OpenShift or Kubernetes compatible platform.  It  also  includes
21       the administrative commands for managing a cluster under the 'adm' sub‐
22       command.
23
24
25

OPTIONS

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

SEE ALSO

279       oc-adm(1),   oc-annotate(1),  oc-api-resources(1),  oc-api-versions(1),
280       oc-apply(1),      oc-attach(1),      oc-auth(1),       oc-autoscale(1),
281       oc-build-logs(1),  oc-cancel-build(1), oc-cluster(1), oc-completion(1),
282       oc-config(1),  oc-convert(1),  oc-cp(1),   oc-create(1),   oc-debug(1),
283       oc-delete(1),   oc-describe(1),   oc-edit(1),   oc-ex(1),   oc-exec(1),
284       oc-explain(1), oc-export(1),  oc-expose(1),  oc-extract(1),  oc-get(1),
285       oc-idle(1), oc-image(1), oc-import(1), oc-import-image(1), oc-label(1),
286       oc-login(1), oc-logout(1), oc-logs(1), oc-new-app(1),  oc-new-build(1),
287       oc-new-project(1),  oc-observe(1), oc-options(1), oc-patch(1), oc-plug‐
288       in(1), oc-policy(1), oc-port-forward(1), oc-process(1),  oc-project(1),
289       oc-projects(1),  oc-proxy(1),  oc-registry(1),  oc-replace(1), oc-roll‐
290       back(1), oc-rollout(1), oc-rsh(1), oc-rsync(1), oc-run(1), oc-scale(1),
291       oc-secrets(1),   oc-serviceaccounts(1),  oc-set(1),  oc-start-build(1),
292       oc-status(1),  oc-tag(1),   oc-types(1),   oc-version(1),   oc-wait(1),
293       oc-whoami(1),
294
295
296

HISTORY

298       June 2016, Ported from the Kubernetes man-doc generator
299
300
301
302Openshift                  Openshift CLI User Manuals                    OC(1)
Impressum