services/srcs/mariadb/statefulset.yaml

29 lines
526 B
YAML
Raw Normal View History

2023-03-01 04:35:44 +01:00
apiVersion: apps/v1
kind: StatefulSet
metadata:
name: mariadb
labels:
app: mariadb
spec:
replicas: 1
serviceName: mariadb
selector:
matchLabels:
app: mariadb
template:
metadata:
labels:
app: mariadb
spec:
containers:
- name: mariadb
image: mariadb
imagePullPolicy: Never
volumeMounts:
- name: mariadb
mountPath: /var/lib/mysql
volumes:
- name: mariadb
persistentVolumeClaim:
claimName: mariadb