-
Notifications
You must be signed in to change notification settings - Fork 9
/
apicast-routes-template.yaml
53 lines (51 loc) · 1.38 KB
/
apicast-routes-template.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
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: gateway
tls:
termination: edge
insecureEdgeTerminationPolicy: Allow
to:
kind: Service
name: apicast-staging
- apiVersion: route.openshift.io/v1
kind: Route
metadata:
name: ${BASE_NAME}-${MAJOR_VERSION}-production
spec:
host: ${BASE_NAME}-${MAJOR_VERSION}.${WILDCARD_DOMAIN}
port:
targetPort: gateway
tls:
termination: edge
insecureEdgeTerminationPolicy: Allow
to:
kind: Service
name: apicast-production
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