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 |
| 18 | annotations: |
| 19 | pod.beta.kubernetes.io/init-containers: '[ |
| 20 | { |
| 21 | "args": [ |
| 22 | "--container-name", |
| 23 | "clamp-mariadb" |
| 24 | ], |
| 25 | "command": [ |
| 26 | "/root/ready.py" |
| 27 | ], |
| 28 | "env": [ |
| 29 | { |
| 30 | "name": "NAMESPACE", |
| 31 | "valueFrom": { |
| 32 | "fieldRef": { |
| 33 | "apiVersion": "v1", |
| 34 | "fieldPath": "metadata.namespace" |
| 35 | } |
| 36 | } |
| 37 | } |
| 38 | ], |
| 39 | "image": "{{ .Values.image.readiness }}", |
| 40 | "imagePullPolicy": "{{ .Values.pullPolicy }}", |
| 41 | "name": "clamp-readiness" |
| 42 | } |
| 43 | ]' |
| 44 | spec: |
| 45 | containers: |
| 46 | - env: |
| 47 | - name: SPRING_APPLICATION_JSON |
Alexis de Talhouƫt | 41aa98e | 2017-11-28 11:29:50 -0500 | [diff] [blame^] | 48 | value: '{ |
| 49 | "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", |
| 50 | "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" |
| 51 | }' |
Dusan Rozman | f776f3d | 2017-09-18 13:07:56 -0400 | [diff] [blame] | 52 | image: {{ .Values.image.clampImage }}:{{ .Values.image.clampVersion }} |
| 53 | imagePullPolicy: {{ .Values.pullPolicy }} |
| 54 | name: clamp |
| 55 | readinessProbe: |
| 56 | tcpSocket: |
| 57 | port: 8080 |
| 58 | initialDelaySeconds: 5 |
| 59 | periodSeconds: 10 |
| 60 | imagePullSecrets: |
| 61 | - name: {{ .Values.nsPrefix }}-docker-registry-key |
yuryn | fcef994 | 2017-10-26 17:10:50 +0300 | [diff] [blame] | 62 | #{{ end }} |