blob: df995420519aa2b038df9f7e1edf707d7307920f [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:
17 hostname: multicloud-vio
18 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:
36 - mountPath: /service/vio/logs
37 name: vio-log
38 image: {{ .Values.image.vio }}
39 imagePullPolicy: {{ .Values.pullPolicy }}
40 ports:
41 - containerPort: 9004
42 livenessProbe:
43 httpGet:
44 path: /api/multicloud-vio/v0/swagger.json
45 port: 9004
46 scheme: HTTP
47 initialDelaySeconds: 30
48 periodSeconds: 10
49 timeoutSeconds: 10
50 successThreshold: 1
51 failureThreshold: 5
52 restartPolicy: Always
53 volumes:
54 - name: vio-log
55 hostPath:
kerenjf4a61d82018-02-25 14:29:41 +000056 path: {{ .Values.dataRootDir }}/{{ .Values.nsPrefix }}/multicloud/vio/logs
liangkec5861802017-09-12 15:41:20 +080057 imagePullSecrets:
58 - name: "{{ .Values.nsPrefix }}-docker-registry-key"
kerenjf4a61d82018-02-25 14:29:41 +000059#{{ end }}