-
Notifications
You must be signed in to change notification settings - Fork 0
/
mariadb-deploy.yml
78 lines (78 loc) · 1.8 KB
/
mariadb-deploy.yml
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
kind: Deployment
apiVersion: apps/v1
metadata:
name: mariadb
labels:
app: mariadb
part-of: ombi
spec:
replicas: 1
selector:
matchLabels:
app: mariadb
part-of: ombi
strategy:
type: Recreate
template:
metadata:
labels:
app: mariadb
part-of: ombi
spec:
serviceAccountName: ombi
containers:
- name: mariadb
image: ghcr.io/linuxserver/mariadb:10.5.13-alpine
ports:
- name: mariadb
containerPort: 3306
env:
- name: PUID
value: "1000"
- name: PGID
value: "1000"
- name: TZ
value: "Europe/Paris"
- name: MYSQL_ROOT_PASSWORD
valueFrom:
secretKeyRef:
name: ombi
key: MYSQL_ROOT_PASSWORD
- name: MYSQL_LOG_CONSOLE
value: "false"
- name: MYSQL_USER
valueFrom:
secretKeyRef:
name: ombi
key: MYSQL_USER
- name: MYSQL_DATABASE
valueFrom:
secretKeyRef:
name: ombi
key: MYSQL_DATABASE
- name: MYSQL_PASSWORD
valueFrom:
secretKeyRef:
name: ombi
key: MYSQL_PASSWORD
resources:
limits:
memory: 150Mi
requests:
memory: 100Mi
volumeMounts:
- name: ombi-mariadb
mountPath: /config
- name: ombi-secrets
mountPath: "/mnt/vault"
readOnly: true
volumes:
- name: ombi-mariadb
persistentVolumeClaim:
claimName: ombi-mariadb
- name: ombi-secrets
csi:
driver: "secrets-store.csi.k8s.io"
readOnly: true
volumeAttributes:
secretProviderClass: "ombi"