Merge "Policy 1.1 in Kubernetes"
[oom.git] / kubernetes / policy / templates / dep-maria.yaml
index 511405b..30d0db3 100644 (file)
@@ -24,10 +24,17 @@ spec:
         name: mariadb
         ports:
         - containerPort: 3306
+        volumeMounts:
+        - mountPath: /var/lib/mysql
+          name: policy-mariadb-data
         readinessProbe:
           tcpSocket:
             port: 3306
           initialDelaySeconds: 5
           periodSeconds: 10
+      volumes:
+      - name: policy-mariadb-data
+        persistentVolumeClaim:
+          claimName: policy-db
       imagePullSecrets:
       - name: "{{ .Values.nsPrefix }}-docker-registry-key"