-
Notifications
You must be signed in to change notification settings - Fork 16
Expand file tree
/
Copy pathkubernetes.yaml
More file actions
94 lines (93 loc) · 2.04 KB
/
kubernetes.yaml
File metadata and controls
94 lines (93 loc) · 2.04 KB
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
---
apiVersion: v1
kind: Service
metadata:
name: qledger
spec:
type: ClusterIP
selector:
app: qledger
ports:
- name: http
protocol: TCP
port: 7000
targetPort: 7000
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: qledger
labels:
app: qledger
spec:
replicas: 1
strategy:
type: RollingUpdate
rollingUpdate:
maxUnavailable: 1
selector:
matchLabels:
app: qledger
template:
metadata:
labels:
app: qledger
spec:
containers:
- image: postgres:11
name: postgres
env:
- name: POSTGRES_USER
value: qledger
- name: POSTGRES_PASSWORD
value: password
- name: POSTGRES_DB
value: qledger
ports:
- containerPort: 5432
name: tcp
protocol: TCP
readinessProbe:
tcpSocket:
port: 7000
initialDelaySeconds: 5
periodSeconds: 10
livenessProbe:
tcpSocket:
port: 7000
initialDelaySeconds: 5
periodSeconds: 10
- image: moov/qledger:latest
imagePullPolicy: Always
name: qledger
env:
- name: LEDGER_AUTH_TOKEN
value: qledger
- name: MIGRATION_FILES_PATH
value: file:///go/src/github.com/RealImage/QLedger/migrations/postgres/
- name: DATABASE_URL
value: 'postgres://qledger:password@127.0.0.1:5432/qledger?sslmode=disable'
ports:
- containerPort: 7000
name: http
protocol: TCP
resources:
limits:
cpu: 0.1
memory: 50Mi
requests:
memory: 25Mi
readinessProbe:
httpGet:
path: /ping
port: 7000
initialDelaySeconds: 5
periodSeconds: 5
livenessProbe:
httpGet:
path: /ping
port: 7000
initialDelaySeconds: 5
periodSeconds: 5
restartPolicy: Always
---