API Lifecycle Demo
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

55 lines
1.4 KiB

apiVersion: template.openshift.io/v1
kind: Template
labels:
template: apicast
metadata:
annotations:
description: RHTE APIcast Routes
name: rhte-apicast-routes
objects:
- apiVersion: route.openshift.io/v1
kind: Route
metadata:
name: ${BASE_NAME}-${MAJOR_VERSION}-staging
spec:
host: ${BASE_NAME}-${MAJOR_VERSION}-staging.${WILDCARD_DOMAIN}
port:
targetPort: proxy
tls:
termination: edge
insecureEdgeTerminationPolicy: Allow
to:
kind: Service
name: apicast-staging
weight: 100
wildcardPolicy: None
- apiVersion: route.openshift.io/v1
kind: Route
metadata:
name: ${BASE_NAME}-${MAJOR_VERSION}-production
spec:
host: ${BASE_NAME}-${MAJOR_VERSION}.${WILDCARD_DOMAIN}
port:
targetPort: proxy
tls:
termination: edge
insecureEdgeTerminationPolicy: Allow
to:
kind: Service
name: apicast-production
weight: 100
wildcardPolicy: None
parameters:
- description: The DNS domain under which APIs will be exposed
displayName: 3scale wildcard domain
name: WILDCARD_DOMAIN
required: true
- description: 'The system_name of the API, converted to DNS ("_" -> "-")'
displayName: 3scale API Base Name
name: BASE_NAME
value: rhte-api
required: true
- description: The API major version (1, 2, etc.)
displayName: 3scale API major version
name: MAJOR_VERSION
required: true