Migrate to using EnvFrom with the use of Infisical Secret sync for env vars
This commit is contained in:
@@ -0,0 +1,44 @@
|
||||
apiVersion: apps/v1
|
||||
kind: StatefulSet
|
||||
metadata:
|
||||
name: uptime-kuma-mariadb
|
||||
namespace: uptime-kuma
|
||||
spec:
|
||||
replicas: 1
|
||||
selector:
|
||||
matchLabels:
|
||||
app: uptime-kuma-mariadb
|
||||
serviceName: uptime-kuma-mariadb
|
||||
template:
|
||||
metadata:
|
||||
labels:
|
||||
app: uptime-kuma-mariadb
|
||||
spec:
|
||||
restartPolicy: Always
|
||||
terminationGracePeriodSeconds: 60
|
||||
containers:
|
||||
- name: uptime-kuma-mariadb
|
||||
image: mariadb:11
|
||||
resources:
|
||||
requests:
|
||||
cpu: 100m
|
||||
memory: 256Mi
|
||||
limits:
|
||||
cpu: 500m
|
||||
memory: 512Mi
|
||||
ports:
|
||||
- containerPort: 3306
|
||||
volumeMounts:
|
||||
- name: uptime-kuma-mariadb-database
|
||||
mountPath: /var/lib/mysql
|
||||
# MARIADB_USER/PASSWORD/DATABASE come from the Secret.
|
||||
envFrom:
|
||||
- secretRef:
|
||||
name: uptime-kuma-mariadb-secrets
|
||||
env:
|
||||
- name: MARIADB_RANDOM_ROOT_PASSWORD
|
||||
value: "true"
|
||||
volumes:
|
||||
- name: uptime-kuma-mariadb-database
|
||||
persistentVolumeClaim:
|
||||
claimName: uptime-kuma-mariadb-pvc
|
||||
Reference in New Issue
Block a user