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