Implement Delete timeouts
[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           image: "a1:latest"
40           imagePullPolicy: {{ .Values.image.pullPolicy }}
41           ports:
42             - name: http
43               containerPort: {{ .Values.httpservice.port }}
44               protocol: TCP
45           livenessProbe:
46             httpGet:
47               path: /a1-p/healthcheck
48               port: http
49           readinessProbe:
50             httpGet:
51               path: /a1-p/healthcheck
52               port: http
53           resources:
54             {{- toYaml .Values.resources | nindent 12 }}
55       volumes:
56         - name: "a1conf"
57           configMap:
58             name: "a1conf"