blob: 5da4f6303e7814a4522ca52bc344b05018bcd75a [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:
19 - name: AAI_ADDR
20 value: aai-service.{{ .Values.nsPrefix }}-aai
21 - name: AAI_PORT
22 value: "8443"
23 - name: AAI_SCHEMA_VERSION
24 value: "v11"
25 - name: AAI_USERNAME
26 value: "AAI"
27 - name: AAI_PASSWORD
28 value: "AAI"
29 name: multicloud-vio
30 volumeMounts:
31 - mountPath: /service/vio/logs
32 name: vio-log
33 image: {{ .Values.image.vio }}
34 imagePullPolicy: {{ .Values.pullPolicy }}
35 ports:
36 - containerPort: 9004
37 livenessProbe:
38 httpGet:
39 path: /api/multicloud-vio/v0/swagger.json
40 port: 9004
41 scheme: HTTP
42 initialDelaySeconds: 30
43 periodSeconds: 10
44 timeoutSeconds: 10
45 successThreshold: 1
46 failureThreshold: 5
47 restartPolicy: Always
48 volumes:
49 - name: vio-log
50 hostPath:
51 path: /dockerdata-nfs/{{ .Values.nsPrefix }}/multicloud/vio/logs
52 imagePullSecrets:
53 - name: "{{ .Values.nsPrefix }}-docker-registry-key"
54
55