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 |
mayankg2703 | 2eb57a2 | 2018-02-05 09:01:02 +0000 | [diff] [blame] | 55 | - mountPath: /var/chef/aai-data/chef-config/dev/.knife/solo.rb |
| 56 | subPath: solo.rb |
| 57 | name: aai-chef-config |
| 58 | - mountPath: /var/chef/aai-data/environments/ |
Mandeep Khinda | fc06843 | 2017-08-30 14:24:02 +0000 | [diff] [blame] | 59 | name: aai-data |
BorislavG | c4bafe1 | 2017-10-03 15:40:55 +0300 | [diff] [blame] | 60 | - mountPath: /var/log/onap |
| 61 | name: aai-traversal-logs |
| 62 | - mountPath: /opt/app/aai-traversal/bundleconfig/etc/logback.xml |
| 63 | name: aai-traversal-log-conf |
| 64 | subPath: logback.xml |
Mandeep Khinda | fc06843 | 2017-08-30 14:24:02 +0000 | [diff] [blame] | 65 | ports: |
| 66 | - containerPort: 8446 |
| 67 | readinessProbe: |
| 68 | tcpSocket: |
| 69 | port: 8446 |
| 70 | initialDelaySeconds: 5 |
| 71 | periodSeconds: 10 |
BorislavG | c4bafe1 | 2017-10-03 15:40:55 +0300 | [diff] [blame] | 72 | - name: filebeat-onap-aai-traversal |
| 73 | image: {{ .Values.image.filebeat }} |
| 74 | imagePullPolicy: {{ .Values.pullPolicy }} |
| 75 | volumeMounts: |
| 76 | - mountPath: /usr/share/filebeat/filebeat.yml |
mayankg2703 | 2eb57a2 | 2018-02-05 09:01:02 +0000 | [diff] [blame] | 77 | subPath: filebeat.yml |
BorislavG | c4bafe1 | 2017-10-03 15:40:55 +0300 | [diff] [blame] | 78 | name: filebeat-conf |
| 79 | - mountPath: /var/log/onap |
| 80 | name: aai-traversal-logs |
| 81 | - mountPath: /usr/share/filebeat/data |
| 82 | name: aai-traversal-filebeat |
Mandeep Khinda | fc06843 | 2017-08-30 14:24:02 +0000 | [diff] [blame] | 83 | volumes: |
yuryn | c400bf5 | 2017-09-13 19:21:03 +0300 | [diff] [blame] | 84 | - name: localtime |
| 85 | hostPath: |
| 86 | path: /etc/localtime |
mayankg2703 | 2eb57a2 | 2018-02-05 09:01:02 +0000 | [diff] [blame] | 87 | - name: aai-chef-config |
| 88 | configMap: |
| 89 | name: aai-chef-config-configmap |
Mandeep Khinda | fc06843 | 2017-08-30 14:24:02 +0000 | [diff] [blame] | 90 | - name: aai-data |
mayankg2703 | 2eb57a2 | 2018-02-05 09:01:02 +0000 | [diff] [blame] | 91 | configMap: |
| 92 | name: aai-resources-environments-configmap |
BorislavG | c4bafe1 | 2017-10-03 15:40:55 +0300 | [diff] [blame] | 93 | - name: filebeat-conf |
mayankg2703 | 2eb57a2 | 2018-02-05 09:01:02 +0000 | [diff] [blame] | 94 | configMap: |
| 95 | name: aai-filebeat-configmap |
BorislavG | c4bafe1 | 2017-10-03 15:40:55 +0300 | [diff] [blame] | 96 | - name: aai-traversal-logs |
| 97 | emptyDir: {} |
| 98 | - name: aai-traversal-filebeat |
| 99 | emptyDir: {} |
| 100 | - name: aai-traversal-log-conf |
| 101 | configMap: |
| 102 | name: aai-traversal-configmap |
Mandeep Khinda | fc06843 | 2017-08-30 14:24:02 +0000 | [diff] [blame] | 103 | restartPolicy: Always |
| 104 | imagePullSecrets: |
| 105 | - name: "{{ .Values.nsPrefix }}-docker-registry-key" |
BorislavG | c4bafe1 | 2017-10-03 15:40:55 +0300 | [diff] [blame] | 106 | --- |
| 107 | apiVersion: v1 |
| 108 | kind: ConfigMap |
| 109 | metadata: |
| 110 | name: aai-traversal-configmap |
| 111 | namespace: {{ .Values.nsPrefix }}-aai |
| 112 | data: |
| 113 | {{ (.Files.Glob "resources/traversal/conf/logback.xml").AsConfig | indent 2 }} |
kiranya | 6eea480 | 2017-11-22 12:21:55 +0000 | [diff] [blame] | 114 | #{{ end }} |