cara/app-config/openshift/routes.example.yaml

38 lines
851 B
YAML
Raw Normal View History

2021-02-15 18:45:42 +00:00
---
kind: "Template"
2021-12-05 21:26:37 +00:00
apiVersion: template.openshift.io/v1
2021-02-15 18:45:42 +00:00
metadata:
2022-09-09 13:05:29 +00:00
name: "caimira-route"
2021-02-15 18:45:42 +00:00
creationTimestamp: null
annotations:
2022-09-09 13:05:29 +00:00
description: "CAiMIRA route OpenShift template."
tags: "caimira-route"
2021-02-15 18:45:42 +00:00
labels:
2022-09-09 13:05:29 +00:00
template: "caimira-route"
2021-02-15 18:45:42 +00:00
objects:
-
2021-12-05 21:26:37 +00:00
apiVersion: route.openshift.io/v1
2021-02-15 18:45:42 +00:00
kind: Route
metadata:
2022-09-09 13:05:29 +00:00
name: caimira-route
labels:
2022-09-09 13:05:29 +00:00
app: "caimira-route"
2021-02-15 18:45:42 +00:00
spec:
host: ${HOST}
port:
targetPort: 8080-tcp
2021-02-15 18:45:42 +00:00
tls:
insecureEdgeTerminationPolicy: Redirect
termination: edge
to:
kind: Service
2022-09-09 13:05:29 +00:00
name: caimira-router
weight: 100
wildcardPolicy: None
2021-02-15 18:45:42 +00:00
parameters:
- name: HOST
2022-09-09 09:42:16 +00:00
description: The hostname of the site, e.g. caimira-test.web.cern.ch
2021-02-15 18:45:42 +00:00
required: true