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 |
| 48 | value: '{"spring.datasource.camunda.url":"jdbc:mysql://clamp-mariadb.{{ .Values.nsPrefix }}-clamp:3306/camundabpm?verifyServerCertificate=false&useSSL=false&requireSSL=false&autoReconnect=true&maxReconnects=100","spring.datasource.camunda.username": |
| 49 | "root","spring.datasource.camunda.password": "{{ .Values.mysqlPassword }}", "spring.datasource.cldsdb.url":"jdbc:mysql://clamp-mariadb.{{ .Values.nsPrefix }}-clamp:3306/cldsdb4?verifyServerCertificate=false&useSSL=false&requireSSL=false&autoReconnect=true&maxReconnects=100","spring.datasource.cldsdb.username": |
| 50 | "root", "spring.datasource.cldsdb.password": "{{ .Values.mysqlPassword }}"}' |
| 51 | image: {{ .Values.image.clampImage }}:{{ .Values.image.clampVersion }} |
| 52 | imagePullPolicy: {{ .Values.pullPolicy }} |
| 53 | name: clamp |
| 54 | readinessProbe: |
| 55 | tcpSocket: |
| 56 | port: 8080 |
| 57 | initialDelaySeconds: 5 |
| 58 | periodSeconds: 10 |
| 59 | imagePullSecrets: |
| 60 | - name: {{ .Values.nsPrefix }}-docker-registry-key |
yuryn | fcef994 | 2017-10-26 17:10:50 +0300 | [diff] [blame] | 61 | #{{ end }} |