Add tempo waiting for ellis account
[functest-kubernetes.git] / functest_kubernetes / ims / sprout-depl.yaml
1 apiVersion: apps/v1
2 kind: Deployment
3 metadata:
4   name: sprout
5 spec:
6   replicas: 1
7   selector:
8     matchLabels:
9       service: sprout
10   template:
11     metadata:
12       labels:
13         service: sprout
14         snmp: enabled
15     spec:
16       initContainers:
17         - name: wait-on-ralf
18           image: busybox:1.28
19           command: ['sh', '-c', 'until nslookup ralf; do echo waiting for ralf to start ...; sleep 2; done']
20         - name: wait-on-chronos
21           image: busybox:1.28
22           command: ['sh', '-c', 'until nslookup chronos; do echo waiting for chronos to start ...; sleep 2; done']
23         - name: wait-on-homestead
24           image: busybox:1.28
25           command: ['sh', '-c', 'until nslookup homestead; do echo waiting for homestead to start ...; sleep 2; done']
26       containers:
27       - image: "ollivier/clearwater-sprout:latest"
28         imagePullPolicy: Always
29         name: sprout
30         ports:
31         - containerPort: 22
32         envFrom:
33         - configMapRef:
34               name: env-vars
35         env:
36         - name: MY_POD_IP
37           valueFrom:
38             fieldRef:
39               fieldPath: status.podIP
40         livenessProbe:
41           exec:
42             command: ["/bin/bash", "/usr/share/kubernetes/liveness.sh", "5052 5054"]
43           initialDelaySeconds: 30
44           periodSeconds: 3
45         readinessProbe:
46           exec:
47             command: ["/bin/bash", "/usr/share/kubernetes/liveness.sh", "5052 5054"]
48         volumeMounts:
49         - name: sproutlogs
50           mountPath: /var/log/sprout
51       - image: busybox
52         name: tailer
53         command: [ "tail", "-F", "/var/log/sprout/sprout_current.txt" ]
54         volumeMounts:
55         - name: sproutlogs
56           mountPath: /var/log/sprout
57       volumes:
58       - name: sproutlogs
59         emptyDir: {}
60       imagePullSecrets:
61       - name: ~
62       restartPolicy: Always