-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathstatefulset-mariadb.yaml
More file actions
75 lines (75 loc) · 1.92 KB
/
Copy pathstatefulset-mariadb.yaml
File metadata and controls
75 lines (75 loc) · 1.92 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
# Source: ghost/charts/mariadb/templates/primary/statefulset.yaml
apiVersion: apps/v1
kind: StatefulSet
metadata:
name: mariadb
namespace: example
labels:
app.kubernetes.io/name: mariadb
spec:
replicas: 1
revisionHistoryLimit: 10
serviceName: mariadb
updateStrategy:
type: RollingUpdate
template:
spec:
securityContext:
fsGroup: 1001
containers:
- name: mariadb
image: docker.io/bitnami/mariadb:10.6.7-debian-10-r62
imagePullPolicy: IfNotPresent
securityContext:
runAsNonRoot: true
runAsUser: 1001
env:
- name: BITNAMI_DEBUG
value: "true"
- name: MARIADB_ROOT_PASSWORD
valueFrom:
secretKeyRef:
name: mariadb
key: mysql-root-password
- name: MARIADB_PASSWORD
valueFrom:
secretKeyRef:
name: mariadb
key: mysql-password
- name: MARIADB_USER
value: bn_ghost
- name: MARIADB_DATABASE
value: bitnami_ghost
ports:
- name: mysql
containerPort: 3306
resources:
limits: {}
requests: {}
volumeMounts:
- name: data
mountPath: /bitnami/mariadb
- name: config
mountPath: /opt/bitnami/mariadb/conf/my.ini
subPath: my.ini
volumes:
- name: config
configMap:
name: mariadb
metadata:
labels:
app.kubernetes.io/name: mariadb
volumeClaimTemplates:
- metadata:
name: data
labels:
app.kubernetes.io/name: mariadb
spec:
accessModes:
- ReadWriteOnce
resources:
requests:
storage: 8Gi
selector:
matchLabels:
app.kubernetes.io/name: mariadb