yuryn | 5d0587b | 2017-10-26 17:10:50 +0300 | [diff] [blame] | 1 | #{{ if not .Values.disableAaiAaiTraversal }} |
Mandeep Khinda | fc06843 | 2017-08-30 14:24:02 +0000 | [diff] [blame] | 2 | apiVersion: extensions/v1beta1 |
| 3 | kind: Deployment |
| 4 | metadata: |
| 5 | name: aai-traversal |
| 6 | namespace: "{{ .Values.nsPrefix }}-aai" |
| 7 | spec: |
| 8 | selector: |
| 9 | matchLabels: |
| 10 | app: aai-traversal |
| 11 | template: |
| 12 | metadata: |
| 13 | labels: |
| 14 | app: aai-traversal |
| 15 | name: aai-traversal |
| 16 | spec: |
kiranya | 6eea480 | 2017-11-22 12:21:55 +0000 | [diff] [blame] | 17 | initContainers: |
| 18 | - command: |
| 19 | - /root/ready.py |
| 20 | args: |
| 21 | - --container-name |
| 22 | - hbase |
| 23 | - --container-name |
| 24 | - aai-resources |
| 25 | env: |
| 26 | - name: NAMESPACE |
| 27 | valueFrom: |
| 28 | fieldRef: |
| 29 | apiVersion: v1 |
| 30 | fieldPath: metadata.namespace |
| 31 | image: {{ .Values.image.readiness }} |
| 32 | imagePullPolicy: {{ .Values.pullPolicy }} |
| 33 | name: aai-traversal-readiness |
Mandeep Khinda | fc06843 | 2017-08-30 14:24:02 +0000 | [diff] [blame] | 34 | containers: |
| 35 | - name: aai-traversal |
| 36 | image: "{{ .Values.image.aaiTraversalImage }}:{{ .Values.image.aaiTraversalVersion }}" |
| 37 | imagePullPolicy: {{ .Values.pullPolicy }} |
| 38 | env: |
| 39 | - name: CHEF_BRANCH |
| 40 | value: master |
| 41 | - name: AAI_CHEF_ENV |
| 42 | value: simpledemo |
| 43 | - name: AAI_CORE_VERSION |
| 44 | value: 1.1.0-SNAPSHOT |
| 45 | - name: AAI_CHEF_LOC |
| 46 | value: /var/chef/aai-data/environments |
| 47 | - name: CHEF_GIT_URL |
| 48 | value: http://gerrit.onap.org/r/aai |
Mike Elliott | 47e76d0 | 2017-09-22 11:31:54 -0400 | [diff] [blame] | 49 | - name: RESOURCES_HOSTNAME |
| 50 | value: aai-resources.{{ .Values.nsPrefix }}-aai |
Mandeep Khinda | fc06843 | 2017-08-30 14:24:02 +0000 | [diff] [blame] | 51 | volumeMounts: |
yuryn | c400bf5 | 2017-09-13 19:21:03 +0300 | [diff] [blame] | 52 | - mountPath: /etc/localtime |
| 53 | name: localtime |
| 54 | readOnly: true |
Mandeep Khinda | fc06843 | 2017-08-30 14:24:02 +0000 | [diff] [blame] | 55 | - mountPath: /var/chef/aai-data/ |
| 56 | name: aai-data |
BorislavG | c4bafe1 | 2017-10-03 15:40:55 +0300 | [diff] [blame] | 57 | - mountPath: /var/log/onap |
| 58 | name: aai-traversal-logs |
| 59 | - mountPath: /opt/app/aai-traversal/bundleconfig/etc/logback.xml |
| 60 | name: aai-traversal-log-conf |
| 61 | subPath: logback.xml |
Mandeep Khinda | fc06843 | 2017-08-30 14:24:02 +0000 | [diff] [blame] | 62 | ports: |
| 63 | - containerPort: 8446 |
| 64 | readinessProbe: |
| 65 | tcpSocket: |
| 66 | port: 8446 |
| 67 | initialDelaySeconds: 5 |
| 68 | periodSeconds: 10 |
BorislavG | c4bafe1 | 2017-10-03 15:40:55 +0300 | [diff] [blame] | 69 | - name: filebeat-onap-aai-traversal |
| 70 | image: {{ .Values.image.filebeat }} |
| 71 | imagePullPolicy: {{ .Values.pullPolicy }} |
| 72 | volumeMounts: |
| 73 | - mountPath: /usr/share/filebeat/filebeat.yml |
| 74 | name: filebeat-conf |
| 75 | - mountPath: /var/log/onap |
| 76 | name: aai-traversal-logs |
| 77 | - mountPath: /usr/share/filebeat/data |
| 78 | name: aai-traversal-filebeat |
Mandeep Khinda | fc06843 | 2017-08-30 14:24:02 +0000 | [diff] [blame] | 79 | volumes: |
yuryn | c400bf5 | 2017-09-13 19:21:03 +0300 | [diff] [blame] | 80 | - name: localtime |
| 81 | hostPath: |
| 82 | path: /etc/localtime |
Mandeep Khinda | fc06843 | 2017-08-30 14:24:02 +0000 | [diff] [blame] | 83 | - name: aai-data |
| 84 | hostPath: |
| 85 | path: "/dockerdata-nfs/{{ .Values.nsPrefix }}/aai/aai-data/" |
BorislavG | c4bafe1 | 2017-10-03 15:40:55 +0300 | [diff] [blame] | 86 | - name: filebeat-conf |
| 87 | hostPath: |
BorislavG | c14298f | 2017-12-17 16:33:34 +0200 | [diff] [blame] | 88 | path: /dockerdata-nfs/{{ .Values.nsPrefix }}/log/filebeat/logback/filebeat.yml |
BorislavG | c4bafe1 | 2017-10-03 15:40:55 +0300 | [diff] [blame] | 89 | - name: aai-traversal-logs |
| 90 | emptyDir: {} |
| 91 | - name: aai-traversal-filebeat |
| 92 | emptyDir: {} |
| 93 | - name: aai-traversal-log-conf |
| 94 | configMap: |
| 95 | name: aai-traversal-configmap |
Mandeep Khinda | fc06843 | 2017-08-30 14:24:02 +0000 | [diff] [blame] | 96 | restartPolicy: Always |
| 97 | imagePullSecrets: |
| 98 | - name: "{{ .Values.nsPrefix }}-docker-registry-key" |
BorislavG | c4bafe1 | 2017-10-03 15:40:55 +0300 | [diff] [blame] | 99 | --- |
| 100 | apiVersion: v1 |
| 101 | kind: ConfigMap |
| 102 | metadata: |
| 103 | name: aai-traversal-configmap |
| 104 | namespace: {{ .Values.nsPrefix }}-aai |
| 105 | data: |
| 106 | {{ (.Files.Glob "resources/traversal/conf/logback.xml").AsConfig | indent 2 }} |
kiranya | 6eea480 | 2017-11-22 12:21:55 +0000 | [diff] [blame] | 107 | #{{ end }} |