-
Notifications
You must be signed in to change notification settings - Fork 87
/
component-images.yaml
68 lines (68 loc) · 1.81 KB
/
component-images.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
apiVersion: v1
kind: List
items:
- apiVersion: v1
kind: Pod
metadata:
name: tutorial-tools
labels:
app: tutorial-tools
spec:
containers:
- name: tutorial-tools
image: quay.io/rhdevelopers/tutorial-tools:0.0.4
imagePullPolicy: IfNotPresent
env:
- name: MAVEN_MIRROR_URL
value: "http://nexus.rhd-workshop-infra:8081/nexus/content/groups/public"
workingDir: /projects
resources:
limits:
cpu: 4
memory: 6Gi
- apiVersion: v1
kind: Pod
metadata:
name: database
labels:
app: database
spec:
containers:
- name: database
resources:
limits:
memory: 512Mi
requests:
memory: 512Mi
readinessProbe:
exec:
command:
- /usr/libexec/check-container
initialDelaySeconds: 5
timeoutSeconds: 1
periodSeconds: 10
successThreshold: 1
failureThreshold: 3
livenessProbe:
exec:
command:
- /usr/libexec/check-container
- "--live"
initialDelaySeconds: 120
timeoutSeconds: 10
periodSeconds: 10
successThreshold: 1
failureThreshold: 3
env:
- name: POSTGRESQL_USER
value: demo
- name: POSTGRESQL_PASSWORD
value: password
- name: POSTGRESQL_DATABASE
value: demodb
ports:
- containerPort: 5432
protocol: TCP
imagePullPolicy: IfNotPresent
image: >-
image-registry.openshift-image-registry.svc:5000/openshift/postgresql