uptimekuma for kubernetes

This commit is contained in:
Tomás Limpinho
2026-04-30 14:55:25 +01:00
parent bdd082160f
commit 643959ea2f
26 changed files with 691 additions and 1 deletions

View 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