Stop pushing all details in Test DB
[functest-kubernetes.git] / functest_kubernetes / ims / bono-depl.yaml
1 apiVersion: apps/v1
2 kind: Deployment
3 metadata:
4   name: bono
5 spec:
6   replicas: 1
7   selector:
8     matchLabels:
9       service: bono
10   template:
11     metadata:
12       labels:
13         service: bono
14         snmp: enabled
15     spec:
16       initContainers:
17         - name: wait-on-sprout
18           image: busybox:1.28
19           command: ['sh', '-c', 'until nslookup sprout; do echo waiting for sprout to start ...; sleep 2; done']
20       containers:
21       - image: "ollivier/clearwater-bono:latest"
22         imagePullPolicy: Always
23         name: bono
24         ports:
25         - containerPort: 22
26         - containerPort: 3478
27         - containerPort: 5060
28         - containerPort: 5062
29         - containerPort: 5060
30           protocol: "UDP"
31         - containerPort: 5062
32           protocol: "UDP"
33         envFrom:
34         - configMapRef:
35               name: env-vars
36         env:
37         - name: MY_POD_IP
38           valueFrom:
39             fieldRef:
40               fieldPath: status.podIP
41         livenessProbe:
42           exec:
43             command: ["nc", "-z", "-w", "5", "127.0.0.1", "5060"]
44           initialDelaySeconds: 30
45         readinessProbe:
46           tcpSocket:
47             port: 5060
48         livenessProbe:
49           exec:
50             command: ["/bin/bash", "/usr/share/kubernetes/liveness.sh", "3478 5060 5062"]
51           initialDelaySeconds: 30
52         readinessProbe:
53           exec:
54             command: ["/bin/bash", "/usr/share/kubernetes/liveness.sh", "3478 5060 5062"]
55         volumeMounts:
56         - name: bonologs
57           mountPath: /var/log/bono
58       - image: busybox
59         name: tailer
60         command: [ "tail", "-F", "/var/log/bono/bono_current.txt" ]
61         volumeMounts:
62         - name: bonologs
63           mountPath: /var/log/bono
64       volumes:
65       - name: bonologs
66         emptyDir: {}
67       imagePullSecrets:
68       - name: ~
69       restartPolicy: Always