blob: b9b130c90f87b0757763ede284ad61b8dcc243f7 [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:
liangkec5861802017-09-12 15:41:20 +080018 containers:
19 - env:
liangkebc3d8e92017-09-20 10:22:46 +080020 - name: MSB_ADDR
BorislavG8bfc6cf2018-02-27 15:04:26 +000021 value: {{ tpl .Values.msbgateway . }}
Mike Elliott3c7a68f2017-09-21 11:50:59 -040022 - name: MSB_PORT
liangkebc3d8e92017-09-20 10:22:46 +080023 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"
liangkec5861802017-09-12 15:41:20 +080034 image: {{ .Values.image.framework }}
35 imagePullPolicy: {{ .Values.pullPolicy }}
liangke2817f442018-01-30 18:39:25 +080036 name: framework
37 volumeMounts:
38 - mountPath: /var/log/onap
39 name: framework-log
40 - mountPath: /opt/multivimbroker/multivimbroker/pub/config/log.yml
41 name: framework-logconfig
42 subPath: log.yml
liangkec5861802017-09-12 15:41:20 +080043 ports:
44 - containerPort: 9001
45 livenessProbe:
46 httpGet:
47 path: /api/multicloud/v0/swagger.json
48 port: 9001
49 scheme: HTTP
50 initialDelaySeconds: 30
51 periodSeconds: 10
52 timeoutSeconds: 10
53 successThreshold: 1
54 failureThreshold: 5
liangke2817f442018-01-30 18:39:25 +080055 - image: {{ .Values.image.filebeat }}
56 imagePullPolicy: {{ .Values.pullPolicy }}
57 name: filebeat-onap
58 volumeMounts:
59 - mountPath: /usr/share/filebeat/filebeat.yml
60 name: filebeat-conf
61 subPath: filebeat.yml
62 - mountPath: /var/log/onap
63 name: framework-log
64 - mountPath: /usr/share/filebeat/data
65 name: framework-data-filebeat
liangkec5861802017-09-12 15:41:20 +080066 volumes:
67 - name: framework-log
liangke2817f442018-01-30 18:39:25 +080068 emptyDir: {}
69 - name: framework-data-filebeat
70 emptyDir: {}
71 - name: filebeat-conf
72 configMap:
73 name: multicloud-filebeat-configmap
74 - name: framework-logconfig
75 configMap:
76 name: multicloud-framework-log-configmap
liangkec5861802017-09-12 15:41:20 +080077 imagePullSecrets:
78 - name: "{{ .Values.nsPrefix }}-docker-registry-key"
liangke2817f442018-01-30 18:39:25 +080079 restartPolicy: Always
kerenjf4a61d82018-02-25 14:29:41 +000080#{{ end }}