a30c21c0f692dda17d9b3946f0e2f7f9ea75d4af
[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           - name: PYTHONUNBUFFERED
29             value: "1"
30           - name: RMR_RETRY_TIMES
31             value: "{{ .Values.rmr_timeout_config.rcv_retry_times }}"
32           image: "{{ .Values.image.repository }}:{{ .Values.image.tag }}"
33           imagePullPolicy: {{ .Values.image.pullPolicy }}
34           ports:
35             - name: http
36               containerPort: {{ .Values.httpservice.port }}
37               protocol: TCP
38
39           livenessProbe:
40             httpGet:
41               path: /a1-p/healthcheck
42               port: http
43           readinessProbe:
44             httpGet:
45               path: /a1-p/healthcheck
46               port: http
47           resources:
48             {{- toYaml .Values.resources | nindent 12 }}
49       volumes:
50         - name: "a1conf"
51           configMap:
52             name: "a1conf"