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