blob: 3f714f3e64e5a28a96ce0ce54a56c48a24d6edca [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
Mandeep Khinda0e8f8892017-08-25 03:31:17 +00006 namespace: "{{ .Values.nsPrefix }}-aai"
Mandeep Khindad6ea9872017-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
16 annotations:
Mandeep Khinda4b881972017-08-30 14:24:02 +000017 pod.beta.kubernetes.io/init-containers: '[{
18 "args": [
19 "--container-name", "aai-resources",
20 "--container-name", "aai-traversal"
21 ],
22 "command": [
23 "/root/ready.py"
24 ],
25 "env": [{
26 "name": "NAMESPACE",
27 "valueFrom": {
28 "fieldRef": {
29 "apiVersion": "v1",
30 "fieldPath": "metadata.namespace"
31 }
32 }
33 }],
34 "image": "{{ .Values.image.readiness }}",
35 "imagePullPolicy": "{{ .Values.pullPolicy }}",
36 "name": "aai-service-readiness"
37 }]'
Mandeep Khindad6ea9872017-06-24 11:49:37 -040038 spec:
39 containers:
Mandeep Khinda4b881972017-08-30 14:24:02 +000040 - name: aai-service
41 image: "{{ .Values.image.aaiProxy }}:{{ .Values.image.aaiProxyVersion}}"
kerenjfdc17622017-08-24 11:32:22 +000042 imagePullPolicy: {{ .Values.pullPolicy }}
Mandeep Khindad6ea9872017-06-24 11:49:37 -040043 volumeMounts:
yuryn8b3bc5a2017-09-13 19:21:03 +030044 - mountPath: /etc/localtime
45 name: localtime
46 readOnly: true
Mandeep Khinda4b881972017-08-30 14:24:02 +000047 - mountPath: /dev/log
48 name: aai-service-log
49 - mountPath: /usr/local/etc/haproxy/haproxy.cfg
50 name: haproxy-cfg
Mandeep Khindad6ea9872017-06-24 11:49:37 -040051 ports:
52 - containerPort: 8080
53 - containerPort: 8443
54 readinessProbe:
55 tcpSocket:
56 port: 8443
57 initialDelaySeconds: 5
58 periodSeconds: 10
59 volumes:
yuryn8b3bc5a2017-09-13 19:21:03 +030060 - name: localtime
61 hostPath:
62 path: /etc/localtime
Mandeep Khinda4b881972017-08-30 14:24:02 +000063 - name: aai-service-log
Mandeep Khindad6ea9872017-06-24 11:49:37 -040064 hostPath:
Mandeep Khinda4b881972017-08-30 14:24:02 +000065 path: "/dockerdata-nfs/{{ .Values.nsPrefix }}/aai/haproxy/log/"
66 - name: haproxy-cfg
Mandeep Khindad6ea9872017-06-24 11:49:37 -040067 hostPath:
Mandeep Khinda4b881972017-08-30 14:24:02 +000068 path: "/dockerdata-nfs/{{ .Values.nsPrefix }}/aai/haproxy/haproxy.cfg"
Mandeep Khindad6ea9872017-06-24 11:49:37 -040069 restartPolicy: Always
Borislav Glozman5197e2e2017-07-24 10:45:28 +030070 imagePullSecrets:
Alexis de Talhouƫt91c77102017-09-26 10:29:32 -040071 - name: "{{ .Values.nsPrefix }}-docker-registry-key"
yurynfcef9942017-10-26 17:10:50 +030072#{{ end }}