Publish helm_vims also based on clearwater-docker
[functest-kubernetes.git] / functest_kubernetes / ims / helm / templates / ralf-depl.yaml
1 apiVersion: apps/v1
2 kind: Deployment
3 metadata:
4   name: ralf
5 spec:
6   replicas: 1
7   selector:
8     matchLabels:
9       service: ralf
10   template:
11     metadata:
12       labels:
13         service: ralf
14         snmp: enabled
15     spec:
16       initContainers:
17         - name: wait-on-cassandra
18           image: busybox:1.28
19           command: ['sh', '-c', 'until nslookup cassandra; do echo waiting for cassandra to start ...; sleep 2; done']
20       containers:
21       - image: "{{ .Values.image.path }}-ralf:{{ .Values.image.tag }}"
22         name: ralf
23         ports:
24         - containerPort: 22
25         - containerPort: 10888
26         envFrom:
27         - configMapRef:
28               name: env-vars
29         env:
30         - name: MY_POD_IP
31           valueFrom:
32             fieldRef:
33               fieldPath: status.podIP
34         livenessProbe:
35           tcpSocket:
36             port: 10888
37           initialDelaySeconds: 30
38         readinessProbe:
39           tcpSocket:
40             port: 10888
41         volumeMounts:
42         - name: ralflogs
43           mountPath: /var/log/ralf
44       - image: busybox:1.28
45         name: tailer
46         command: [ "tail", "-F", "/var/log/ralf/ralf_current.txt" ]
47         volumeMounts:
48         - name: ralflogs
49           mountPath: /var/log/ralf
50       volumes:
51       - name: ralflogs
52         emptyDir: {}
53       imagePullSecrets:
54       - name: ~
55       restartPolicy: Always