Upgrade to rmr which required two changes
[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: RMR_RETRY_TIMES
34             value: "{{ .Values.rmr_timeout_config.rcv_retry_times }}"
35           image: "{{ .Values.image.repository }}:{{ .Values.image.tag }}"
36           imagePullPolicy: {{ .Values.image.pullPolicy }}
37           ports:
38             - name: http
39               containerPort: {{ .Values.httpservice.port }}
40               protocol: TCP
41           livenessProbe:
42             httpGet:
43               path: /a1-p/healthcheck
44               port: http
45           readinessProbe:
46             httpGet:
47               path: /a1-p/healthcheck
48               port: http
49           resources:
50             {{- toYaml .Values.resources | nindent 12 }}
51       volumes:
52         - name: "a1conf"
53           configMap:
54             name: "a1conf"