blob: 493bb49b9ed6a8ea2c276056b5b9cca2e5fc0b2d [file] [log] [blame]
yurynfcef9942017-10-26 17:10:50 +03001#{{ if not .Values.disableClampClamp }}
Dusan Rozmanf776f3d2017-09-18 13:07:56 -04002apiVersion: extensions/v1beta1
3kind: Deployment
4metadata:
5 labels:
6 app: clamp
7 name: clamp
8 namespace: "{{ .Values.nsPrefix }}-clamp"
9spec:
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
yurynfcef9942017-10-26 17:10:50 +030061#{{ end }}