yuryn | 5d0587b | 2017-10-26 17:10:50 +0300 | [diff] [blame] | 1 | #{{ if not .Values.disableAaiAaiService }} |
Mandeep Khinda | 71439a7 | 2017-06-24 11:49:37 -0400 | [diff] [blame] | 2 | apiVersion: extensions/v1beta1 |
| 3 | kind: Deployment |
| 4 | metadata: |
| 5 | name: aai-service |
Mandeep Khinda | a71542f | 2017-08-25 03:31:17 +0000 | [diff] [blame] | 6 | namespace: "{{ .Values.nsPrefix }}-aai" |
Mandeep Khinda | 71439a7 | 2017-06-24 11:49:37 -0400 | [diff] [blame] | 7 | spec: |
| 8 | selector: |
| 9 | matchLabels: |
| 10 | app: aai-service |
| 11 | template: |
| 12 | metadata: |
| 13 | labels: |
| 14 | app: aai-service |
| 15 | name: aai-service |
Mandeep Khinda | 71439a7 | 2017-06-24 11:49:37 -0400 | [diff] [blame] | 16 | spec: |
kiranya | 6eea480 | 2017-11-22 12:21:55 +0000 | [diff] [blame] | 17 | 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 Khinda | 71439a7 | 2017-06-24 11:49:37 -0400 | [diff] [blame] | 34 | containers: |
Mandeep Khinda | fc06843 | 2017-08-30 14:24:02 +0000 | [diff] [blame] | 35 | - name: aai-service |
| 36 | image: "{{ .Values.image.aaiProxy }}:{{ .Values.image.aaiProxyVersion}}" |
kerenj | 3db4be5 | 2017-08-24 11:32:22 +0000 | [diff] [blame] | 37 | imagePullPolicy: {{ .Values.pullPolicy }} |
Mandeep Khinda | 71439a7 | 2017-06-24 11:49:37 -0400 | [diff] [blame] | 38 | volumeMounts: |
yuryn | c400bf5 | 2017-09-13 19:21:03 +0300 | [diff] [blame] | 39 | - mountPath: /etc/localtime |
| 40 | name: localtime |
| 41 | readOnly: true |
Mandeep Khinda | fc06843 | 2017-08-30 14:24:02 +0000 | [diff] [blame] | 42 | - mountPath: /dev/log |
| 43 | name: aai-service-log |
| 44 | - mountPath: /usr/local/etc/haproxy/haproxy.cfg |
| 45 | name: haproxy-cfg |
Mandeep Khinda | 71439a7 | 2017-06-24 11:49:37 -0400 | [diff] [blame] | 46 | ports: |
| 47 | - containerPort: 8080 |
| 48 | - containerPort: 8443 |
| 49 | readinessProbe: |
| 50 | tcpSocket: |
| 51 | port: 8443 |
| 52 | initialDelaySeconds: 5 |
| 53 | periodSeconds: 10 |
| 54 | volumes: |
yuryn | c400bf5 | 2017-09-13 19:21:03 +0300 | [diff] [blame] | 55 | - name: localtime |
| 56 | hostPath: |
| 57 | path: /etc/localtime |
Mandeep Khinda | fc06843 | 2017-08-30 14:24:02 +0000 | [diff] [blame] | 58 | - name: aai-service-log |
Mandeep Khinda | 71439a7 | 2017-06-24 11:49:37 -0400 | [diff] [blame] | 59 | hostPath: |
Alexis de Talhouët | f0ce11b | 2017-11-27 16:29:17 -0500 | [diff] [blame] | 60 | path: "/dev/log" |
Mandeep Khinda | fc06843 | 2017-08-30 14:24:02 +0000 | [diff] [blame] | 61 | - name: haproxy-cfg |
Mandeep Khinda | 71439a7 | 2017-06-24 11:49:37 -0400 | [diff] [blame] | 62 | hostPath: |
Mandeep Khinda | fc06843 | 2017-08-30 14:24:02 +0000 | [diff] [blame] | 63 | path: "/dockerdata-nfs/{{ .Values.nsPrefix }}/aai/haproxy/haproxy.cfg" |
Mandeep Khinda | 71439a7 | 2017-06-24 11:49:37 -0400 | [diff] [blame] | 64 | restartPolicy: Always |
Borislav Glozman | fe6dd56 | 2017-07-24 10:45:28 +0300 | [diff] [blame] | 65 | imagePullSecrets: |
Alexis de Talhouët | 42bd6cf | 2017-09-26 10:29:32 -0400 | [diff] [blame] | 66 | - name: "{{ .Values.nsPrefix }}-docker-registry-key" |
kiranya | 6eea480 | 2017-11-22 12:21:55 +0000 | [diff] [blame] | 67 | #{{ end }} |