blob: 30413af245c1cc88bdb513acaceafedb817fd399 [file] [log] [blame]
yurynfcef9942017-10-26 17:10:50 +03001#{{ if not .Values.disableMulticloudMulticloudVio }}
liangkec5861802017-09-12 15:41:20 +08002apiVersion: extensions/v1beta1
3kind: Deployment
4metadata:
5 name: multicloud-vio
BorislavG8bfc6cf2018-02-27 15:04:26 +00006 namespace: "{{ .Values.nsPrefix }}"
liangkec5861802017-09-12 15:41:20 +08007spec:
8 selector:
9 matchLabels:
10 app: multicloud-vio
11 template:
12 metadata:
13 labels:
14 app: multicloud-vio
15 name: multicloud-vio
16 spec:
liangkec5861802017-09-12 15:41:20 +080017 containers:
18 - env:
liangkebc3d8e92017-09-20 10:22:46 +080019 - name: MSB_ADDR
BorislavG8bfc6cf2018-02-27 15:04:26 +000020 value: "{{ tpl .Values.msbgateway . }}"
liangkebc3d8e92017-09-20 10:22:46 +080021 - name: MSB_PORT
22 value: "{{ .Values.msbPort }}"
liangkec5861802017-09-12 15:41:20 +080023 - name: AAI_ADDR
BorislavG8bfc6cf2018-02-27 15:04:26 +000024 value: aai-service.{{ .Values.nsPrefix }}
liangkec5861802017-09-12 15:41:20 +080025 - 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:
liangke2817f442018-01-30 18:39:25 +080035 - mountPath: /var/log/onap
liangkec5861802017-09-12 15:41:20 +080036 name: vio-log
liangke2817f442018-01-30 18:39:25 +080037 - mountPath: /opt/vio/vio/pub/config/log.yml
38 name: vio-logconfig
39 subPath: log.yml
liangkec5861802017-09-12 15:41:20 +080040 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
liangke2817f442018-01-30 18:39:25 +080054 - 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
liangkec5861802017-09-12 15:41:20 +080065 volumes:
66 - name: vio-log
liangke2817f442018-01-30 18:39:25 +080067 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
liangkec5861802017-09-12 15:41:20 +080076 imagePullSecrets:
77 - name: "{{ .Values.nsPrefix }}-docker-registry-key"
liangke2817f442018-01-30 18:39:25 +080078 restartPolicy: Always
kerenjf4a61d82018-02-25 14:29:41 +000079#{{ end }}