Mandeep Khinda | 4b88197 | 2017-08-30 14:24:02 +0000 | [diff] [blame^] | 1 | apiVersion: extensions/v1beta1 |
| 2 | kind: Deployment |
| 3 | metadata: |
| 4 | name: aai-traversal |
| 5 | namespace: "{{ .Values.nsPrefix }}-aai" |
| 6 | spec: |
| 7 | selector: |
| 8 | matchLabels: |
| 9 | app: aai-traversal |
| 10 | template: |
| 11 | metadata: |
| 12 | labels: |
| 13 | app: aai-traversal |
| 14 | name: aai-traversal |
| 15 | spec: |
| 16 | containers: |
| 17 | - name: aai-traversal |
| 18 | image: "{{ .Values.image.aaiTraversalImage }}:{{ .Values.image.aaiTraversalVersion }}" |
| 19 | imagePullPolicy: {{ .Values.pullPolicy }} |
| 20 | env: |
| 21 | - name: CHEF_BRANCH |
| 22 | value: master |
| 23 | - name: AAI_CHEF_ENV |
| 24 | value: simpledemo |
| 25 | - name: AAI_CORE_VERSION |
| 26 | value: 1.1.0-SNAPSHOT |
| 27 | - name: AAI_CHEF_LOC |
| 28 | value: /var/chef/aai-data/environments |
| 29 | - name: CHEF_GIT_URL |
| 30 | value: http://gerrit.onap.org/r/aai |
| 31 | volumeMounts: |
| 32 | - mountPath: /opt/aai/logroot/AAI-GQ/ |
| 33 | name: aai-traversal-logs |
| 34 | - mountPath: /var/chef/aai-config/ |
| 35 | name: aai-config |
| 36 | - mountPath: /var/chef/aai-data/ |
| 37 | name: aai-data |
| 38 | ports: |
| 39 | - containerPort: 8446 |
| 40 | readinessProbe: |
| 41 | tcpSocket: |
| 42 | port: 8446 |
| 43 | initialDelaySeconds: 5 |
| 44 | periodSeconds: 10 |
| 45 | volumes: |
| 46 | - name: aai-traversal-logs |
| 47 | hostPath: |
| 48 | path: "/dockerdata-nfs/{{ .Values.nsPrefix }}/aai/aai-traversal/logs/" |
| 49 | - name: aai-config |
| 50 | hostPath: |
| 51 | path: "/dockerdata-nfs/{{ .Values.nsPrefix }}/aai/aai-config/" |
| 52 | - name: aai-data |
| 53 | hostPath: |
| 54 | path: "/dockerdata-nfs/{{ .Values.nsPrefix }}/aai/aai-data/" |
| 55 | restartPolicy: Always |
| 56 | imagePullSecrets: |
| 57 | - name: "{{ .Values.nsPrefix }}-docker-registry-key" |