Remove latest in all images
[functest-kubernetes.git] / functest_kubernetes / ims / homestead-prov-depl.yaml
1 apiVersion: apps/v1
2 kind: Deployment
3 metadata:
4   name: homestead-prov
5 spec:
6   replicas: 1
7   selector:
8     matchLabels:
9       service: homestead-prov
10   template:
11     metadata:
12       labels:
13         service: homestead-prov
14         snmp: enabled
15     spec:
16       initContainers:
17         - name: wait-on-homestead
18           image: busybox:1.28
19           command: ['sh', '-c', 'until nslookup homestead; do echo waiting for homestead to start ...; sleep 2; done']
20       containers:
21       - image: "ollivier/clearwater-homestead-prov"
22         name: homestead-prov
23         ports:
24         - containerPort: 22
25         - containerPort: 8889
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           exec:
36             command: ["/bin/bash", "/usr/share/clearwater/bin/poll_homestead-prov.sh"]
37           initialDelaySeconds: 60
38         readinessProbe:
39           exec:
40             command: ["/bin/bash", "/usr/share/clearwater/bin/poll_homestead-prov.sh"]
41       imagePullSecrets:
42       - name: ~
43       restartPolicy: Always