Mandeep Khinda | d6ea987 | 2017-06-24 11:49:37 -0400 | [diff] [blame] | 1 | apiVersion: extensions/v1beta1 |
| 2 | kind: Deployment |
| 3 | metadata: |
| 4 | name: aai-service |
Mandeep Khinda | 0e8f889 | 2017-08-25 03:31:17 +0000 | [diff] [blame] | 5 | namespace: "{{ .Values.nsPrefix }}-aai" |
Mandeep Khinda | d6ea987 | 2017-06-24 11:49:37 -0400 | [diff] [blame] | 6 | spec: |
| 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 Khinda | 4b88197 | 2017-08-30 14:24:02 +0000 | [diff] [blame] | 16 | 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 Khinda | d6ea987 | 2017-06-24 11:49:37 -0400 | [diff] [blame] | 37 | spec: |
| 38 | containers: |
Mandeep Khinda | 4b88197 | 2017-08-30 14:24:02 +0000 | [diff] [blame] | 39 | - name: aai-service |
| 40 | image: "{{ .Values.image.aaiProxy }}:{{ .Values.image.aaiProxyVersion}}" |
kerenj | fdc1762 | 2017-08-24 11:32:22 +0000 | [diff] [blame] | 41 | imagePullPolicy: {{ .Values.pullPolicy }} |
Mandeep Khinda | d6ea987 | 2017-06-24 11:49:37 -0400 | [diff] [blame] | 42 | volumeMounts: |
yuryn | 8b3bc5a | 2017-09-13 19:21:03 +0300 | [diff] [blame] | 43 | - mountPath: /etc/localtime |
| 44 | name: localtime |
| 45 | readOnly: true |
Mandeep Khinda | 4b88197 | 2017-08-30 14:24:02 +0000 | [diff] [blame] | 46 | - mountPath: /dev/log |
| 47 | name: aai-service-log |
| 48 | - mountPath: /usr/local/etc/haproxy/haproxy.cfg |
| 49 | name: haproxy-cfg |
Mandeep Khinda | d6ea987 | 2017-06-24 11:49:37 -0400 | [diff] [blame] | 50 | ports: |
| 51 | - containerPort: 8080 |
| 52 | - containerPort: 8443 |
| 53 | readinessProbe: |
| 54 | tcpSocket: |
| 55 | port: 8443 |
| 56 | initialDelaySeconds: 5 |
| 57 | periodSeconds: 10 |
| 58 | volumes: |
yuryn | 8b3bc5a | 2017-09-13 19:21:03 +0300 | [diff] [blame] | 59 | - name: localtime |
| 60 | hostPath: |
| 61 | path: /etc/localtime |
Mandeep Khinda | 4b88197 | 2017-08-30 14:24:02 +0000 | [diff] [blame] | 62 | - name: aai-service-log |
Mandeep Khinda | d6ea987 | 2017-06-24 11:49:37 -0400 | [diff] [blame] | 63 | hostPath: |
Mandeep Khinda | 4b88197 | 2017-08-30 14:24:02 +0000 | [diff] [blame] | 64 | path: "/dockerdata-nfs/{{ .Values.nsPrefix }}/aai/haproxy/log/" |
| 65 | - name: haproxy-cfg |
Mandeep Khinda | d6ea987 | 2017-06-24 11:49:37 -0400 | [diff] [blame] | 66 | hostPath: |
Mandeep Khinda | 4b88197 | 2017-08-30 14:24:02 +0000 | [diff] [blame] | 67 | path: "/dockerdata-nfs/{{ .Values.nsPrefix }}/aai/haproxy/haproxy.cfg" |
Mandeep Khinda | d6ea987 | 2017-06-24 11:49:37 -0400 | [diff] [blame] | 68 | restartPolicy: Always |
Borislav Glozman | 5197e2e | 2017-07-24 10:45:28 +0300 | [diff] [blame] | 69 | imagePullSecrets: |
Mandeep Khinda | 0e8f889 | 2017-08-25 03:31:17 +0000 | [diff] [blame] | 70 | - name: "{{ .Values.nsPrefix }}-docker-registry-key" |