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 |
BorislavG | 72c169d | 2018-02-27 15:04:26 +0000 | [diff] [blame^] | 6 | namespace: "{{ .Values.nsPrefix }}" |
Mandeep Khinda | fc06843 | 2017-08-30 14:24:02 +0000 | [diff] [blame] | 7 | spec: |
vaibhav_16dec | 07019bc | 2018-02-14 05:32:10 +0000 | [diff] [blame] | 8 | replicas: {{ .Values.aaiTraversalReplicas }} |
Mandeep Khinda | fc06843 | 2017-08-30 14:24:02 +0000 | [diff] [blame] | 9 | selector: |
| 10 | matchLabels: |
| 11 | app: aai-traversal |
| 12 | template: |
| 13 | metadata: |
| 14 | labels: |
| 15 | app: aai-traversal |
| 16 | name: aai-traversal |
| 17 | spec: |
kiranya | 6eea480 | 2017-11-22 12:21:55 +0000 | [diff] [blame] | 18 | initContainers: |
| 19 | - command: |
| 20 | - /root/ready.py |
| 21 | args: |
| 22 | - --container-name |
| 23 | - hbase |
| 24 | - --container-name |
| 25 | - aai-resources |
| 26 | env: |
| 27 | - name: NAMESPACE |
| 28 | valueFrom: |
| 29 | fieldRef: |
| 30 | apiVersion: v1 |
| 31 | fieldPath: metadata.namespace |
| 32 | image: {{ .Values.image.readiness }} |
| 33 | imagePullPolicy: {{ .Values.pullPolicy }} |
| 34 | name: aai-traversal-readiness |
Mandeep Khinda | fc06843 | 2017-08-30 14:24:02 +0000 | [diff] [blame] | 35 | containers: |
| 36 | - name: aai-traversal |
| 37 | image: "{{ .Values.image.aaiTraversalImage }}:{{ .Values.image.aaiTraversalVersion }}" |
| 38 | imagePullPolicy: {{ .Values.pullPolicy }} |
| 39 | env: |
| 40 | - name: CHEF_BRANCH |
| 41 | value: master |
| 42 | - name: AAI_CHEF_ENV |
| 43 | value: simpledemo |
| 44 | - name: AAI_CORE_VERSION |
| 45 | value: 1.1.0-SNAPSHOT |
| 46 | - name: AAI_CHEF_LOC |
| 47 | value: /var/chef/aai-data/environments |
| 48 | - name: CHEF_GIT_URL |
| 49 | value: http://gerrit.onap.org/r/aai |
Mike Elliott | 47e76d0 | 2017-09-22 11:31:54 -0400 | [diff] [blame] | 50 | - name: RESOURCES_HOSTNAME |
BorislavG | 72c169d | 2018-02-27 15:04:26 +0000 | [diff] [blame^] | 51 | value: aai-resources.{{ .Values.nsPrefix }} |
Mandeep Khinda | fc06843 | 2017-08-30 14:24:02 +0000 | [diff] [blame] | 52 | volumeMounts: |
yuryn | c400bf5 | 2017-09-13 19:21:03 +0300 | [diff] [blame] | 53 | - mountPath: /etc/localtime |
| 54 | name: localtime |
| 55 | readOnly: true |
mayankg2703 | 2eb57a2 | 2018-02-05 09:01:02 +0000 | [diff] [blame] | 56 | - mountPath: /var/chef/aai-data/chef-config/dev/.knife/solo.rb |
| 57 | subPath: solo.rb |
| 58 | name: aai-chef-config |
| 59 | - mountPath: /var/chef/aai-data/environments/ |
Mandeep Khinda | fc06843 | 2017-08-30 14:24:02 +0000 | [diff] [blame] | 60 | name: aai-data |
BorislavG | c4bafe1 | 2017-10-03 15:40:55 +0300 | [diff] [blame] | 61 | - mountPath: /var/log/onap |
| 62 | name: aai-traversal-logs |
| 63 | - mountPath: /opt/app/aai-traversal/bundleconfig/etc/logback.xml |
| 64 | name: aai-traversal-log-conf |
| 65 | subPath: logback.xml |
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 |
BorislavG | c4bafe1 | 2017-10-03 15:40:55 +0300 | [diff] [blame] | 73 | - name: filebeat-onap-aai-traversal |
| 74 | image: {{ .Values.image.filebeat }} |
| 75 | imagePullPolicy: {{ .Values.pullPolicy }} |
| 76 | volumeMounts: |
| 77 | - mountPath: /usr/share/filebeat/filebeat.yml |
mayankg2703 | 2eb57a2 | 2018-02-05 09:01:02 +0000 | [diff] [blame] | 78 | subPath: filebeat.yml |
BorislavG | c4bafe1 | 2017-10-03 15:40:55 +0300 | [diff] [blame] | 79 | name: filebeat-conf |
| 80 | - mountPath: /var/log/onap |
| 81 | name: aai-traversal-logs |
| 82 | - mountPath: /usr/share/filebeat/data |
| 83 | name: aai-traversal-filebeat |
Mandeep Khinda | fc06843 | 2017-08-30 14:24:02 +0000 | [diff] [blame] | 84 | volumes: |
yuryn | c400bf5 | 2017-09-13 19:21:03 +0300 | [diff] [blame] | 85 | - name: localtime |
| 86 | hostPath: |
| 87 | path: /etc/localtime |
mayankg2703 | 2eb57a2 | 2018-02-05 09:01:02 +0000 | [diff] [blame] | 88 | - name: aai-chef-config |
| 89 | configMap: |
| 90 | name: aai-chef-config-configmap |
Mandeep Khinda | fc06843 | 2017-08-30 14:24:02 +0000 | [diff] [blame] | 91 | - name: aai-data |
mayankg2703 | 2eb57a2 | 2018-02-05 09:01:02 +0000 | [diff] [blame] | 92 | configMap: |
| 93 | name: aai-resources-environments-configmap |
BorislavG | c4bafe1 | 2017-10-03 15:40:55 +0300 | [diff] [blame] | 94 | - name: filebeat-conf |
mayankg2703 | 2eb57a2 | 2018-02-05 09:01:02 +0000 | [diff] [blame] | 95 | configMap: |
| 96 | name: aai-filebeat-configmap |
BorislavG | c4bafe1 | 2017-10-03 15:40:55 +0300 | [diff] [blame] | 97 | - name: aai-traversal-logs |
| 98 | emptyDir: {} |
| 99 | - name: aai-traversal-filebeat |
| 100 | emptyDir: {} |
| 101 | - name: aai-traversal-log-conf |
| 102 | configMap: |
mayankg2703 | ab42e77 | 2018-02-07 05:48:29 +0000 | [diff] [blame] | 103 | name: aai-traversal-log-configmap |
Mandeep Khinda | fc06843 | 2017-08-30 14:24:02 +0000 | [diff] [blame] | 104 | restartPolicy: Always |
| 105 | imagePullSecrets: |
| 106 | - name: "{{ .Values.nsPrefix }}-docker-registry-key" |
kiranya | 6eea480 | 2017-11-22 12:21:55 +0000 | [diff] [blame] | 107 | #{{ end }} |