Updated installation and components
[nonrtric/plt/ranpm.git] / install / helm / nrt-base-1 / charts / ves-mr / templates / app-deployment-zk-tunnel.yaml
1 apiVersion: apps/v1
2 kind: Deployment
3 metadata:
4   name: zoo-entrance
5   namespace: nonrtric
6   labels:
7     app: zoo-entrance
8 spec:
9   replicas: 1
10   selector:
11     matchLabels:
12       app: zoo-entrance
13   strategy:
14     type: Recreate
15   template:
16     metadata:
17       labels:
18         app: zoo-entrance
19     spec:
20       containers:
21         - name: zoo-entrance
22           image: 'ghcr.io/scholzj/zoo-entrance:latest'
23           command:
24             - /opt/stunnel/stunnel_run.sh
25           ports:
26             - containerPort: 2181
27               name: zoo
28               protocol: TCP
29           env:
30             - name: LOG_LEVEL
31               value: notice
32             - name: STRIMZI_ZOOKEEPER_CONNECT
33               value: 'kafka-1-zookeeper-client:2181'
34           imagePullPolicy: Always
35           livenessProbe:
36             exec:
37               command:
38                 - /opt/stunnel/stunnel_healthcheck.sh
39                 - '2181'
40             failureThreshold: 3
41             initialDelaySeconds: 15
42             periodSeconds: 10
43             successThreshold: 1
44             timeoutSeconds: 5
45           readinessProbe:
46             exec:
47               command:
48                 - /opt/stunnel/stunnel_healthcheck.sh
49                 - '2181'
50             failureThreshold: 3
51             initialDelaySeconds: 15
52             periodSeconds: 10
53             successThreshold: 1
54             timeoutSeconds: 5
55           volumeMounts:
56             - mountPath: /etc/cluster-operator-certs/
57               name: cluster-operator-certs
58             - mountPath: /etc/cluster-ca-certs/
59               name: cluster-ca-certs
60       restartPolicy: Always
61       terminationGracePeriodSeconds: 30
62       volumes:
63         - name: cluster-operator-certs
64           secret:
65             defaultMode: 288
66             secretName: kafka-1-cluster-operator-certs
67         - name: cluster-ca-certs
68           secret:
69             defaultMode: 288
70             secretName: kafka-1-cluster-ca-cert