blob: 2f46047e65965dc7790e798dc13010a92635e793 [file] [log] [blame]
Giorgi Lekveishvilic39457b2024-10-24 20:13:06 +04001apiVersion: v1
2kind: Service
3metadata:
4 name: etherpad
5 namespace: {{ .Release.Namespace }}
6spec:
7 type: ClusterIP
8 selector:
9 app: etherpad
10 ports:
Giorgi Lekveishvili06a67912025-04-20 15:56:03 +040011 - name: http
12 port: {{ .Values.port }}
13 targetPort: http
Giorgi Lekveishvilic39457b2024-10-24 20:13:06 +040014 protocol: TCP
15---
16apiVersion: apps/v1
17kind: Deployment
18metadata:
19 name: etherpad
20 namespace: {{ .Release.Namespace }}
21spec:
22 selector:
23 matchLabels:
24 app: etherpad
25 replicas: 1
26 template:
27 metadata:
28 labels:
29 app: etherpad
30 spec:
31 volumes:
32 - name: data
33 persistentVolumeClaim:
34 claimName: {{ .Values.persistentVolumeClaimName }}
35 containers:
36 - name: etherpad
37 image: {{ .Values.image.repository }}:{{ .Values.image.tag }}
38 imagePullPolicy: {{ .Values.image.pullPolicy }}
39 ports:
Giorgi Lekveishvili06a67912025-04-20 15:56:03 +040040 - name: http
41 containerPort: {{ .Values.port }}
Giorgi Lekveishvilic39457b2024-10-24 20:13:06 +040042 protocol: TCP
43 env:
Giorgi Lekveishvilif69eb1d2024-10-24 21:07:26 +040044 - name: "PORT"
45 value: "8080"
Giorgi Lekveishvilic39457b2024-10-24 20:13:06 +040046 - name: "NODE_ENV"
47 value: "production"
48 - name: "ADMIN_PASSWORD"
49 value: "admin"
50 - name: "USER_PASSWORD"
51 value: "user"
52 - name: "DEFAULT_PAD_TEXT"
53 value: "dodo"
54 - name: "TRUST_PROXY"
55 value: "true"
56 - name: "DB_TYPE"
Giorgi Lekveishvilib8c412c2024-10-24 20:27:31 +040057 value: "{{ .Values.db.type }}"
Giorgi Lekveishvilic39457b2024-10-24 20:13:06 +040058 - name: "DB_HOST"
Giorgi Lekveishvilib8c412c2024-10-24 20:27:31 +040059 value: "{{ .Values.db.host }}"
Giorgi Lekveishvilic39457b2024-10-24 20:13:06 +040060 - name: "DB_PORT"
Giorgi Lekveishvilib8c412c2024-10-24 20:27:31 +040061 value: "{{ .Values.db.port }}"
Giorgi Lekveishvilic39457b2024-10-24 20:13:06 +040062 - name: "DB_NAME"
Giorgi Lekveishvilib8c412c2024-10-24 20:27:31 +040063 value: "{{ .Values.db.name }}"
Giorgi Lekveishvilic39457b2024-10-24 20:13:06 +040064 - name: "DB_USER"
Giorgi Lekveishvilib8c412c2024-10-24 20:27:31 +040065 value: "{{ .Values.db.user }}"
Giorgi Lekveishvilic39457b2024-10-24 20:13:06 +040066 - name: "DB_PASS"
Giorgi Lekveishvilib8c412c2024-10-24 20:27:31 +040067 value: "{{ .Values.db.pass }}"
Giorgi Lekveishvilic39457b2024-10-24 20:13:06 +040068 - name: "DB_CHARSET"
Giorgi Lekveishvilib8c412c2024-10-24 20:27:31 +040069 value: "{{ .Values.db.charset }}"
Giorgi Lekveishvilic39457b2024-10-24 20:13:06 +040070 volumeMounts:
71 - name: data
72 mountPath: /var/lib/etherpad
73 readOnly: false