blob: db6da6403c704e661ea87fbc7f915e8c0d0c3992 [file] [log] [blame]
yurynfcef9942017-10-26 17:10:50 +03001#{{ if not .Values.disableAaiAaiService }}
Mandeep Khindad6ea9872017-06-24 11:49:37 -04002apiVersion: extensions/v1beta1
3kind: Deployment
4metadata:
5 name: aai-service
BorislavG8bfc6cf2018-02-27 15:04:26 +00006 namespace: "{{ .Values.nsPrefix }}"
Mandeep Khindad6ea9872017-06-24 11:49:37 -04007spec:
vaibhav_16deca97d3fd2018-02-14 05:32:10 +00008 replicas: {{ .Values.aaiServiceReplicas }}
Mandeep Khindad6ea9872017-06-24 11:49:37 -04009 selector:
10 matchLabels:
11 app: aai-service
12 template:
13 metadata:
14 labels:
15 app: aai-service
16 name: aai-service
Mandeep Khindad6ea9872017-06-24 11:49:37 -040017 spec:
kiranya52a57832017-11-22 12:21:55 +000018 initContainers:
19 - command:
20 - /root/ready.py
21 args:
22 - --container-name
23 - aai-resources
24 - --container-name
25 - aai-traversal
26 env:
27 - name: NAMESPACE
28 valueFrom:
29 fieldRef:
30 apiVersion: v1
31 fieldPath: metadata.namespace
32 image: {{ .Values.image.readiness }}
33 imagePullPolicy: {{ .Values.pullPolicy }}
34 name: aai-service-readiness
Mandeep Khindad6ea9872017-06-24 11:49:37 -040035 containers:
Mandeep Khinda4b881972017-08-30 14:24:02 +000036 - name: aai-service
37 image: "{{ .Values.image.aaiProxy }}:{{ .Values.image.aaiProxyVersion}}"
kerenjfdc17622017-08-24 11:32:22 +000038 imagePullPolicy: {{ .Values.pullPolicy }}
Mandeep Khindad6ea9872017-06-24 11:49:37 -040039 volumeMounts:
yuryn8b3bc5a2017-09-13 19:21:03 +030040 - mountPath: /etc/localtime
41 name: localtime
42 readOnly: true
Mandeep Khinda4b881972017-08-30 14:24:02 +000043 - mountPath: /dev/log
44 name: aai-service-log
45 - mountPath: /usr/local/etc/haproxy/haproxy.cfg
mayankg270319ce2792018-02-05 07:12:32 +000046 subPath: haproxy.cfg
Mandeep Khinda4b881972017-08-30 14:24:02 +000047 name: haproxy-cfg
Mandeep Khindad6ea9872017-06-24 11:49:37 -040048 ports:
49 - containerPort: 8080
50 - containerPort: 8443
51 readinessProbe:
52 tcpSocket:
53 port: 8443
54 initialDelaySeconds: 5
55 periodSeconds: 10
56 volumes:
yuryn8b3bc5a2017-09-13 19:21:03 +030057 - name: localtime
58 hostPath:
59 path: /etc/localtime
Mandeep Khinda4b881972017-08-30 14:24:02 +000060 - name: aai-service-log
Mandeep Khindad6ea9872017-06-24 11:49:37 -040061 hostPath:
Alexis de Talhouët62654112017-11-27 16:29:17 -050062 path: "/dev/log"
Mandeep Khinda4b881972017-08-30 14:24:02 +000063 - name: haproxy-cfg
mayankg270319ce2792018-02-05 07:12:32 +000064 configMap:
65 name: aai-deployment-configmap
Mandeep Khindad6ea9872017-06-24 11:49:37 -040066 restartPolicy: Always
Borislav Glozman5197e2e2017-07-24 10:45:28 +030067 imagePullSecrets:
Alexis de Talhouët91c77102017-09-26 10:29:32 -040068 - name: "{{ .Values.nsPrefix }}-docker-registry-key"
kiranya52a57832017-11-22 12:21:55 +000069#{{ end }}