blob: 579f8a8cf3c22c7555c4b47c287807c0c0188fc7 [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:
vaibhav_16dec65bb2de2018-02-16 07:46:32 +00008 replicas: {{ .Values.vioReplicas }}
liangkec5861802017-09-12 15:41:20 +08009 selector:
10 matchLabels:
11 app: multicloud-vio
12 template:
13 metadata:
14 labels:
15 app: multicloud-vio
16 name: multicloud-vio
17 spec:
liangkec5861802017-09-12 15:41:20 +080018 containers:
19 - env:
liangkebc3d8e92017-09-20 10:22:46 +080020 - name: MSB_ADDR
BorislavG8bfc6cf2018-02-27 15:04:26 +000021 value: "{{ tpl .Values.msbgateway . }}"
liangkebc3d8e92017-09-20 10:22:46 +080022 - name: MSB_PORT
23 value: "{{ .Values.msbPort }}"
liangkec5861802017-09-12 15:41:20 +080024 - name: AAI_ADDR
BorislavG8bfc6cf2018-02-27 15:04:26 +000025 value: aai-service.{{ .Values.nsPrefix }}
liangkec5861802017-09-12 15:41:20 +080026 - 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:
liangke2817f442018-01-30 18:39:25 +080036 - mountPath: /var/log/onap
liangkec5861802017-09-12 15:41:20 +080037 name: vio-log
liangke2817f442018-01-30 18:39:25 +080038 - mountPath: /opt/vio/vio/pub/config/log.yml
39 name: vio-logconfig
40 subPath: log.yml
liangkec5861802017-09-12 15:41:20 +080041 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
liangke2817f442018-01-30 18:39:25 +080055 - 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
liangkec5861802017-09-12 15:41:20 +080066 volumes:
67 - name: vio-log
liangke2817f442018-01-30 18:39:25 +080068 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
liangkec5861802017-09-12 15:41:20 +080077 imagePullSecrets:
78 - name: "{{ .Values.nsPrefix }}-docker-registry-key"
liangke2817f442018-01-30 18:39:25 +080079 restartPolicy: Always
kerenjf4a61d82018-02-25 14:29:41 +000080#{{ end }}