blob: 4f96fbf45787a3c8d5c33f16b1bcb838a29857f5 [file] [log] [blame]
yurynfcef9942017-10-26 17:10:50 +03001#{{ if not .Values.disableMulticloudFramework }}
liangkec5861802017-09-12 15:41:20 +08002apiVersion: extensions/v1beta1
3kind: Deployment
4metadata:
BorislavG8bfc6cf2018-02-27 15:04:26 +00005 name: multicloud-framework
6 namespace: "{{ .Values.nsPrefix }}"
liangkec5861802017-09-12 15:41:20 +08007spec:
vaibhav_16dec65bb2de2018-02-16 07:46:32 +00008 replicas: {{ .Values.frameworkReplicas }}
liangkec5861802017-09-12 15:41:20 +08009 selector:
10 matchLabels:
11 app: framework
12 template:
13 metadata:
14 labels:
15 app: framework
BorislavG8bfc6cf2018-02-27 15:04:26 +000016 name: multicloud-framework
liangkec5861802017-09-12 15:41:20 +080017 spec:
18 hostname: framework
19 containers:
20 - env:
liangkebc3d8e92017-09-20 10:22:46 +080021 - name: MSB_ADDR
BorislavG8bfc6cf2018-02-27 15:04:26 +000022 value: {{ tpl .Values.msbgateway . }}
Mike Elliott3c7a68f2017-09-21 11:50:59 -040023 - name: MSB_PORT
liangkebc3d8e92017-09-20 10:22:46 +080024 value: "{{ .Values.msbPort }}"
liangkec5861802017-09-12 15:41:20 +080025 - name: AAI_ADDR
BorislavG8bfc6cf2018-02-27 15:04:26 +000026 value: aai-service.{{ .Values.nsPrefix }}
liangkec5861802017-09-12 15:41:20 +080027 - name: AAI_PORT
28 value: "8443"
29 - name: AAI_SCHEMA_VERSION
30 value: "v11"
31 - name: AAI_USERNAME
32 value: "AAI"
33 - name: AAI_PASSWORD
34 value: "AAI"
35 name: framework
36 volumeMounts:
37 - mountPath: /service/multivimbroker/logs
38 name: framework-log
39 image: {{ .Values.image.framework }}
40 imagePullPolicy: {{ .Values.pullPolicy }}
41 ports:
42 - containerPort: 9001
43 livenessProbe:
44 httpGet:
45 path: /api/multicloud/v0/swagger.json
46 port: 9001
47 scheme: HTTP
48 initialDelaySeconds: 30
49 periodSeconds: 10
50 timeoutSeconds: 10
51 successThreshold: 1
52 failureThreshold: 5
53 restartPolicy: Always
54 volumes:
55 - name: framework-log
56 hostPath:
kerenjf4a61d82018-02-25 14:29:41 +000057 path: {{ .Values.dataRootDir }}/{{ .Values.nsPrefix }}/multicloud/framework/logs
liangkec5861802017-09-12 15:41:20 +080058 imagePullSecrets:
59 - name: "{{ .Values.nsPrefix }}-docker-registry-key"
kerenjf4a61d82018-02-25 14:29:41 +000060#{{ end }}