-
Notifications
You must be signed in to change notification settings - Fork 2
/
openshift.yml
58 lines (58 loc) · 1.18 KB
/
openshift.yml
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
apiVersion: v1
kind: Template
metadata:
name: pipelines-test-container
objects:
- apiVersion: apps/v1
kind: Deployment
metadata:
labels:
app: ${NAME}
name: ${NAME}
spec:
replicas: 1
revisionHistoryLimit: 2
selector:
matchLabels:
app: ${NAME}
strategy:
type: RollingUpdate
rollingUpdate:
maxUnavailable: 0
maxSurge: 1
template:
metadata:
labels:
app: ${NAME}
spec:
containers:
- image: ${IMAGE}:${IMAGE_TAG}
name: pipelines-test-container
command: ["sleep"]
args: ["infinity"]
resources:
limits:
cpu: ${{CPU_LIMIT}}
memory: ${{MEMORY_LIMIT}}
requests:
cpu: ${{CPU_REQUEST}}
memory: ${{MEMORY_REQUEST}}
parameters:
- name: IMAGE
value: quay.io/app-sre/ubi9-ubi-minimal
- name: IMAGE_TAG
value: latest
- name: NAME
value: pipelines-test-container
- name: CPU_REQUEST
value: "10m"
required: true
- name: MEMORY_REQUEST
value: "1Mi"
required: true
- name: MEMORY_LIMIT
value: "32Mi"
required: true
- name: CPU_LIMIT
value: "100m"
required: true