blob: e0e422b43a6cff3e688975d86a14515545abc70e [file] [log] [blame]
yuryn5d0587b2017-10-26 17:10:50 +03001#{{ if not .Values.disableAaiAaiService }}
Mandeep Khinda71439a72017-06-24 11:49:37 -04002apiVersion: extensions/v1beta1
3kind: Deployment
4metadata:
5 name: aai-service
Mandeep Khindaa71542f2017-08-25 03:31:17 +00006 namespace: "{{ .Values.nsPrefix }}-aai"
Mandeep Khinda71439a72017-06-24 11:49:37 -04007spec:
8 selector:
9 matchLabels:
10 app: aai-service
11 template:
12 metadata:
13 labels:
14 app: aai-service
15 name: aai-service
Mandeep Khinda71439a72017-06-24 11:49:37 -040016 spec:
kiranya6eea4802017-11-22 12:21:55 +000017 initContainers:
18 - command:
19 - /root/ready.py
20 args:
21 - --container-name
22 - aai-resources
23 - --container-name
24 - aai-traversal
25 env:
26 - name: NAMESPACE
27 valueFrom:
28 fieldRef:
29 apiVersion: v1
30 fieldPath: metadata.namespace
31 image: {{ .Values.image.readiness }}
32 imagePullPolicy: {{ .Values.pullPolicy }}
33 name: aai-service-readiness
Mandeep Khinda71439a72017-06-24 11:49:37 -040034 containers:
Mandeep Khindafc068432017-08-30 14:24:02 +000035 - name: aai-service
36 image: "{{ .Values.image.aaiProxy }}:{{ .Values.image.aaiProxyVersion}}"
kerenj3db4be52017-08-24 11:32:22 +000037 imagePullPolicy: {{ .Values.pullPolicy }}
Mandeep Khinda71439a72017-06-24 11:49:37 -040038 volumeMounts:
yurync400bf52017-09-13 19:21:03 +030039 - mountPath: /etc/localtime
40 name: localtime
41 readOnly: true
Mandeep Khindafc068432017-08-30 14:24:02 +000042 - mountPath: /dev/log
43 name: aai-service-log
44 - mountPath: /usr/local/etc/haproxy/haproxy.cfg
mayankg270334fb0cf2018-02-05 07:12:32 +000045 subPath: haproxy.cfg
Mandeep Khindafc068432017-08-30 14:24:02 +000046 name: haproxy-cfg
Mandeep Khinda71439a72017-06-24 11:49:37 -040047 ports:
48 - containerPort: 8080
49 - containerPort: 8443
50 readinessProbe:
51 tcpSocket:
52 port: 8443
53 initialDelaySeconds: 5
54 periodSeconds: 10
55 volumes:
yurync400bf52017-09-13 19:21:03 +030056 - name: localtime
57 hostPath:
58 path: /etc/localtime
Mandeep Khindafc068432017-08-30 14:24:02 +000059 - name: aai-service-log
Mandeep Khinda71439a72017-06-24 11:49:37 -040060 hostPath:
Alexis de Talhouëtf0ce11b2017-11-27 16:29:17 -050061 path: "/dev/log"
Mandeep Khindafc068432017-08-30 14:24:02 +000062 - name: haproxy-cfg
mayankg270334fb0cf2018-02-05 07:12:32 +000063 configMap:
64 name: aai-deployment-configmap
Mandeep Khinda71439a72017-06-24 11:49:37 -040065 restartPolicy: Always
Borislav Glozmanfe6dd562017-07-24 10:45:28 +030066 imagePullSecrets:
Alexis de Talhouët42bd6cf2017-09-26 10:29:32 -040067 - name: "{{ .Values.nsPrefix }}-docker-registry-key"
kiranya6eea4802017-11-22 12:21:55 +000068#{{ end }}