blob: 9f122f0fd221db9d832a263b0b27fa179b648a54 [file] [log] [blame]
liangkec5861802017-09-12 15:41:20 +08001apiVersion: extensions/v1beta1
2kind: Deployment
3metadata:
4 name: framework
5 namespace: "{{ .Values.nsPrefix }}-multicloud"
6spec:
7 selector:
8 matchLabels:
9 app: framework
10 template:
11 metadata:
12 labels:
13 app: framework
14 name: framework
15 spec:
16 hostname: framework
17 containers:
18 - env:
liangkebc3d8e92017-09-20 10:22:46 +080019 - name: MSB_ADDR
Mike Elliott3c7a68f2017-09-21 11:50:59 -040020 value: {{ .Values.msbgateway }}
21 - name: MSB_PORT
liangkebc3d8e92017-09-20 10:22:46 +080022 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: framework
34 volumeMounts:
35 - mountPath: /service/multivimbroker/logs
36 name: framework-log
37 image: {{ .Values.image.framework }}
38 imagePullPolicy: {{ .Values.pullPolicy }}
39 ports:
40 - containerPort: 9001
41 livenessProbe:
42 httpGet:
43 path: /api/multicloud/v0/swagger.json
44 port: 9001
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: framework-log
54 hostPath:
55 path: /dockerdata-nfs/{{ .Values.nsPrefix }}/multicloud/framework/logs
56 imagePullSecrets:
57 - name: "{{ .Values.nsPrefix }}-docker-registry-key"