-
Notifications
You must be signed in to change notification settings - Fork 5
/
OpenShiftTemplate.yaml
105 lines (105 loc) · 2.41 KB
/
OpenShiftTemplate.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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
apiVersion: v1
kind: Template
metadata:
name: my-template
objects:
- kind: DeploymentConfig
apiVersion: v1
metadata:
labels:
${TAG}: ${SELECTOR_APP_NAME}
name: ${APP_NAME}
namespace: ${NAMESPACE_NAME}
spec:
replicas: 1
revisionHistoryLimit: 10
selector:
app: ${APP_NAME}
deploymentconfig: ${APP_NAME}
strategy:
activeDeadlineSeconds: 21600
resources: {}
rollingParams:
intervalSeconds: 1
maxSurge: 25%
maxUnavailable: 25%
timeoutSeconds: 600
updatePeriodSeconds: 1
type: Rolling
template:
metadata:
annotations:
openshift.io/generated-by: OpenShiftNewApp
creationTimestamp: null
labels:
app: ${APP_NAME}
deploymentconfig: ${APP_NAME}
spec:
containers:
- env:
name: ${APP_NAME}
ports:
- containerPort: 8090
protocol: TCP
resources: {}
dnsPolicy: ClusterFirst
restartPolicy: Always
schedulerName: default-scheduler
securityContext: {}
terminationGracePeriodSeconds: 30
test: false
triggers:
- type: ConfigChange
- imageChangeParams:
automatic: true
containerNames:
- ${APP_NAME}
from:
kind: ImageStreamTag
name: 'blog-api:latest'
namespace: ${NAMESPACE_NAME}
type: ImageChange
- kind: Service
apiVersion: v1
metadata:
labels:
${TAG}: ${SELECTOR_APP_NAME}
name: ${APP_NAME}
namespace: ${NAMESPACE_NAME}
spec:
ports:
- name: 80-tcp
port: 80
protocol: TCP
targetPort: 8090
selector:
app: ${APP_NAME}
deploymentconfig: ${APP_NAME}
sessionAffinity: None
type: ClusterIP
status:
loadBalancer: {}
- kind: Route
apiVersion: v1
metadata:
labels:
${TAG}: ${SELECTOR_APP_NAME}
name: ${APP_NAME}
namespace: ${NAMESPACE_NAME}
spec:
host: ${HOST_NAME}
port:
targetPort: 80-tcp
to:
kind: Service
name: ${APP_NAME}
weight: 100
wildcardPolicy: None
parameters:
- name: NAMESPACE_NAME
- name: SELECTOR_APP_NAME
- name: APP_NAME
value: quarkus-blog-api
- name: HOST_NAME
- name: TAG
value: app