yuryn | 5d0587b | 2017-10-26 17:10:50 +0300 | [diff] [blame] | 1 | #{{ if not .Values.disableAaiAaiResources }} |
Mandeep Khinda | fc06843 | 2017-08-30 14:24:02 +0000 | [diff] [blame] | 2 | apiVersion: extensions/v1beta1 |
| 3 | kind: Deployment |
| 4 | metadata: |
| 5 | name: aai-resources |
| 6 | namespace: "{{ .Values.nsPrefix }}-aai" |
| 7 | spec: |
| 8 | selector: |
| 9 | matchLabels: |
| 10 | app: aai-resources |
| 11 | template: |
| 12 | metadata: |
| 13 | labels: |
| 14 | app: aai-resources |
| 15 | name: aai-resources |
| 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 | env: |
| 24 | - name: NAMESPACE |
| 25 | valueFrom: |
| 26 | fieldRef: |
| 27 | apiVersion: v1 |
| 28 | fieldPath: metadata.namespace |
| 29 | image: {{ .Values.image.readiness }} |
| 30 | imagePullPolicy: {{ .Values.pullPolicy }} |
| 31 | name: aai-resources-readiness |
Mandeep Khinda | fc06843 | 2017-08-30 14:24:02 +0000 | [diff] [blame] | 32 | containers: |
| 33 | - name: aai-resources |
| 34 | image: "{{ .Values.image.aaiResourcesImage }}:{{ .Values.image.aaiResourcesVersion}}" |
| 35 | imagePullPolicy: {{ .Values.pullPolicy }} |
| 36 | env: |
| 37 | - name: CHEF_BRANCH |
| 38 | value: master |
| 39 | - name: AAI_CHEF_ENV |
| 40 | value: simpledemo |
| 41 | - name: AAI_CORE_VERSION |
| 42 | value: 1.1.0-SNAPSHOT |
| 43 | - name: AAI_CHEF_LOC |
| 44 | value: /var/chef/aai-data/environments |
| 45 | - name: CHEF_GIT_URL |
| 46 | value: http://gerrit.onap.org/r/aai |
Venkata Harish K Kajur | 3078f1e | 2017-10-04 05:06:35 +0000 | [diff] [blame] | 47 | - name: HBASE_STARTUP_ARTIFICIAL_DELAY |
| 48 | value: "60" |
Mandeep Khinda | fc06843 | 2017-08-30 14:24:02 +0000 | [diff] [blame] | 49 | volumeMounts: |
yuryn | c400bf5 | 2017-09-13 19:21:03 +0300 | [diff] [blame] | 50 | - mountPath: /etc/localtime |
| 51 | name: localtime |
| 52 | readOnly: true |
mayankg2703 | 2eb57a2 | 2018-02-05 09:01:02 +0000 | [diff] [blame^] | 53 | - mountPath: /var/chef/aai-data/chef-config/dev/.knife/solo.rb |
| 54 | subPath: solo.rb |
| 55 | name: aai-chef-config |
| 56 | - mountPath: /var/chef/aai-data/environments/ |
Mandeep Khinda | fc06843 | 2017-08-30 14:24:02 +0000 | [diff] [blame] | 57 | name: aai-data |
BorislavG | c4bafe1 | 2017-10-03 15:40:55 +0300 | [diff] [blame] | 58 | - mountPath: /var/log/onap |
| 59 | name: aai-resources-logs |
| 60 | - mountPath: /opt/app/aai-resources/bundleconfig/etc/logback.xml |
| 61 | name: aai-resources-log-conf |
| 62 | subPath: logback.xml |
Mandeep Khinda | fc06843 | 2017-08-30 14:24:02 +0000 | [diff] [blame] | 63 | ports: |
| 64 | - containerPort: 8447 |
| 65 | readinessProbe: |
| 66 | tcpSocket: |
| 67 | port: 8447 |
| 68 | initialDelaySeconds: 5 |
| 69 | periodSeconds: 10 |
BorislavG | c4bafe1 | 2017-10-03 15:40:55 +0300 | [diff] [blame] | 70 | - name: filebeat-onap-aai-resources |
| 71 | image: {{ .Values.image.filebeat }} |
| 72 | imagePullPolicy: {{ .Values.pullPolicy }} |
| 73 | volumeMounts: |
| 74 | - mountPath: /usr/share/filebeat/filebeat.yml |
mayankg2703 | 2eb57a2 | 2018-02-05 09:01:02 +0000 | [diff] [blame^] | 75 | subPath: filebeat.yml |
BorislavG | c4bafe1 | 2017-10-03 15:40:55 +0300 | [diff] [blame] | 76 | name: filebeat-conf |
| 77 | - mountPath: /var/log/onap |
| 78 | name: aai-resources-logs |
| 79 | - mountPath: /usr/share/filebeat/data |
| 80 | name: aai-resources-filebeat |
Mandeep Khinda | fc06843 | 2017-08-30 14:24:02 +0000 | [diff] [blame] | 81 | volumes: |
yuryn | c400bf5 | 2017-09-13 19:21:03 +0300 | [diff] [blame] | 82 | - name: localtime |
| 83 | hostPath: |
| 84 | path: /etc/localtime |
mayankg2703 | 2eb57a2 | 2018-02-05 09:01:02 +0000 | [diff] [blame^] | 85 | - name: aai-chef-config |
| 86 | configMap: |
| 87 | name: aai-chef-config-configmap |
Mandeep Khinda | fc06843 | 2017-08-30 14:24:02 +0000 | [diff] [blame] | 88 | - name: aai-data |
mayankg2703 | 2eb57a2 | 2018-02-05 09:01:02 +0000 | [diff] [blame^] | 89 | configMap: |
| 90 | name: aai-resources-environments-configmap |
BorislavG | c4bafe1 | 2017-10-03 15:40:55 +0300 | [diff] [blame] | 91 | - name: filebeat-conf |
mayankg2703 | 2eb57a2 | 2018-02-05 09:01:02 +0000 | [diff] [blame^] | 92 | configMap: |
| 93 | name: aai-filebeat-configmap |
BorislavG | c4bafe1 | 2017-10-03 15:40:55 +0300 | [diff] [blame] | 94 | - name: aai-resources-logs |
| 95 | emptyDir: {} |
| 96 | - name: aai-resources-filebeat |
| 97 | emptyDir: {} |
| 98 | - name: aai-resources-log-conf |
| 99 | configMap: |
| 100 | name: aai-resources-configmap |
Mandeep Khinda | fc06843 | 2017-08-30 14:24:02 +0000 | [diff] [blame] | 101 | restartPolicy: Always |
| 102 | imagePullSecrets: |
| 103 | - name: "{{ .Values.nsPrefix }}-docker-registry-key" |
BorislavG | c4bafe1 | 2017-10-03 15:40:55 +0300 | [diff] [blame] | 104 | --- |
| 105 | apiVersion: v1 |
| 106 | kind: ConfigMap |
| 107 | metadata: |
| 108 | name: aai-resources-configmap |
| 109 | namespace: {{ .Values.nsPrefix }}-aai |
| 110 | data: |
| 111 | {{ (.Files.Glob "resources/resources/conf/logback.xml").AsConfig | indent 2 }} |
kiranya | 6eea480 | 2017-11-22 12:21:55 +0000 | [diff] [blame] | 112 | #{{ end }} |