| #{{ if not .Values.disableClampClampMariadb }} |
| apiVersion: extensions/v1beta1 |
| kind: Deployment |
| metadata: |
| name: clamp-mariadb |
| namespace: "{{ .Values.nsPrefix }}-clamp" |
| spec: |
| replicas: 1 |
| selector: |
| matchLabels: |
| app: clamp-mariadb |
| template: |
| metadata: |
| labels: |
| app: clamp-mariadb |
| name: clamp-mariadb |
| spec: |
| hostname: clamp-mariadb |
| containers: |
| - args: |
| image: {{ .Values.image.mariadbImage }}:{{ .Values.image.mariadbVersion }} |
| imagePullPolicy: {{ .Values.pullPolicy }} |
| name: "clamp-mariadb" |
| env: |
| - name: MYSQL_ROOT_PASSWORD |
| value: {{ .Values.mysqlPassword }} |
| volumeMounts: |
| - mountPath: /docker-entrypoint-initdb.d/load-sql-files-tests-automation.sh |
| name: docker-entrypoint-initdb |
| subPath: load-sql-files-tests-automation.sh |
| - mountPath: /docker-entrypoint-initdb.d/drop/ |
| name: docker-entrypoint-clds-drop |
| - mountPath: /docker-entrypoint-initdb.d/bulkload/ |
| name: docker-entrypoint-bulkload |
| - mountPath: /etc/mysql/conf.d/conf1/ |
| name: clamp-mariadb-conf |
| - mountPath: /var/lib/mysql |
| name: clamp-mariadb-data |
| readinessProbe: |
| tcpSocket: |
| port: 3306 |
| initialDelaySeconds: 5 |
| periodSeconds: 10 |
| volumes: |
| - name: docker-entrypoint-initdb |
| configMap: |
| name: clamp-entrypoint-initdb-configmap |
| - name: docker-entrypoint-clds-drop |
| configMap: |
| name: clamp-entrypoint-drop-configmap |
| - name: docker-entrypoint-bulkload |
| configMap: |
| name: clamp-entrypoint-bulkload-configmap |
| - name: clamp-mariadb-conf |
| configMap: |
| name: clamp-mariadb-conf-configmap |
| - name: clamp-mariadb-data |
| persistentVolumeClaim: |
| claimName: clamp-db |
| imagePullSecrets: |
| - name: {{ .Values.nsPrefix }}-docker-registry-key |
| #{{ end }} |