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