839da4288b9db3b945867144247c537eb473248d
[functest-kubernetes.git] / functest_kubernetes / ims / ralf-depl.yaml
1 apiVersion: apps/v1
2 kind: Deployment
3 metadata:
4   name: ralf
5 spec:
6   replicas: 1
7   selector:
8     matchLabels:
9       service: ralf
10   template:
11     metadata:
12       labels:
13         service: ralf
14         snmp: enabled
15     spec:
16       containers:
17       - image: "ollivier/clearwater-ralf:latest"
18         imagePullPolicy: Always
19         name: ralf
20         ports:
21         - containerPort: 22
22         - containerPort: 10888
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           tcpSocket:
33             port: 10888
34           initialDelaySeconds: 30
35         readinessProbe:
36           tcpSocket:
37             port: 10888
38         volumeMounts:
39         - name: ralflogs
40           mountPath: /var/log/ralf
41       - image: busybox
42         name: tailer
43         command: [ "tail", "-F", "/var/log/ralf/ralf_current.txt" ]
44         volumeMounts:
45         - name: ralflogs
46           mountPath: /var/log/ralf
47       volumes:
48       - name: ralflogs
49         emptyDir: {}
50       imagePullSecrets:
51       - name: ~
52       restartPolicy: Always