yuryn | fcef994 | 2017-10-26 17:10:50 +0300 | [diff] [blame] | 1 | #{{ if not .Values.disableClampClamp }} |
Dusan Rozman | f776f3d | 2017-09-18 13:07:56 -0400 | [diff] [blame] | 2 | apiVersion: extensions/v1beta1 |
| 3 | kind: Deployment |
| 4 | metadata: |
| 5 | labels: |
| 6 | app: clamp |
| 7 | name: clamp |
| 8 | namespace: "{{ .Values.nsPrefix }}-clamp" |
| 9 | spec: |
| 10 | selector: |
| 11 | matchLabels: |
| 12 | app: clamp |
| 13 | template: |
| 14 | metadata: |
| 15 | labels: |
| 16 | app: clamp |
| 17 | name: clamp |
Dusan Rozman | f776f3d | 2017-09-18 13:07:56 -0400 | [diff] [blame] | 18 | spec: |
kiranya | 364b9ad | 2017-11-23 07:28:50 +0000 | [diff] [blame] | 19 | initContainers: |
| 20 | - command: |
| 21 | - /root/ready.py |
| 22 | args: |
| 23 | - --container-name |
| 24 | - clamp-mariadb |
| 25 | env: |
| 26 | - name: NAMESPACE |
| 27 | valueFrom: |
| 28 | fieldRef: |
| 29 | apiVersion: v1 |
| 30 | fieldPath: metadata.namespace |
| 31 | image: {{ .Values.image.readiness }} |
| 32 | imagePullPolicy: {{ .Values.pullPolicy }} |
| 33 | name: clamp-readiness |
Dusan Rozman | f776f3d | 2017-09-18 13:07:56 -0400 | [diff] [blame] | 34 | containers: |
| 35 | - env: |
| 36 | - name: SPRING_APPLICATION_JSON |
Alexis de Talhouƫt | 41aa98e | 2017-11-28 11:29:50 -0500 | [diff] [blame] | 37 | value: '{ |
| 38 | "spring.datasource.camunda.url": "jdbc:mariadb:sequential://clamp-mariadb.{{ .Values.nsPrefix }}-clamp:3306/camundabpm?verifyServerCertificate=false&useSSL=false&requireSSL=false&autoReconnect=true&retriesAllDown=2147483647&failoverLoopRetries=2147483647", |
| 39 | "spring.datasource.cldsdb.url": "jdbc:mariadb:sequential://clamp-mariadb.{{ .Values.nsPrefix }}-clamp:3306/cldsdb4?verifyServerCertificate=false&useSSL=false&requireSSL=false&autoReconnect=true&retriesAllDown=2147483647&failoverLoopRetries=2147483647" |
| 40 | }' |
Dusan Rozman | f776f3d | 2017-09-18 13:07:56 -0400 | [diff] [blame] | 41 | image: {{ .Values.image.clampImage }}:{{ .Values.image.clampVersion }} |
| 42 | imagePullPolicy: {{ .Values.pullPolicy }} |
| 43 | name: clamp |
| 44 | readinessProbe: |
| 45 | tcpSocket: |
| 46 | port: 8080 |
| 47 | initialDelaySeconds: 5 |
| 48 | periodSeconds: 10 |
| 49 | imagePullSecrets: |
| 50 | - name: {{ .Values.nsPrefix }}-docker-registry-key |
kiranya | 364b9ad | 2017-11-23 07:28:50 +0000 | [diff] [blame] | 51 | #{{ end }} |