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 |
mayankg2703 | 34fb0cf | 2018-02-05 07:12:32 +0000 | [diff] [blame] | 45 | subPath: haproxy.cfg |
Mandeep Khinda | fc06843 | 2017-08-30 14:24:02 +0000 | [diff] [blame] | 46 | name: haproxy-cfg |
Mandeep Khinda | 71439a7 | 2017-06-24 11:49:37 -0400 | [diff] [blame] | 47 | ports: |
| 48 | - containerPort: 8080 |
| 49 | - containerPort: 8443 |
| 50 | readinessProbe: |
| 51 | tcpSocket: |
| 52 | port: 8443 |
| 53 | initialDelaySeconds: 5 |
| 54 | periodSeconds: 10 |
| 55 | volumes: |
yuryn | c400bf5 | 2017-09-13 19:21:03 +0300 | [diff] [blame] | 56 | - name: localtime |
| 57 | hostPath: |
| 58 | path: /etc/localtime |
Mandeep Khinda | fc06843 | 2017-08-30 14:24:02 +0000 | [diff] [blame] | 59 | - name: aai-service-log |
Mandeep Khinda | 71439a7 | 2017-06-24 11:49:37 -0400 | [diff] [blame] | 60 | hostPath: |
Alexis de Talhouët | f0ce11b | 2017-11-27 16:29:17 -0500 | [diff] [blame] | 61 | path: "/dev/log" |
Mandeep Khinda | fc06843 | 2017-08-30 14:24:02 +0000 | [diff] [blame] | 62 | - name: haproxy-cfg |
mayankg2703 | 34fb0cf | 2018-02-05 07:12:32 +0000 | [diff] [blame] | 63 | configMap: |
| 64 | name: aai-deployment-configmap |
Mandeep Khinda | 71439a7 | 2017-06-24 11:49:37 -0400 | [diff] [blame] | 65 | restartPolicy: Always |
Borislav Glozman | fe6dd56 | 2017-07-24 10:45:28 +0300 | [diff] [blame] | 66 | imagePullSecrets: |
Alexis de Talhouët | 42bd6cf | 2017-09-26 10:29:32 -0400 | [diff] [blame] | 67 | - name: "{{ .Values.nsPrefix }}-docker-registry-key" |
kiranya | 6eea480 | 2017-11-22 12:21:55 +0000 | [diff] [blame] | 68 | #{{ end }} |