yuryn | fcef994 | 2017-10-26 17:10:50 +0300 | [diff] [blame] | 1 | #{{ if not .Values.disableAaiAaiService }} |
Mandeep Khinda | d6ea987 | 2017-06-24 11:49:37 -0400 | [diff] [blame] | 2 | apiVersion: extensions/v1beta1 |
| 3 | kind: Deployment |
| 4 | metadata: |
| 5 | name: aai-service |
BorislavG | 8bfc6cf | 2018-02-27 15:04:26 +0000 | [diff] [blame^] | 6 | namespace: "{{ .Values.nsPrefix }}" |
Mandeep Khinda | d6ea987 | 2017-06-24 11:49:37 -0400 | [diff] [blame] | 7 | spec: |
vaibhav_16dec | a97d3fd | 2018-02-14 05:32:10 +0000 | [diff] [blame] | 8 | replicas: {{ .Values.aaiServiceReplicas }} |
Mandeep Khinda | d6ea987 | 2017-06-24 11:49:37 -0400 | [diff] [blame] | 9 | selector: |
| 10 | matchLabels: |
| 11 | app: aai-service |
| 12 | template: |
| 13 | metadata: |
| 14 | labels: |
| 15 | app: aai-service |
| 16 | name: aai-service |
Mandeep Khinda | d6ea987 | 2017-06-24 11:49:37 -0400 | [diff] [blame] | 17 | spec: |
kiranya | 52a5783 | 2017-11-22 12:21:55 +0000 | [diff] [blame] | 18 | initContainers: |
| 19 | - command: |
| 20 | - /root/ready.py |
| 21 | args: |
| 22 | - --container-name |
| 23 | - aai-resources |
| 24 | - --container-name |
| 25 | - aai-traversal |
| 26 | env: |
| 27 | - name: NAMESPACE |
| 28 | valueFrom: |
| 29 | fieldRef: |
| 30 | apiVersion: v1 |
| 31 | fieldPath: metadata.namespace |
| 32 | image: {{ .Values.image.readiness }} |
| 33 | imagePullPolicy: {{ .Values.pullPolicy }} |
| 34 | name: aai-service-readiness |
Mandeep Khinda | d6ea987 | 2017-06-24 11:49:37 -0400 | [diff] [blame] | 35 | containers: |
Mandeep Khinda | 4b88197 | 2017-08-30 14:24:02 +0000 | [diff] [blame] | 36 | - name: aai-service |
| 37 | image: "{{ .Values.image.aaiProxy }}:{{ .Values.image.aaiProxyVersion}}" |
kerenj | fdc1762 | 2017-08-24 11:32:22 +0000 | [diff] [blame] | 38 | imagePullPolicy: {{ .Values.pullPolicy }} |
Mandeep Khinda | d6ea987 | 2017-06-24 11:49:37 -0400 | [diff] [blame] | 39 | volumeMounts: |
yuryn | 8b3bc5a | 2017-09-13 19:21:03 +0300 | [diff] [blame] | 40 | - mountPath: /etc/localtime |
| 41 | name: localtime |
| 42 | readOnly: true |
Mandeep Khinda | 4b88197 | 2017-08-30 14:24:02 +0000 | [diff] [blame] | 43 | - mountPath: /dev/log |
| 44 | name: aai-service-log |
| 45 | - mountPath: /usr/local/etc/haproxy/haproxy.cfg |
mayankg2703 | 19ce279 | 2018-02-05 07:12:32 +0000 | [diff] [blame] | 46 | subPath: haproxy.cfg |
Mandeep Khinda | 4b88197 | 2017-08-30 14:24:02 +0000 | [diff] [blame] | 47 | name: haproxy-cfg |
Mandeep Khinda | d6ea987 | 2017-06-24 11:49:37 -0400 | [diff] [blame] | 48 | ports: |
| 49 | - containerPort: 8080 |
| 50 | - containerPort: 8443 |
| 51 | readinessProbe: |
| 52 | tcpSocket: |
| 53 | port: 8443 |
| 54 | initialDelaySeconds: 5 |
| 55 | periodSeconds: 10 |
| 56 | volumes: |
yuryn | 8b3bc5a | 2017-09-13 19:21:03 +0300 | [diff] [blame] | 57 | - name: localtime |
| 58 | hostPath: |
| 59 | path: /etc/localtime |
Mandeep Khinda | 4b88197 | 2017-08-30 14:24:02 +0000 | [diff] [blame] | 60 | - name: aai-service-log |
Mandeep Khinda | d6ea987 | 2017-06-24 11:49:37 -0400 | [diff] [blame] | 61 | hostPath: |
Alexis de Talhouët | 6265411 | 2017-11-27 16:29:17 -0500 | [diff] [blame] | 62 | path: "/dev/log" |
Mandeep Khinda | 4b88197 | 2017-08-30 14:24:02 +0000 | [diff] [blame] | 63 | - name: haproxy-cfg |
mayankg2703 | 19ce279 | 2018-02-05 07:12:32 +0000 | [diff] [blame] | 64 | configMap: |
| 65 | name: aai-deployment-configmap |
Mandeep Khinda | d6ea987 | 2017-06-24 11:49:37 -0400 | [diff] [blame] | 66 | restartPolicy: Always |
Borislav Glozman | 5197e2e | 2017-07-24 10:45:28 +0300 | [diff] [blame] | 67 | imagePullSecrets: |
Alexis de Talhouët | 91c7710 | 2017-09-26 10:29:32 -0400 | [diff] [blame] | 68 | - name: "{{ .Values.nsPrefix }}-docker-registry-key" |
kiranya | 52a5783 | 2017-11-22 12:21:55 +0000 | [diff] [blame] | 69 | #{{ end }} |