Remove latest in all images
[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"
28         name: sprout
29         ports:
30         - containerPort: 22
31         envFrom:
32         - configMapRef:
33               name: env-vars
34         env:
35         - name: MY_POD_IP
36           valueFrom:
37             fieldRef:
38               fieldPath: status.podIP
39         livenessProbe:
40           exec:
41             command: ["/bin/bash", "/usr/share/kubernetes/liveness.sh", "5052 5054"]
42           initialDelaySeconds: 30
43           periodSeconds: 3
44         readinessProbe:
45           exec:
46             command: ["/bin/bash", "/usr/share/kubernetes/liveness.sh", "5052 5054"]
47         volumeMounts:
48         - name: sproutlogs
49           mountPath: /var/log/sprout
50       - image: busybox
51         name: tailer
52         command: [ "tail", "-F", "/var/log/sprout/sprout_current.txt" ]
53         volumeMounts:
54         - name: sproutlogs
55           mountPath: /var/log/sprout
56       volumes:
57       - name: sproutlogs
58         emptyDir: {}
59       imagePullSecrets:
60       - name: ~
61       restartPolicy: Always