Deploy Clearwater IMS using Kubernetes
[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       containers:
17       - image: "ollivier/clearwater-homestead:latest"
18         imagePullPolicy: Always
19         name: homestead
20         ports:
21         - containerPort: 22
22         - containerPort: 8888
23         envFrom:
24         - configMapRef:
25               name: env-vars
26         env:
27         - name: MY_POD_IP
28           valueFrom:
29             fieldRef:
30               fieldPath: status.podIP
31         livenessProbe:
32           exec:
33             command: ["/bin/bash", "/usr/share/kubernetes/liveness.sh", "8888"]
34           initialDelaySeconds: 60
35         readinessProbe:
36           exec:
37             command: ["/bin/bash", "/usr/share/kubernetes/liveness.sh", "8888"]
38         volumeMounts:
39         - name: homesteadlogs
40           mountPath: /var/log/homestead
41       - image: busybox
42         name: tailer
43         command: [ "tail", "-F", "/var/log/homestead/homestead_current.txt" ]
44         volumeMounts:
45         - name: homesteadlogs
46           mountPath: /var/log/homestead
47       volumes:
48       - name: homesteadlogs
49         emptyDir: {}
50       imagePullSecrets:
51       - name: ~
52       restartPolicy: Always