yuryn | fcef994 | 2017-10-26 17:10:50 +0300 | [diff] [blame] | 1 | #{{ if not .Values.disableMulticloudMulticloudVio }} |
liangke | c586180 | 2017-09-12 15:41:20 +0800 | [diff] [blame] | 2 | apiVersion: extensions/v1beta1 |
| 3 | kind: Deployment |
| 4 | metadata: |
| 5 | name: multicloud-vio |
BorislavG | 8bfc6cf | 2018-02-27 15:04:26 +0000 | [diff] [blame] | 6 | namespace: "{{ .Values.nsPrefix }}" |
liangke | c586180 | 2017-09-12 15:41:20 +0800 | [diff] [blame] | 7 | spec: |
| 8 | selector: |
| 9 | matchLabels: |
| 10 | app: multicloud-vio |
| 11 | template: |
| 12 | metadata: |
| 13 | labels: |
| 14 | app: multicloud-vio |
| 15 | name: multicloud-vio |
| 16 | spec: |
liangke | c586180 | 2017-09-12 15:41:20 +0800 | [diff] [blame] | 17 | containers: |
| 18 | - env: |
liangke | bc3d8e9 | 2017-09-20 10:22:46 +0800 | [diff] [blame] | 19 | - name: MSB_ADDR |
BorislavG | 8bfc6cf | 2018-02-27 15:04:26 +0000 | [diff] [blame] | 20 | value: "{{ tpl .Values.msbgateway . }}" |
liangke | bc3d8e9 | 2017-09-20 10:22:46 +0800 | [diff] [blame] | 21 | - name: MSB_PORT |
| 22 | value: "{{ .Values.msbPort }}" |
liangke | c586180 | 2017-09-12 15:41:20 +0800 | [diff] [blame] | 23 | - name: AAI_ADDR |
BorislavG | 8bfc6cf | 2018-02-27 15:04:26 +0000 | [diff] [blame] | 24 | value: aai-service.{{ .Values.nsPrefix }} |
liangke | c586180 | 2017-09-12 15:41:20 +0800 | [diff] [blame] | 25 | - name: AAI_PORT |
| 26 | value: "8443" |
| 27 | - name: AAI_SCHEMA_VERSION |
| 28 | value: "v11" |
| 29 | - name: AAI_USERNAME |
| 30 | value: "AAI" |
| 31 | - name: AAI_PASSWORD |
| 32 | value: "AAI" |
| 33 | name: multicloud-vio |
| 34 | volumeMounts: |
liangke | 2817f44 | 2018-01-30 18:39:25 +0800 | [diff] [blame^] | 35 | - mountPath: /var/log/onap |
liangke | c586180 | 2017-09-12 15:41:20 +0800 | [diff] [blame] | 36 | name: vio-log |
liangke | 2817f44 | 2018-01-30 18:39:25 +0800 | [diff] [blame^] | 37 | - mountPath: /opt/vio/vio/pub/config/log.yml |
| 38 | name: vio-logconfig |
| 39 | subPath: log.yml |
liangke | c586180 | 2017-09-12 15:41:20 +0800 | [diff] [blame] | 40 | image: {{ .Values.image.vio }} |
| 41 | imagePullPolicy: {{ .Values.pullPolicy }} |
| 42 | ports: |
| 43 | - containerPort: 9004 |
| 44 | livenessProbe: |
| 45 | httpGet: |
| 46 | path: /api/multicloud-vio/v0/swagger.json |
| 47 | port: 9004 |
| 48 | scheme: HTTP |
| 49 | initialDelaySeconds: 30 |
| 50 | periodSeconds: 10 |
| 51 | timeoutSeconds: 10 |
| 52 | successThreshold: 1 |
| 53 | failureThreshold: 5 |
liangke | 2817f44 | 2018-01-30 18:39:25 +0800 | [diff] [blame^] | 54 | - image: {{ .Values.image.filebeat }} |
| 55 | imagePullPolicy: {{ .Values.pullPolicy }} |
| 56 | name: filebeat-onap |
| 57 | volumeMounts: |
| 58 | - mountPath: /usr/share/filebeat/filebeat.yml |
| 59 | name: filebeat-conf |
| 60 | subPath: filebeat.yml |
| 61 | - mountPath: /var/log/onap |
| 62 | name: vio-log |
| 63 | - mountPath: /usr/share/filebeat/data |
| 64 | name: vio-data-filebeat |
liangke | c586180 | 2017-09-12 15:41:20 +0800 | [diff] [blame] | 65 | volumes: |
| 66 | - name: vio-log |
liangke | 2817f44 | 2018-01-30 18:39:25 +0800 | [diff] [blame^] | 67 | emptyDir: {} |
| 68 | - name: vio-data-filebeat |
| 69 | emptyDir: {} |
| 70 | - name: filebeat-conf |
| 71 | configMap: |
| 72 | name: multicloud-filebeat-configmap |
| 73 | - name: vio-logconfig |
| 74 | configMap: |
| 75 | name: multicloud-vio-log-configmap |
liangke | c586180 | 2017-09-12 15:41:20 +0800 | [diff] [blame] | 76 | imagePullSecrets: |
| 77 | - name: "{{ .Values.nsPrefix }}-docker-registry-key" |
liangke | 2817f44 | 2018-01-30 18:39:25 +0800 | [diff] [blame^] | 78 | restartPolicy: Always |
kerenj | f4a61d8 | 2018-02-25 14:29:41 +0000 | [diff] [blame] | 79 | #{{ end }} |