forked from paritytech/polkadot-testnet-faucet
-
Notifications
You must be signed in to change notification settings - Fork 0
/
deployment.template.yaml
49 lines (49 loc) · 1.34 KB
/
deployment.template.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
apiVersion: apps/v1
kind: Deployment
metadata:
name: $CI_PROJECT_NAME
spec:
selector:
matchLabels:
app: $CI_PROJECT_NAME
template:
metadata:
labels:
app: $CI_PROJECT_NAME
component: backend
spec:
containers:
- name: $CI_PROJECT_NAME-bot
image: paritytech/$DOCKER_IMAGE-bot:$DOCKER_TAG
env:
- name: MATRIX_ACCESS_TOKEN
valueFrom:
secretKeyRef:
name: $CI_PROJECT_NAME-config
key: matrix-access-token
- name: BACKEND_URL
value: 'http://localhost:5555'
imagePullPolicy: Always
- name: $CI_PROJECT_NAME-server
image: paritytech/$DOCKER_IMAGE-server:$DOCKER_TAG
env:
- name: MNEMONIC
valueFrom:
secretKeyRef:
name: $CI_PROJECT_NAME-config
key: mnemonic
readinessProbe:
httpGet:
path: /ready
port: 5555
failureThreshold: 1
periodSeconds: 10
initialDelaySeconds: 60
livenessProbe:
httpGet:
path: /health
port: 5555
failureThreshold: 1
periodSeconds: 30
initialDelaySeconds: 60
imagePullPolicy: Always