blob: 9b55d4e736b37de3b34d30d76be3ce54c55af2ce [file] [log] [blame]
Mandeep Khindad6ea9872017-06-24 11:49:37 -04001apiVersion: extensions/v1beta1
2kind: Deployment
3metadata:
4 name: aai-service
Mandeep Khinda0e8f8892017-08-25 03:31:17 +00005 namespace: "{{ .Values.nsPrefix }}-aai"
Mandeep Khindad6ea9872017-06-24 11:49:37 -04006spec:
7 selector:
8 matchLabels:
9 app: aai-service
10 template:
11 metadata:
12 labels:
13 app: aai-service
14 name: aai-service
15 annotations:
Mandeep Khinda4b881972017-08-30 14:24:02 +000016 pod.beta.kubernetes.io/init-containers: '[{
17 "args": [
18 "--container-name", "aai-resources",
19 "--container-name", "aai-traversal"
20 ],
21 "command": [
22 "/root/ready.py"
23 ],
24 "env": [{
25 "name": "NAMESPACE",
26 "valueFrom": {
27 "fieldRef": {
28 "apiVersion": "v1",
29 "fieldPath": "metadata.namespace"
30 }
31 }
32 }],
33 "image": "{{ .Values.image.readiness }}",
34 "imagePullPolicy": "{{ .Values.pullPolicy }}",
35 "name": "aai-service-readiness"
36 }]'
Mandeep Khindad6ea9872017-06-24 11:49:37 -040037 spec:
38 containers:
Mandeep Khinda4b881972017-08-30 14:24:02 +000039 - name: aai-service
40 image: "{{ .Values.image.aaiProxy }}:{{ .Values.image.aaiProxyVersion}}"
kerenjfdc17622017-08-24 11:32:22 +000041 imagePullPolicy: {{ .Values.pullPolicy }}
Mandeep Khindad6ea9872017-06-24 11:49:37 -040042 volumeMounts:
Mandeep Khinda4b881972017-08-30 14:24:02 +000043 - mountPath: /dev/log
44 name: aai-service-log
45 - mountPath: /usr/local/etc/haproxy/haproxy.cfg
46 name: haproxy-cfg
Mandeep Khindad6ea9872017-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:
Mandeep Khinda4b881972017-08-30 14:24:02 +000056 - name: aai-service-log
Mandeep Khindad6ea9872017-06-24 11:49:37 -040057 hostPath:
Mandeep Khinda4b881972017-08-30 14:24:02 +000058 path: "/dockerdata-nfs/{{ .Values.nsPrefix }}/aai/haproxy/log/"
59 - name: haproxy-cfg
Mandeep Khindad6ea9872017-06-24 11:49:37 -040060 hostPath:
Mandeep Khinda4b881972017-08-30 14:24:02 +000061 path: "/dockerdata-nfs/{{ .Values.nsPrefix }}/aai/haproxy/haproxy.cfg"
Mandeep Khindad6ea9872017-06-24 11:49:37 -040062 restartPolicy: Always
Borislav Glozman5197e2e2017-07-24 10:45:28 +030063 imagePullSecrets:
Mandeep Khinda0e8f8892017-08-25 03:31:17 +000064 - name: "{{ .Values.nsPrefix }}-docker-registry-key"