a2963fb87b07bb4d2f4efd020b959b59519e5e10
[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/ricmanifest.json
26             subPath: ricmanifest.json
27           - name: a1conf
28             mountPath: /opt/route/local.rt
29             subPath: local.rt
30           env:
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
42           livenessProbe:
43             httpGet:
44               path: /a1-p/healthcheck
45               port: http
46           readinessProbe:
47             httpGet:
48               path: /a1-p/healthcheck
49               port: http
50           resources:
51             {{- toYaml .Values.resources | nindent 12 }}
52       volumes:
53         - name: "a1conf"
54           configMap:
55             name: "a1conf"