668574918be794d132b815042f24d14de16b8ced
[oom.git] / kubernetes / uui / templates / uui-deployment.yaml
1 #{{ if not .Values.disableUuiUui }}
2 apiVersion: extensions/v1beta1
3 kind: Deployment
4 metadata:
5   labels:
6     app: uui
7   name: uui
8   namespace: "{{ .Values.nsPrefix }}"
9 spec:
10   replicas: {{ .Values.uuiReplicas }}
11   selector:
12     matchLabels:
13       app: uui
14   template:
15     metadata:
16       labels:
17         app: uui
18       name: uui
19     spec:
20       containers:
21       - image: {{ .Values.image.uuiImage }}:{{ .Values.image.uuiVersion }}
22         imagePullPolicy: {{ .Values.pullPolicy }}
23         command:
24           - /bin/bash
25           - -c
26           - /home/uui/tomcat/bin/catalina.sh run
27         name: uui
28         env:
29         - name: MSB_ADDR
30           value: {{ tpl .Values.msbaddr . }}
31         ports:
32         - containerPort: 8080
33         readinessProbe:
34           tcpSocket:
35             port: 8080
36           initialDelaySeconds: 5
37           periodSeconds: 10
38       imagePullSecrets:
39       - name: "{{ .Values.nsPrefix }}-docker-registry-key"
40 #{{ end }}