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: |
| 28 | - mountPath: /docker-entrypoint-initdb.d |
| 29 | name: docker-entrypoint-initdb |
| 30 | - mountPath: /etc/mysql/conf.d |
| 31 | name: clamp-mariadb-conf |
| 32 | - mountPath: /var/lib/mysql |
| 33 | name: clamp-mariadb-data |
| 34 | readinessProbe: |
| 35 | tcpSocket: |
| 36 | port: 3306 |
| 37 | initialDelaySeconds: 5 |
| 38 | periodSeconds: 10 |
| 39 | volumes: |
| 40 | - name: docker-entrypoint-initdb |
| 41 | hostPath: |
| 42 | path: /dockerdata-nfs/{{ .Values.nsPrefix }}/clamp/mariadb/docker-entrypoint-initdb.d |
| 43 | - name: clamp-mariadb-conf |
| 44 | hostPath: |
| 45 | path: /dockerdata-nfs/{{ .Values.nsPrefix }}/clamp/mariadb/conf.d |
| 46 | - name: clamp-mariadb-data |
| 47 | persistentVolumeClaim: |
| 48 | claimName: clamp-db |
| 49 | imagePullSecrets: |
| 50 | - name: {{ .Values.nsPrefix }}-docker-registry-key |
yuryn | fcef994 | 2017-10-26 17:10:50 +0300 | [diff] [blame] | 51 | #{{ end }} |