This repository was archived by the owner on Aug 1, 2019. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +38
-45
lines changed Expand file tree Collapse file tree 2 files changed +38
-45
lines changed Original file line number Diff line number Diff line change 99
1010.Procedure
1111
12- . Create a yaml file, "my-route.yaml" with the following contents:
13- .. Replace <YOUR KNATIVE SERVICE NAME> with your knative service name;
14- .. Replace <YOUR NAMESPACE> with your service's namespace;
15- .. Replace <YOUR CLUSTER SUFFIX> with the value output by the `oc get` command in the previous step.
16-
17- +
18- ----
19- apiVersion: v1
20- kind: Route
21- metadata:
22- name: <YOUR KNATIVE SERVICE NAME>
23- namespace: istio-system
24- spec:
25- host: <YOUR KNATIVE SERVICE NAME>.<YOUR NAMESPACE>.<YOUR CLUSTER SUFFIX>
26- to:
27- kind: Service
28- name: istio-ingressgateway
29- ----
30-
31- . Run the following yaml file command:
32-
33- `oc apply -f my-route.yaml`
34-
35- NOTE: If you previously deployed Knative Services, you will need to redeploy them for the changes to the domain ConfgMap to take effect.
12+ . Create a route by using the `oc expose` command.
13+
14+ ```
15+
16+ oc expose svc istio-ingressgateway --hostname=<servicename>.<projectname>.<openshiftdomain> --name=<servicename> -n istio-system`
17+
18+ ```
19+
20+
21+ For example, if the following inputs are used:
22+ * knative service name: _helloworld_
23+ * project: _my project_
24+ * cluster wildcard domain: _apps.demo1.d103.sandbox718.opentlc.com_
25+
26+ the `oc command` would be:
27+
28+ ```
29+
30+ oc expose svc istio-ingressgateway --hostname=helloworld.myproject.apps.demo1.d103.sandbox718.opentlc.com --name=helloworld -n istio-system
31+
32+ ```
Original file line number Diff line number Diff line change 6060
6161#### Creating an OpenShift Route pointing to the istio-ingressgateway for each of your Knative Service.
6262
63- 1 . Create a yaml file, "my-route.yaml" with the following content:
64- * Replace <YOUR KNATIVE SERVICE NAME > with your knative service name;
65- * Replace <YOUR NAMESPACE > with your service's namespace;
66- * Replace <YOUR CLUSTER SUFFIX > with the value output by the ` oc get ` command in the previous step.
67-
68- apiVersion: v1
69- kind: Route
70- metadata:
71- name: <YOUR KNATIVE SERVICE NAME>
72- namespace: istio-system
73- spec:
74- host: <YOUR KNATIVE SERVICE NAME>.<YOUR NAMESPACE>.<YOUR CLUSTER SUFFIX>
75- to:
76- kind: Service
77- name: istio-ingressgateway
78-
79- 2 . Run the following yaml file command:
80-
81- ` oc apply -f my-route.yaml `
82-
83- > ** NOTE** : If you previously deployed your Knative Services, you will need to redeploy them for the changes to the domain ConfgMap to take effect.
63+ 1 . Create a route by using the ` oc expose ` command.
64+
65+ ```
66+ oc expose svc istio-ingressgateway --hostname=<servicename>.<projectname>.<openshiftdomain> --name=<servicename> -n istio-system`
67+ ```
68+
69+ For example, if the following inputs are used:
70+ * knative service name: * helloworld*
71+ * project: * my project*
72+ * cluster wildcard domain: * apps.demo1.d103.sandbox718.opentlc.com*
73+
74+ the ` oc command ` would be:
75+
76+ ```
77+ oc expose svc istio-ingressgateway --hostname=helloworld.myproject.apps.demo1.d103.sandbox718.opentlc.com --name=helloworld -n istio-system
78+ ```
79+
You can’t perform that action at this time.
0 commit comments