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