As soon as I started using YAML for OpenShift configuration I didn’t turn back. It is so much simpler to handle. Project routes can be configured in the web console but you can also import YAML.
Here is an example of such a YAML:
apiVersion: v1 kind: Route metadata: name: myapp labels: app: myapp name: myapp spec: host: mysuperdomain.se path: /myapp port: targetPort: 8080-tcp to: kind: Service name: myapp
NOTE! You need to setup a project service first so you have something to reference in the route (spec/to)
Tested on OpenShift Web Console: v3.11.153
0 Comments.