Renovate Bot
166b8fca4d
All checks were successful
/ build-deployer (push) Successful in 27s
/ build-keycloak (push) Successful in 43s
/ build-freetakserver (push) Successful in 1m19s
/ build-openbao-csi-provider (push) Successful in 1m4s
/ build-pethublocal (push) Successful in 42s
/ build-synapse (push) Successful in 39s
/ build-traefik-forward-auth (push) Successful in 35s
/ diff-and-deploy (push) Successful in 1m5s
/ build-openbao (push) Successful in 9m28s
57 lines
1.1 KiB
YAML
57 lines
1.1 KiB
YAML
apiVersion: v1
|
|
kind: Service
|
|
metadata:
|
|
name: mysql
|
|
namespace: monica
|
|
spec:
|
|
ports:
|
|
- name: mysql
|
|
port: 3306
|
|
selector:
|
|
app: mysql
|
|
---
|
|
apiVersion: apps/v1
|
|
kind: StatefulSet
|
|
metadata:
|
|
name: mysql
|
|
namespace: monica
|
|
spec:
|
|
selector:
|
|
matchLabels:
|
|
app: mysql
|
|
serviceName: mysql
|
|
replicas: 1
|
|
template:
|
|
metadata:
|
|
labels:
|
|
app: mysql
|
|
spec:
|
|
containers:
|
|
- image: docker.io/library/mysql:9.1
|
|
name: mysql
|
|
resources: {}
|
|
ports:
|
|
- name: mysql
|
|
containerPort: 3306
|
|
volumeMounts:
|
|
- name: storage
|
|
mountPath: /var/lib/mysql
|
|
env:
|
|
- name: MYSQL_DATABASE
|
|
value: monica
|
|
- name: MYSQL_USER
|
|
value: monica
|
|
- name: MYSQL_ROOT_PASSWORD
|
|
value: "true"
|
|
envFrom:
|
|
- secretRef:
|
|
name: mysql
|
|
volumeClaimTemplates:
|
|
- metadata:
|
|
name: storage
|
|
spec:
|
|
# storageClassName: longhorn
|
|
accessModes: ["ReadWriteOnce"]
|
|
resources:
|
|
requests:
|
|
storage: 1Gi
|