-
Notifications
You must be signed in to change notification settings - Fork 70
/
candlepin-deployment.yaml
64 lines (64 loc) · 1.92 KB
/
candlepin-deployment.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
apiVersion: apps/v1
kind: Deployment
metadata:
name: candlepin
namespace: default
spec:
template:
spec:
containers:
- name: postgres
image: postgres:latest
env:
- name: POSTGRES_DB
value: candlepin
- name: POSTGRES_HOST_AUTH_METHOD
value: trust
- name: POSTGRES_PASSWORD
value: candlepin
- name: POSTGRES_USER
value: candlepin
livenessProbe:
exec:
command:
- /bin/sh
- -c
- exec pg_isready -U candlepin -d candlepin -h localhost
failureThreshold: 10
periodSeconds: 5
timeoutSeconds: 5
ports:
- containerPort: 5432
hostPort: 5432
protocol: TCP
resources: {}
restartPolicy: Always
- name: candlepin
image: quay.io/candlepin/candlepin:dev-latest
env:
- name: CANDLEPIN_AUTH_CLOUD_ENABLE
value: "false"
- name: CANDLEPIN_AUTH_TRUSTED_ENABLE
value: "true"
- name: CANDLEPIN_STANDALONE
value: "false"
- name: JPA_CONFIG_HIBERNATE_CONNECTION_URL
value: jdbc:postgresql://postgres/candlepin
- name: MODULE_CONFIG_HOSTED_CONFIGURATION_MODULE
value: org.candlepin.testext.hostedtest.HostedTestModule
livenessProbe:
exec:
command:
- /bin/sh
- -c
- exec curl --fail -k https://localhost:8443/candlepin/status
failureThreshold: 10
initialDelaySeconds: 60
timeoutSeconds: 5
ports:
- containerPort: 8443
hostPort: 8443
protocol: TCP
resources: {}
restartPolicy: Always
status: {}