kind: StatefulSet
apiVersion: apps/v1
metadata:
  name: mysql
spec:
  replicas: 1
  serviceName: mysql
  selector:
    matchLabels:
      name: mysql
  template:
    metadata:
      labels:
        name: mysql
    spec:
      containers:
        - name: mysql
          image: mariadb:10.6.5-focal
          ports:
            - name: mysql
              containerPort: 3306
          envFrom:
            - secretRef:
                name: mysql
          # livenessProbe:
          #   tcpSocket:
          #     port: mysql
          readinessProbe:
            tcpSocket:
              port: mysql
# TODO: volume