[COMMON] Harmonize resource settings
[oom.git] / kubernetes / multicloud / components / multicloud-k8s / values.yaml
1 # Copyright 2019 Intel Corporation, Inc
2 #
3 # Licensed under the Apache License, Version 2.0 (the "License");
4 # you may not use this file except in compliance with the License.
5 # You may obtain a copy of the License at
6 #
7 #       http://www.apache.org/licenses/LICENSE-2.0
8 #
9 # Unless required by applicable law or agreed to in writing, software
10 # distributed under the License is distributed on an "AS IS" BASIS,
11 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 # See the License for the specific language governing permissions and
13 # limitations under the License.
14
15 #################################################################
16 # Global configuration defaults.
17 #################################################################
18 global:
19   nodePortPrefixExt: 304
20   persistence: {}
21   artifactImage: onap/multicloud/framework-artifactbroker:1.9.0
22
23 #################################################################
24 # Application configuration defaults.
25 #################################################################
26 # application image
27 image: onap/multicloud/k8s:0.10.1
28 pullPolicy: Always
29
30 # Strimzi KafkaUser config
31 kafkaUser:
32   acls:
33     - name: multicloud
34       type: group
35       operations: [Read]
36     - name: SDC-DISTR
37       type: topic
38       patternType: prefix
39       operations: [Read, Write]
40
41 # flag to enable debugging - application support required
42 debugEnabled: false
43
44 # application configuration is via config files
45
46 # default number of instances
47 replicaCount: 1
48
49 nodeSelector: {}
50
51 affinity: {}
52
53 # probe configuration parameters
54 liveness:
55   initialDelaySeconds: 10
56   periodSeconds: 30
57   # necessary to disable liveness probe when setting breakpoints
58   # in debugger so K8s doesn't restart unresponsive container
59   enabled: true
60
61 readiness:
62   initialDelaySeconds: 10
63   periodSeconds: 30
64
65 service:
66   type: NodePort
67   internalPort: 9015
68   ports:
69     - name: http
70       port: 9015
71       nodePort: '98'
72       useNodePortExt: true
73   annotations:
74     msb.onap.org/service-info: |
75       {{ if .Values.global.msbEnabled -}}[
76         {
77           "serviceName": "multicloud-k8s",
78           "version": "v1",
79           "url": "/",
80           "protocol": "REST",
81           "port": "{{ .Values.service.internalPort }}",
82           "enable_ssl": false,
83           "visualRange": "1"
84         }
85       ]{{ end }}
86
87 ingress:
88   enabled: false
89   service:
90     - baseaddr: 'multicloud-k8s-api'
91       name: 'multicloud-k8s'
92       port: 9015
93
94 #Mongo chart overrides for k8splugin
95 mongo:
96   nameOverride: multicloud-k8s-mongo
97   service:
98     name: multicloud-k8s-mongo
99     internalPort: 27017
100   nfsprovisionerPrefix: multicloud-k8s
101   sdnctlPrefix: multicloud-k8s
102   persistence:
103     mountSubPath: multicloud-k8s/mongo/data
104     enabled: true
105   disableNfsProvisioner: true
106   flavor: &storage_flavor large
107   resources: &storage_resources
108     small:
109       limits:
110         cpu: "100m"
111         memory: "0.3Gi"
112       requests:
113         cpu: "10m"
114         memory: "0.07Gi"
115     large:
116       limits:
117         cpu: "200m"
118         memory: "1Gi"
119       requests:
120         cpu: "50m"
121         memory: "0.3Gi"
122     unlimited: {}
123
124 #etcd chart overrides for k8splugin
125 etcd:
126   nameOverride: multicloud-k8s-etcd
127   service:
128     name: multicloud-k8s-etcd
129     clientPortName: tcp-etcd-client
130     peerPortName: tcp-etcd-server
131   persistence:
132     mountSubPath: multicloud-k8s/etcd/data
133     enabled: true
134   flavor: *storage_flavor
135   resources: *storage_resources
136
137 # No persistence right now as we rely on Mongo to handle that
138 persistence:
139   enabled: false
140   volumeReclaimPolicy: Retain
141   accessMode: ReadWriteOnce
142   size: 1Gi
143   mountPath: /dockerdata-nfs
144   mountSubPath: multicloud-k8s/data
145
146 artifactbroker:
147   internalPort: 9014
148
149 # Configure resource requests and limits
150 flavor: large
151 resources:
152   small:
153     limits:
154       cpu: "200m"
155       memory: "0.5Gi"
156     requests:
157       cpu: "10m"
158       memory: "0.01Gi"
159   large:
160     limits:
161       cpu: "400m"
162       memory: "1Gi"
163     requests:
164       cpu: "10m"
165       memory: "0.1Gi"
166   unlimited: {}
167
168 #Pods Service Account
169 serviceAccount:
170   nameOverride: multicloud-k8s
171   roles:
172     - read