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