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: |
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 |
| 46 | name: haproxy-cfg |
Mandeep Khinda | d6ea987 | 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: |
Mandeep Khinda | 4b88197 | 2017-08-30 14:24:02 +0000 | [diff] [blame] | 56 | - name: aai-service-log |
Mandeep Khinda | d6ea987 | 2017-06-24 11:49:37 -0400 | [diff] [blame] | 57 | hostPath: |
Mandeep Khinda | 4b88197 | 2017-08-30 14:24:02 +0000 | [diff] [blame] | 58 | path: "/dockerdata-nfs/{{ .Values.nsPrefix }}/aai/haproxy/log/" |
| 59 | - name: haproxy-cfg |
Mandeep Khinda | d6ea987 | 2017-06-24 11:49:37 -0400 | [diff] [blame] | 60 | hostPath: |
Mandeep Khinda | 4b88197 | 2017-08-30 14:24:02 +0000 | [diff] [blame] | 61 | path: "/dockerdata-nfs/{{ .Values.nsPrefix }}/aai/haproxy/haproxy.cfg" |
Mandeep Khinda | d6ea987 | 2017-06-24 11:49:37 -0400 | [diff] [blame] | 62 | restartPolicy: Always |
Borislav Glozman | 5197e2e | 2017-07-24 10:45:28 +0300 | [diff] [blame] | 63 | imagePullSecrets: |
Mandeep Khinda | 0e8f889 | 2017-08-25 03:31:17 +0000 | [diff] [blame] | 64 | - name: "{{ .Values.nsPrefix }}-docker-registry-key" |