Update annotations to spec for policy
[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 }}-uui"
9 spec:
10   selector:
11     matchLabels:
12       app: uui
13   template:
14     metadata:
15       labels:
16         app: uui
17       name: uui
18     spec:
19       containers:
20       - image: {{ .Values.image.uuiImage }}:{{ .Values.image.uuiVersion }}
21         imagePullPolicy: {{ .Values.pullPolicy }}
22         command:
23           - /bin/bash
24           - -c
25           - /home/uui/tomcat/bin/catalina.sh run
26         name: uui
27         ports:
28         - containerPort: 8080
29         readinessProbe:
30           tcpSocket:
31             port: 8080
32           initialDelaySeconds: 5
33           periodSeconds: 10
34       imagePullSecrets:
35       - name: "{{ .Values.nsPrefix }}-docker-registry-key"
36 #{{ end }}