blob: dc375cb6bce06b97ed7c2407717a4b0da4802f8b [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:
yuryn8b3bc5a2017-09-13 19:21:03 +030043 - mountPath: /etc/localtime
44 name: localtime
45 readOnly: true
Mandeep Khinda4b881972017-08-30 14:24:02 +000046 - mountPath: /dev/log
47 name: aai-service-log
48 - mountPath: /usr/local/etc/haproxy/haproxy.cfg
49 name: haproxy-cfg
Mandeep Khindad6ea9872017-06-24 11:49:37 -040050 ports:
51 - containerPort: 8080
52 - containerPort: 8443
53 readinessProbe:
54 tcpSocket:
55 port: 8443
56 initialDelaySeconds: 5
57 periodSeconds: 10
58 volumes:
yuryn8b3bc5a2017-09-13 19:21:03 +030059 - name: localtime
60 hostPath:
61 path: /etc/localtime
Mandeep Khinda4b881972017-08-30 14:24:02 +000062 - name: aai-service-log
Mandeep Khindad6ea9872017-06-24 11:49:37 -040063 hostPath:
Mandeep Khinda4b881972017-08-30 14:24:02 +000064 path: "/dockerdata-nfs/{{ .Values.nsPrefix }}/aai/haproxy/log/"
65 - name: haproxy-cfg
Mandeep Khindad6ea9872017-06-24 11:49:37 -040066 hostPath:
Mandeep Khinda4b881972017-08-30 14:24:02 +000067 path: "/dockerdata-nfs/{{ .Values.nsPrefix }}/aai/haproxy/haproxy.cfg"
Mandeep Khindad6ea9872017-06-24 11:49:37 -040068 restartPolicy: Always
Borislav Glozman5197e2e2017-07-24 10:45:28 +030069 imagePullSecrets:
Mandeep Khinda0e8f8892017-08-25 03:31:17 +000070 - name: "{{ .Values.nsPrefix }}-docker-registry-key"