829e63598077ad9310cad95c4b36b39568c5c30e
[functest-kubernetes.git] / functest_kubernetes / ims / 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-sprout
18           image: busybox:1.28
19           command: ['sh', '-c', 'until nslookup sprout; do echo waiting for sprout to start ...; sleep 2; done']
20       containers:
21       - image: "ollivier/clearwater-ralf:latest"
22         imagePullPolicy: Always
23         name: ralf
24         ports:
25         - containerPort: 22
26         - containerPort: 10888
27         envFrom:
28         - configMapRef:
29               name: env-vars
30         env:
31         - name: MY_POD_IP
32           valueFrom:
33             fieldRef:
34               fieldPath: status.podIP
35         livenessProbe:
36           tcpSocket:
37             port: 10888
38           initialDelaySeconds: 30
39         readinessProbe:
40           tcpSocket:
41             port: 10888
42         volumeMounts:
43         - name: ralflogs
44           mountPath: /var/log/ralf
45       - image: busybox
46         name: tailer
47         command: [ "tail", "-F", "/var/log/ralf/ralf_current.txt" ]
48         volumeMounts:
49         - name: ralflogs
50           mountPath: /var/log/ralf
51       volumes:
52       - name: ralflogs
53         emptyDir: {}
54       imagePullSecrets:
55       - name: ~
56       restartPolicy: Always