yuryn | fcef994 | 2017-10-26 17:10:50 +0300 | [diff] [blame] | 1 | #{{ if not .Values.disableClampClampMariadb }} |
Dusan Rozman | f776f3d | 2017-09-18 13:07:56 -0400 | [diff] [blame] | 2 | apiVersion: extensions/v1beta1 |
| 3 | kind: Deployment |
| 4 | metadata: |
| 5 | name: clamp-mariadb |
| 6 | namespace: "{{ .Values.nsPrefix }}-clamp" |
| 7 | spec: |
| 8 | replicas: 1 |
| 9 | selector: |
| 10 | matchLabels: |
| 11 | app: clamp-mariadb |
| 12 | template: |
| 13 | metadata: |
| 14 | labels: |
| 15 | app: clamp-mariadb |
| 16 | name: clamp-mariadb |
| 17 | spec: |
| 18 | hostname: clamp-mariadb |
| 19 | containers: |
| 20 | - args: |
| 21 | image: {{ .Values.image.mariadbImage }}:{{ .Values.image.mariadbVersion }} |
| 22 | imagePullPolicy: {{ .Values.pullPolicy }} |
| 23 | name: "clamp-mariadb" |
| 24 | env: |
| 25 | - name: MYSQL_ROOT_PASSWORD |
| 26 | value: {{ .Values.mysqlPassword }} |
| 27 | volumeMounts: |
mayankg2703 | a2608a2 | 2018-01-17 11:30:14 +0000 | [diff] [blame] | 28 | - mountPath: /docker-entrypoint-initdb.d/load-sql-files-tests-automation.sh |
Dusan Rozman | f776f3d | 2017-09-18 13:07:56 -0400 | [diff] [blame] | 29 | name: docker-entrypoint-initdb |
mayankg2703 | a2608a2 | 2018-01-17 11:30:14 +0000 | [diff] [blame] | 30 | subPath: load-sql-files-tests-automation.sh |
| 31 | - mountPath: /docker-entrypoint-initdb.d/drop/ |
| 32 | name: docker-entrypoint-clds-drop |
| 33 | - mountPath: /docker-entrypoint-initdb.d/bulkload/ |
| 34 | name: docker-entrypoint-bulkload |
| 35 | - mountPath: /etc/mysql/conf.d/conf1/ |
Dusan Rozman | f776f3d | 2017-09-18 13:07:56 -0400 | [diff] [blame] | 36 | name: clamp-mariadb-conf |
| 37 | - mountPath: /var/lib/mysql |
| 38 | name: clamp-mariadb-data |
| 39 | readinessProbe: |
| 40 | tcpSocket: |
| 41 | port: 3306 |
| 42 | initialDelaySeconds: 5 |
| 43 | periodSeconds: 10 |
| 44 | volumes: |
| 45 | - name: docker-entrypoint-initdb |
mayankg2703 | a2608a2 | 2018-01-17 11:30:14 +0000 | [diff] [blame] | 46 | configMap: |
| 47 | name: clamp-entrypoint-initdb-configmap |
| 48 | - name: docker-entrypoint-clds-drop |
| 49 | configMap: |
| 50 | name: clamp-entrypoint-drop-configmap |
| 51 | - name: docker-entrypoint-bulkload |
| 52 | configMap: |
| 53 | name: clamp-entrypoint-bulkload-configmap |
Dusan Rozman | f776f3d | 2017-09-18 13:07:56 -0400 | [diff] [blame] | 54 | - name: clamp-mariadb-conf |
mayankg2703 | a2608a2 | 2018-01-17 11:30:14 +0000 | [diff] [blame] | 55 | configMap: |
| 56 | name: clamp-mariadb-conf-configmap |
Dusan Rozman | f776f3d | 2017-09-18 13:07:56 -0400 | [diff] [blame] | 57 | - name: clamp-mariadb-data |
| 58 | persistentVolumeClaim: |
| 59 | claimName: clamp-db |
| 60 | imagePullSecrets: |
| 61 | - name: {{ .Values.nsPrefix }}-docker-registry-key |
mayankg2703 | a2608a2 | 2018-01-17 11:30:14 +0000 | [diff] [blame] | 62 | #{{ end }} |