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

NAME

6       oc create route edge - Create a route that uses edge TLS termination
7
8
9

SYNOPSIS

11       oc create route edge [OPTIONS]
12
13
14

DESCRIPTION

16       Create a route that uses edge TLS termination
17
18
19       Specify  the  service  (either just its name or using type/name syntax)
20       that the generated route should expose via the --service flag.
21
22
23

OPTIONS

25       --allow-missing-template-keys=true
26           If true, ignore any errors in templates when a field or map key  is
27       missing  in  the  template.  Only applies to golang and jsonpath output
28       formats.
29
30
31       --ca-cert=""
32           Path to a CA certificate file.
33
34
35       --cert=""
36           Path to a certificate file.
37
38
39       --dry-run=false
40           If true, only print the object that would be sent, without  sending
41       it.
42
43
44       --hostname=""
45           Set a hostname for the new route
46
47
48       --insecure-policy=""
49           Set an insecure policy for the new route
50
51
52       --key=""
53           Path to a key file.
54
55
56       -o, --output=""
57           Output  format. One of: json|yaml|name|template|go-template|go-tem‐
58       plate-file|templatefile|jsonpath|jsonpath-file.
59
60
61       --path=""
62           Path that the router watches to route traffic to the service.
63
64
65       --port=""
66           Name of the service port or number of the container port the  route
67       will route traffic to
68
69
70       --service=""
71           Name of the service that the new route is exposing
72
73
74       --template=""
75           Template  string  or  path  to template file to use when -o=go-tem‐
76       plate, -o=go-template-file. The template format is golang  templates  [
77http://golang.org/pkg/text/template/#pkg-overview⟩].
78
79
80       --validate=false
81           If true, use a schema to validate the input before sending it
82
83
84       --wildcard-policy=""
85           Sets  the  WilcardPolicy  for  the hostname, the default is "None".
86       valid values are "None" and "Subdomain"
87
88
89

OPTIONS INHERITED FROM PARENT COMMANDS

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

EXAMPLE

343                # Create an edge route named "my-route" that exposes frontend service.
344                oc create route edge my-route --service=frontend
345
346                # Create an edge route that exposes the frontend service and specify a path.
347                # If the route name is omitted, the service name will be re-used.
348                oc create route edge --service=frontend --path /assets
349
350
351
352

SEE ALSO

354       oc-create-route(1),
355
356
357

HISTORY

359       June 2016, Ported from the Kubernetes man-doc generator
360
361
362
363Openshift                  Openshift CLI User Manuals       OC CREATE ROUTE(1)
Impressum