Ease modifying the test list in E2E testing
[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:latest"
22         imagePullPolicy: Always
23         name: homestead-prov
24         ports:
25         - containerPort: 22
26         - containerPort: 8889
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           exec:
37             command: ["/bin/bash", "/usr/share/clearwater/bin/poll_homestead-prov.sh"]
38           initialDelaySeconds: 60
39         readinessProbe:
40           exec:
41             command: ["/bin/bash", "/usr/share/clearwater/bin/poll_homestead-prov.sh"]
42       imagePullSecrets:
43       - name: ~
44       restartPolicy: Always