yuryn | fcef994 | 2017-10-26 17:10:50 +0300 | [diff] [blame] | 1 | #{{ if not .Values.disableAppcAppcDbhost }} |
Mandeep Khinda | d6ea987 | 2017-06-24 11:49:37 -0400 | [diff] [blame] | 2 | apiVersion: extensions/v1beta1 |
| 3 | kind: Deployment |
| 4 | metadata: |
| 5 | name: appc-dbhost |
BorislavG | 8bfc6cf | 2018-02-27 15:04:26 +0000 | [diff] [blame] | 6 | namespace: "{{ .Values.nsPrefix }}" |
Mandeep Khinda | d6ea987 | 2017-06-24 11:49:37 -0400 | [diff] [blame] | 7 | spec: |
vaibhav_16dec | a6719fe | 2018-02-14 09:48:43 +0000 | [diff] [blame] | 8 | replicas: {{ .Values.dbReplicas }} |
Mandeep Khinda | d6ea987 | 2017-06-24 11:49:37 -0400 | [diff] [blame] | 9 | selector: |
| 10 | matchLabels: |
| 11 | app: appc-dbhost |
| 12 | template: |
| 13 | metadata: |
| 14 | labels: |
| 15 | app: appc-dbhost |
| 16 | spec: |
| 17 | containers: |
| 18 | - env: |
| 19 | - name: MYSQL_ROOT_PASSWORD |
| 20 | value: openECOMP1.0 |
| 21 | - name: MYSQL_ROOT_HOST |
| 22 | value: '%' |
kerenj | 6ca15a7 | 2017-08-23 12:05:23 +0000 | [diff] [blame] | 23 | image: {{ .Values.image.mysqlServer }} |
| 24 | imagePullPolicy: {{ .Values.pullPolicy }} |
Mandeep Khinda | d6ea987 | 2017-06-24 11:49:37 -0400 | [diff] [blame] | 25 | name: appc-db-container |
| 26 | volumeMounts: |
yuryn | 8b3bc5a | 2017-09-13 19:21:03 +0300 | [diff] [blame] | 27 | - mountPath: /etc/localtime |
| 28 | name: localtime |
| 29 | readOnly: true |
Mandeep Khinda | d6ea987 | 2017-06-24 11:49:37 -0400 | [diff] [blame] | 30 | - mountPath: /var/lib/mysql |
| 31 | name: appc-data |
| 32 | ports: |
| 33 | - containerPort: 3306 |
| 34 | readinessProbe: |
| 35 | tcpSocket: |
| 36 | port: 3306 |
| 37 | initialDelaySeconds: 5 |
| 38 | periodSeconds: 10 |
| 39 | restartPolicy: Always |
| 40 | volumes: |
yuryn | 8b3bc5a | 2017-09-13 19:21:03 +0300 | [diff] [blame] | 41 | - name: localtime |
| 42 | hostPath: |
| 43 | path: /etc/localtime |
Mandeep Khinda | d6ea987 | 2017-06-24 11:49:37 -0400 | [diff] [blame] | 44 | - name: appc-data |
BorislavG | 66a9a5c | 2017-09-06 15:12:46 +0300 | [diff] [blame] | 45 | persistentVolumeClaim: |
| 46 | claimName: appc-db |
Borislav Glozman | 5197e2e | 2017-07-24 10:45:28 +0300 | [diff] [blame] | 47 | imagePullSecrets: |
Mandeep Khinda | 0e8f889 | 2017-08-25 03:31:17 +0000 | [diff] [blame] | 48 | - name: "{{ .Values.nsPrefix }}-docker-registry-key" |
vaibhav_16dec | a6719fe | 2018-02-14 09:48:43 +0000 | [diff] [blame] | 49 | #{{ end }} |