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 |
| 16 | annotations: |
Mandeep Khinda | fc06843 | 2017-08-30 14:24:02 +0000 | [diff] [blame] | 17 | pod.beta.kubernetes.io/init-containers: '[{ |
| 18 | "args": [ |
| 19 | "--container-name", "aai-resources", |
| 20 | "--container-name", "aai-traversal" |
| 21 | ], |
| 22 | "command": [ |
| 23 | "/root/ready.py" |
| 24 | ], |
| 25 | "env": [{ |
| 26 | "name": "NAMESPACE", |
| 27 | "valueFrom": { |
| 28 | "fieldRef": { |
| 29 | "apiVersion": "v1", |
| 30 | "fieldPath": "metadata.namespace" |
| 31 | } |
| 32 | } |
| 33 | }], |
| 34 | "image": "{{ .Values.image.readiness }}", |
| 35 | "imagePullPolicy": "{{ .Values.pullPolicy }}", |
| 36 | "name": "aai-service-readiness" |
| 37 | }]' |
Mandeep Khinda | 71439a7 | 2017-06-24 11:49:37 -0400 | [diff] [blame] | 38 | spec: |
| 39 | containers: |
Mandeep Khinda | fc06843 | 2017-08-30 14:24:02 +0000 | [diff] [blame] | 40 | - name: aai-service |
| 41 | image: "{{ .Values.image.aaiProxy }}:{{ .Values.image.aaiProxyVersion}}" |
kerenj | 3db4be5 | 2017-08-24 11:32:22 +0000 | [diff] [blame] | 42 | imagePullPolicy: {{ .Values.pullPolicy }} |
Mandeep Khinda | 71439a7 | 2017-06-24 11:49:37 -0400 | [diff] [blame] | 43 | volumeMounts: |
yuryn | c400bf5 | 2017-09-13 19:21:03 +0300 | [diff] [blame] | 44 | - mountPath: /etc/localtime |
| 45 | name: localtime |
| 46 | readOnly: true |
Mandeep Khinda | fc06843 | 2017-08-30 14:24:02 +0000 | [diff] [blame] | 47 | - mountPath: /dev/log |
| 48 | name: aai-service-log |
| 49 | - mountPath: /usr/local/etc/haproxy/haproxy.cfg |
| 50 | name: haproxy-cfg |
Mandeep Khinda | 71439a7 | 2017-06-24 11:49:37 -0400 | [diff] [blame] | 51 | ports: |
| 52 | - containerPort: 8080 |
| 53 | - containerPort: 8443 |
| 54 | readinessProbe: |
| 55 | tcpSocket: |
| 56 | port: 8443 |
| 57 | initialDelaySeconds: 5 |
| 58 | periodSeconds: 10 |
| 59 | volumes: |
yuryn | c400bf5 | 2017-09-13 19:21:03 +0300 | [diff] [blame] | 60 | - name: localtime |
| 61 | hostPath: |
| 62 | path: /etc/localtime |
Mandeep Khinda | fc06843 | 2017-08-30 14:24:02 +0000 | [diff] [blame] | 63 | - name: aai-service-log |
Mandeep Khinda | 71439a7 | 2017-06-24 11:49:37 -0400 | [diff] [blame] | 64 | hostPath: |
Alexis de Talhouët | f0ce11b | 2017-11-27 16:29:17 -0500 | [diff] [blame^] | 65 | path: "/dev/log" |
Mandeep Khinda | fc06843 | 2017-08-30 14:24:02 +0000 | [diff] [blame] | 66 | - name: haproxy-cfg |
Mandeep Khinda | 71439a7 | 2017-06-24 11:49:37 -0400 | [diff] [blame] | 67 | hostPath: |
Mandeep Khinda | fc06843 | 2017-08-30 14:24:02 +0000 | [diff] [blame] | 68 | path: "/dockerdata-nfs/{{ .Values.nsPrefix }}/aai/haproxy/haproxy.cfg" |
Mandeep Khinda | 71439a7 | 2017-06-24 11:49:37 -0400 | [diff] [blame] | 69 | restartPolicy: Always |
Borislav Glozman | fe6dd56 | 2017-07-24 10:45:28 +0300 | [diff] [blame] | 70 | imagePullSecrets: |
Alexis de Talhouët | 42bd6cf | 2017-09-26 10:29:32 -0400 | [diff] [blame] | 71 | - name: "{{ .Values.nsPrefix }}-docker-registry-key" |
yuryn | 5d0587b | 2017-10-26 17:10:50 +0300 | [diff] [blame] | 72 | #{{ end }} |