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