blob: a65cf44cba4de5e2802bb1f2c41c6b3e352573da [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
45 name: haproxy-cfg
Mandeep Khinda71439a72017-06-24 11:49:37 -040046 ports:
47 - containerPort: 8080
48 - containerPort: 8443
49 readinessProbe:
50 tcpSocket:
51 port: 8443
52 initialDelaySeconds: 5
53 periodSeconds: 10
54 volumes:
yurync400bf52017-09-13 19:21:03 +030055 - name: localtime
56 hostPath:
57 path: /etc/localtime
Mandeep Khindafc068432017-08-30 14:24:02 +000058 - name: aai-service-log
Mandeep Khinda71439a72017-06-24 11:49:37 -040059 hostPath:
Alexis de Talhouëtf0ce11b2017-11-27 16:29:17 -050060 path: "/dev/log"
Mandeep Khindafc068432017-08-30 14:24:02 +000061 - name: haproxy-cfg
Mandeep Khinda71439a72017-06-24 11:49:37 -040062 hostPath:
Mandeep Khindafc068432017-08-30 14:24:02 +000063 path: "/dockerdata-nfs/{{ .Values.nsPrefix }}/aai/haproxy/haproxy.cfg"
Mandeep Khinda71439a72017-06-24 11:49:37 -040064 restartPolicy: Always
Borislav Glozmanfe6dd562017-07-24 10:45:28 +030065 imagePullSecrets:
Alexis de Talhouët42bd6cf2017-09-26 10:29:32 -040066 - name: "{{ .Values.nsPrefix }}-docker-registry-key"
kiranya6eea4802017-11-22 12:21:55 +000067#{{ end }}