blob: c2220cacdef9f2b7a376e2e235ac26d831156f3b [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
16 annotations:
Mandeep Khindafc068432017-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 Khinda71439a72017-06-24 11:49:37 -040038 spec:
39 containers:
Mandeep Khindafc068432017-08-30 14:24:02 +000040 - name: aai-service
41 image: "{{ .Values.image.aaiProxy }}:{{ .Values.image.aaiProxyVersion}}"
kerenj3db4be52017-08-24 11:32:22 +000042 imagePullPolicy: {{ .Values.pullPolicy }}
Mandeep Khinda71439a72017-06-24 11:49:37 -040043 volumeMounts:
yurync400bf52017-09-13 19:21:03 +030044 - mountPath: /etc/localtime
45 name: localtime
46 readOnly: true
Mandeep Khindafc068432017-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 Khinda71439a72017-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:
yurync400bf52017-09-13 19:21:03 +030060 - name: localtime
61 hostPath:
62 path: /etc/localtime
Mandeep Khindafc068432017-08-30 14:24:02 +000063 - name: aai-service-log
Mandeep Khinda71439a72017-06-24 11:49:37 -040064 hostPath:
Alexis de Talhouëtf0ce11b2017-11-27 16:29:17 -050065 path: "/dev/log"
Mandeep Khindafc068432017-08-30 14:24:02 +000066 - name: haproxy-cfg
Mandeep Khinda71439a72017-06-24 11:49:37 -040067 hostPath:
Mandeep Khindafc068432017-08-30 14:24:02 +000068 path: "/dockerdata-nfs/{{ .Values.nsPrefix }}/aai/haproxy/haproxy.cfg"
Mandeep Khinda71439a72017-06-24 11:49:37 -040069 restartPolicy: Always
Borislav Glozmanfe6dd562017-07-24 10:45:28 +030070 imagePullSecrets:
Alexis de Talhouët42bd6cf2017-09-26 10:29:32 -040071 - name: "{{ .Values.nsPrefix }}-docker-registry-key"
yuryn5d0587b2017-10-26 17:10:50 +030072#{{ end }}