Mandeep Khinda | fc06843 | 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 |
Mandeep Khinda | c432f86 | 2017-09-01 02:15:17 +0000 | [diff] [blame] | 15 | annotations: |
| 16 | pod.beta.kubernetes.io/init-containers: '[ |
| 17 | { |
| 18 | "args": [ |
| 19 | "--container-name", |
| 20 | "hbase", |
| 21 | "--container-name", |
| 22 | "aai-resources" |
| 23 | ], |
| 24 | "command": [ |
| 25 | "/root/ready.py" |
| 26 | ], |
| 27 | "env": [ |
| 28 | { |
| 29 | "name": "NAMESPACE", |
| 30 | "valueFrom": { |
| 31 | "fieldRef": { |
| 32 | "apiVersion": "v1", |
| 33 | "fieldPath": "metadata.namespace" |
| 34 | } |
| 35 | } |
| 36 | } |
| 37 | ], |
yuryn | 4c6a50e | 2017-09-04 16:42:08 +0300 | [diff] [blame^] | 38 | "image": "{{ .Values.image.readiness }}", |
| 39 | "imagePullPolicy": "{{ .Values.pullPolicy }}", |
Mandeep Khinda | c432f86 | 2017-09-01 02:15:17 +0000 | [diff] [blame] | 40 | "name": "aai-traversal-readiness" |
| 41 | } |
| 42 | ]' |
Mandeep Khinda | fc06843 | 2017-08-30 14:24:02 +0000 | [diff] [blame] | 43 | spec: |
| 44 | containers: |
| 45 | - name: aai-traversal |
| 46 | image: "{{ .Values.image.aaiTraversalImage }}:{{ .Values.image.aaiTraversalVersion }}" |
| 47 | imagePullPolicy: {{ .Values.pullPolicy }} |
| 48 | env: |
| 49 | - name: CHEF_BRANCH |
| 50 | value: master |
| 51 | - name: AAI_CHEF_ENV |
| 52 | value: simpledemo |
| 53 | - name: AAI_CORE_VERSION |
| 54 | value: 1.1.0-SNAPSHOT |
| 55 | - name: AAI_CHEF_LOC |
| 56 | value: /var/chef/aai-data/environments |
| 57 | - name: CHEF_GIT_URL |
| 58 | value: http://gerrit.onap.org/r/aai |
| 59 | volumeMounts: |
Mandeep Khinda | c432f86 | 2017-09-01 02:15:17 +0000 | [diff] [blame] | 60 | - mountPath: /opt/aai/logroot/ |
Mandeep Khinda | fc06843 | 2017-08-30 14:24:02 +0000 | [diff] [blame] | 61 | name: aai-traversal-logs |
Mandeep Khinda | fc06843 | 2017-08-30 14:24:02 +0000 | [diff] [blame] | 62 | - mountPath: /var/chef/aai-data/ |
| 63 | name: aai-data |
Mandeep Khinda | c432f86 | 2017-09-01 02:15:17 +0000 | [diff] [blame] | 64 | - mountPath: /docker-entrypoint.sh |
| 65 | name: entrypoint-override |
Mandeep Khinda | fc06843 | 2017-08-30 14:24:02 +0000 | [diff] [blame] | 66 | ports: |
| 67 | - containerPort: 8446 |
| 68 | readinessProbe: |
| 69 | tcpSocket: |
| 70 | port: 8446 |
| 71 | initialDelaySeconds: 5 |
| 72 | periodSeconds: 10 |
| 73 | volumes: |
| 74 | - name: aai-traversal-logs |
| 75 | hostPath: |
| 76 | path: "/dockerdata-nfs/{{ .Values.nsPrefix }}/aai/aai-traversal/logs/" |
Mandeep Khinda | fc06843 | 2017-08-30 14:24:02 +0000 | [diff] [blame] | 77 | - name: aai-data |
| 78 | hostPath: |
| 79 | path: "/dockerdata-nfs/{{ .Values.nsPrefix }}/aai/aai-data/" |
Mandeep Khinda | c432f86 | 2017-09-01 02:15:17 +0000 | [diff] [blame] | 80 | - name: entrypoint-override |
| 81 | hostPath: |
| 82 | path: "/dockerdata-nfs/{{ .Values.nsPrefix }}/aai/aai-traversal/docker-entrypoint.sh" |
Mandeep Khinda | fc06843 | 2017-08-30 14:24:02 +0000 | [diff] [blame] | 83 | restartPolicy: Always |
| 84 | imagePullSecrets: |
| 85 | - name: "{{ .Values.nsPrefix }}-docker-registry-key" |