blob: 85a43a10dbda968e0a26e0a6e82c810f2790071d [file] [log] [blame]
liangkec5861802017-09-12 15:41:20 +08001apiVersion: extensions/v1beta1
2kind: Deployment
3metadata:
4 name: multicloud-vio
5 namespace: "{{ .Values.nsPrefix }}-multicloud"
6spec:
7 selector:
8 matchLabels:
9 app: multicloud-vio
10 template:
11 metadata:
12 labels:
13 app: multicloud-vio
14 name: multicloud-vio
15 spec:
16 hostname: multicloud-vio
17 containers:
18 - env:
liangkebc3d8e92017-09-20 10:22:46 +080019 - name: MSB_ADDR
20 value: "{{ .Values.msbgateway }}"
21 - name: MSB_PORT
22 value: "{{ .Values.msbPort }}"
liangkec5861802017-09-12 15:41:20 +080023 - name: AAI_ADDR
24 value: aai-service.{{ .Values.nsPrefix }}-aai
25 - 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:
35 - mountPath: /service/vio/logs
36 name: vio-log
37 image: {{ .Values.image.vio }}
38 imagePullPolicy: {{ .Values.pullPolicy }}
39 ports:
40 - containerPort: 9004
41 livenessProbe:
42 httpGet:
43 path: /api/multicloud-vio/v0/swagger.json
44 port: 9004
45 scheme: HTTP
46 initialDelaySeconds: 30
47 periodSeconds: 10
48 timeoutSeconds: 10
49 successThreshold: 1
50 failureThreshold: 5
51 restartPolicy: Always
52 volumes:
53 - name: vio-log
54 hostPath:
55 path: /dockerdata-nfs/{{ .Values.nsPrefix }}/multicloud/vio/logs
56 imagePullSecrets:
57 - name: "{{ .Values.nsPrefix }}-docker-registry-key"
58
59