--- apiVersion: apps/v1 kind: Deployment metadata: annotations: labels: app: mariadb app.kubernetes.io/component: mariadb app.kubernetes.io/instance: mariadb name: mariadb namespace: gitea spec: progressDeadlineSeconds: 600 replicas: 1 revisionHistoryLimit: 10 selector: matchLabels: deployment: mariadb strategy: rollingUpdate: maxSurge: 25% maxUnavailable: 25% type: RollingUpdate template: metadata: annotations: labels: deployment: mariadb spec: containers: - env: - name: MYSQL_ROOT_PASSWORD value: gitea - name: MYSQL_USER value: gitea - name: MYSQL_PASSWORD value: gitea - name: MYSQL_DATABASE value: gitea image: docker.io/library/mariadb@sha256:659a15e38f4ccb2bfa2c7cf824a8a5955fdc5f63cfd01537bc25c9e0ff716605 imagePullPolicy: IfNotPresent name: mariadb ports: - containerPort: 3306 protocol: TCP resources: {} terminationMessagePath: /dev/termination-log terminationMessagePolicy: File volumeMounts: - mountPath: /var/lib/mysql name: mariadb dnsPolicy: ClusterFirst restartPolicy: Always schedulerName: default-scheduler securityContext: {} terminationGracePeriodSeconds: 30 volumes: - name: mariadb persistentVolumeClaim: claimName: mariadb