Moving RMR message reciver into go routine
[ric-plt/a1.git] / integration_tests / a1mediator / templates / deployment.yaml
1 apiVersion: apps/v1
2 kind: Deployment
3 metadata:
4   name: {{ include "a1mediator.fullname" . }}
5   labels:
6 {{ include "a1mediator.labels" . | indent 4 }}
7 spec:
8   replicas: {{ .Values.replicaCount }}
9   selector:
10     matchLabels:
11       app.kubernetes.io/name: {{ include "a1mediator.name" . }}
12       app.kubernetes.io/instance: {{ .Release.Name }}
13   template:
14     metadata:
15       labels:
16         app.kubernetes.io/name: {{ include "a1mediator.name" . }}
17         app.kubernetes.io/instance: {{ .Release.Name }}
18     spec:
19       imagePullSecrets:
20         - name: "{{ .Values.lf_docker_reg_secret }}"
21       containers:
22         - name: {{ .Chart.Name }}
23           volumeMounts:
24           - name: a1conf
25             mountPath: /opt/route/local.rt
26             subPath: local.rt
27           env:
28           # this sets the source field in messages from a1 to point back to a1s service name, rather than it's random pod name
29           - name: RMR_SRC_ID
30             value: {{ .Values.rmrservice.name }}
31           - name: PYTHONUNBUFFERED
32             value: "1"
33           - name: A1_RMR_RETRY_TIMES
34             value: "{{ .Values.rmr_timeout_config.rcv_retry_times }}"
35           - name: INSTANCE_DELETE_NO_RESP_TTL
36             value: "5"
37           - name: INSTANCE_DELETE_RESP_TTL
38             value: "10"
39           - name: DBAAS_SERVICE_HOST
40             value: "dbaas"
41           - name: DBAAS_SERVICE_PORT
42             value: "6379"
43
44           image: "a1:latest"
45           imagePullPolicy: {{ .Values.image.pullPolicy }}
46           ports:
47             - name: http
48               containerPort: {{ .Values.httpservice.port }}
49               protocol: TCP
50           livenessProbe:
51             httpGet:
52               path: /a1-p/healthcheck
53               port: http
54           readinessProbe:
55             httpGet:
56               path: /a1-p/healthcheck
57               port: http
58           resources:
59             {{- toYaml .Values.resources | nindent 12 }}
60       volumes:
61         - name: "a1conf"
62           configMap:
63             name: "a1conf"