mirror of
https://gitea.fenix-dev.com/fenix-gitea-admin/iac-ansible-private.git
synced 2026-05-14 08:35:22 +00:00
uptimekuma for kubernetes
This commit is contained in:
50
roles/mariadb/files/mariadb-statefulset.yaml
Normal file
50
roles/mariadb/files/mariadb-statefulset.yaml
Normal file
@ -0,0 +1,50 @@
|
||||
apiVersion: apps/v1
|
||||
kind: StatefulSet
|
||||
metadata:
|
||||
name: mariadb-statefulset
|
||||
namespace: mariadb
|
||||
spec:
|
||||
serviceName: "mariadb-statefulset"
|
||||
replicas: 1
|
||||
selector:
|
||||
matchLabels:
|
||||
app: mariadb-statefulset
|
||||
template:
|
||||
metadata:
|
||||
labels:
|
||||
app: mariadb-statefulset
|
||||
spec:
|
||||
imagePullSecrets:
|
||||
- name: regcred
|
||||
containers:
|
||||
- name: mariadb-statefulset
|
||||
image: mariadb:11
|
||||
ports:
|
||||
- containerPort: 3306
|
||||
envFrom:
|
||||
- secretRef:
|
||||
name: mariadb-secret
|
||||
volumeMounts:
|
||||
- mountPath: /var/lib/mysql
|
||||
name: mariadb-data
|
||||
- mountPath: /etc/mysql/conf.d/my.cnf
|
||||
name: mariadb-config
|
||||
subPath: my.cnf
|
||||
volumes:
|
||||
- name: mariadb-config
|
||||
configMap:
|
||||
name: mariadb-config
|
||||
|
||||
volumeClaimTemplates:
|
||||
- kind: PersistentVolumeClaim
|
||||
apiVersion: v1
|
||||
metadata:
|
||||
name: mariadb-data
|
||||
namespace: mariadb
|
||||
spec:
|
||||
accessModes:
|
||||
- ReadWriteOnce
|
||||
resources:
|
||||
requests:
|
||||
storage: 50Gi
|
||||
|
||||
Reference in New Issue
Block a user