579f8a8cf3c22c7555c4b47c287807c0c0188fc7
[oom.git] / kubernetes / multicloud / templates / multicloud-vio-deployment.yaml
1 #{{ if not .Values.disableMulticloudMulticloudVio }}
2 apiVersion: extensions/v1beta1
3 kind: Deployment
4 metadata:
5   name: multicloud-vio
6   namespace: "{{ .Values.nsPrefix }}"
7 spec:
8   replicas: {{ .Values.vioReplicas }}
9   selector:
10     matchLabels:
11       app: multicloud-vio
12   template:
13     metadata:
14       labels:
15         app: multicloud-vio
16       name: multicloud-vio
17     spec:
18      containers:
19      - env:
20        - name: MSB_ADDR
21          value: "{{ tpl .Values.msbgateway . }}"
22        - name: MSB_PORT
23          value: "{{ .Values.msbPort }}"
24        - name: AAI_ADDR
25          value: aai-service.{{ .Values.nsPrefix }}
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:
36        - mountPath: /var/log/onap
37          name: vio-log
38        - mountPath: /opt/vio/vio/pub/config/log.yml
39          name: vio-logconfig
40          subPath: log.yml
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
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
66      volumes:
67      - name: vio-log
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
77      imagePullSecrets:
78      - name: "{{ .Values.nsPrefix }}-docker-registry-key"
79      restartPolicy: Always
80 #{{ end }}