Add some comments, rmr serv, remove template cruft
[ric-plt/a1.git] / 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/ricmanifest.json
26             subPath: ricmanifest.json
27           - name: a1conf
28             mountPath: /opt/rmr_string_int_mapping.txt
29             subPath: rmr_string_int_mapping.txt
30           - name: a1conf
31             mountPath: /opt/route/local.rt
32             subPath: local.rt
33           env:
34           - name: PYTHONUNBUFFERED
35             value: "0"
36           - name: RMR_RCV_RETRY_INTERVAL
37             value: "{{ .Values.rmr_timeout_config.rcv_retry_interval_ms }}"
38           - name: RMR_RETRY_TIMES
39             value: "{{ .Values.rmr_timeout_config.rcv_retry_times }}"
40           image: "{{ .Values.image.repository }}:{{ .Values.image.tag }}"
41           imagePullPolicy: {{ .Values.image.pullPolicy }}
42           ports:
43             - name: http
44               containerPort: {{ .Values.httpservice.port }}
45               protocol: TCP
46
47           livenessProbe:
48             httpGet:
49               path: /ui
50               port: http
51           readinessProbe:
52             httpGet:
53               path: /ui
54               port: http
55           resources:
56             {{- toYaml .Values.resources | nindent 12 }}
57       volumes:
58         - name: "a1conf"
59           configMap:
60             name: "a1conf"