Deploy Clearwater IMS using Kubernetes
[functest-kubernetes.git] / functest_kubernetes / ims / astaire-depl.yaml
1 apiVersion: apps/v1
2 kind: Deployment
3 metadata:
4   name: astaire
5 spec:
6   replicas: 1
7   selector:
8     matchLabels:
9       service: astaire
10   template:
11     metadata:
12       labels:
13         service: astaire
14     spec:
15       terminationGracePeriodSeconds: 120
16       containers:
17       - image: "ollivier/clearwater-astaire:latest"
18         imagePullPolicy: Always
19         name: astaire
20         ports:
21         - containerPort: 22
22         - containerPort: 11211
23         - containerPort: 11311
24         envFrom:
25         - configMapRef:
26               name: env-vars
27         env:
28         - name: MY_POD_IP
29           valueFrom:
30             fieldRef:
31               fieldPath: status.podIP
32         livenessProbe:
33           tcpSocket:
34             port: 11311
35           periodSeconds: 10
36           failureThreshold: 9
37         readinessProbe:
38           tcpSocket:
39             port: 11311
40         volumeMounts:
41         - name: astairelogs
42           mountPath: /var/log/astaire
43         lifecycle:
44           preStop:
45             exec:
46               command: ["/bin/bash", "-c", "/usr/bin/pre-stop"]
47       - image: busybox
48         name: tailer
49         command: [ "tail", "-F", "/var/log/astaire/astaire_current.txt" ]
50         volumeMounts:
51         - name: astairelogs
52           mountPath: /var/log/astaire
53       volumes:
54       - name: astairelogs
55         emptyDir: {}
56       imagePullSecrets:
57       - name: ~
58       restartPolicy: Always