This repository has been archived by the owner on Oct 11, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 8
/
processbot.yaml
110 lines (109 loc) · 3.06 KB
/
processbot.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
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
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
---
apiVersion: v1
kind: Service
metadata:
name: parity-processbot
namespace: {{ .Values.app.KUBE_NAMESPACE }}
labels:
app: parity-processbot
spec:
ports:
- name: backend
port: {{ .Values.app.WEBHOOK_PORT }}
selector:
app: parity-processbot
---
apiVersion: apps/v1
kind: StatefulSet
metadata:
name: parity-processbot
namespace: {{ .Values.app.KUBE_NAMESPACE }}
labels:
app: parity-processbot
spec:
selector:
matchLabels:
app: parity-processbot
serviceName: parity-processbot
updateStrategy:
type: RollingUpdate
replicas: 1
template:
metadata:
labels:
app: parity-processbot
spec:
volumes:
- name: processbot-key-volume
secret:
secretName: processbot-key
defaultMode: 256
- name: storage
persistentVolumeClaim:
claimName: processbot-pv-claim
containers:
- name: parity-processbot
imagePullPolicy: Always
image: paritytech/processbot:{{ .Values.app.DOCKER_TAG }}
volumeMounts:
- name: processbot-key-volume
mountPath: "/etc/processbot-key"
readOnly: true
- name: storage
mountPath: {{ .Values.config.storagePath }}
ports:
- name: backend
containerPort: {{ .Values.app.WEBHOOK_PORT }}
readinessProbe:
httpGet:
path: /health
port: {{ .Values.app.WEBHOOK_PORT }}
initialDelaySeconds: 15
periodSeconds: 5
livenessProbe:
httpGet:
path: /health
port: {{ .Values.app.WEBHOOK_PORT }}
initialDelaySeconds: 15
periodSeconds: 5
env:
- name: RUST_BACKTRACE
value: full
- name: RUST_LOG
value: debug
- name: GITLAB_URL
value: {{ .Values.app.GITLAB_URL }}
- name: GITLAB_ACCESS_TOKEN
value: {{ .Values.app.GITLAB_ACCESS_TOKEN }}
- name: INSTALLATION_LOGIN
value: {{ .Values.app.INSTALLATION_LOGIN }}
- name: PRIVATE_KEY_PATH
value: "/etc/processbot-key/PROCESSBOT_KEY"
- name: WEBHOOK_PORT
value: {{ quote .Values.app.WEBHOOK_PORT }}
- name: START_FROM_CWD
value: {{ quote .Values.app.START_FROM_CWD }}
- name: GITHUB_APP_ID
value: {{ quote .Values.app.GITHUB_APP_ID }}
- name: DEPENDENCY_UPDATE_CONFIGURATION
value: {{ quote .Values.app.DEPENDENCY_UPDATE_CONFIGURATION }}
- name: DB_PATH
value: {{ .Values.config.storagePath }}/db
- name: REPOSITORIES_PATH
value: {{ .Values.config.storagePath }}/repositories
- name: WEBHOOK_SECRET
valueFrom:
secretKeyRef:
name: env-secrets
key: WEBHOOK_SECRET
---
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
name: processbot-pv-claim
spec:
accessModes:
- ReadWriteOnce
resources:
requests:
storage: 10Gi