[CONSUL] Add limits to consul chart.
[oom.git] / kubernetes / so / components / so-monitoring / values.yaml
1 #  ============LICENSE_START=======================================================
2 #   Copyright (C) 2018 Ericsson. All rights reserved.
3 #   Copyright (C) 2020 Huawei
4 #  ================================================================================
5 #  Licensed under the Apache License, Version 2.0 (the "License");
6 #  you may not use this file except in compliance with the License.
7 #  You may obtain a copy of the License at
8 #
9 #       http://www.apache.org/licenses/LICENSE-2.0
10 #
11 #  Unless required by applicable law or agreed to in writing, software
12 #  distributed under the License is distributed on an "AS IS" BASIS,
13 #  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 #  See the License for the specific language governing permissions and
15 #  limitations under the License.
16 #
17 #  SPDX-License-Identifier: Apache-2.0
18 #  ============LICENSE_END=========================================================
19 #  @author: gareth.roper@ericsson.com
20 #################################################################
21 # Global configuration defaults.
22 #################################################################
23 global:
24   nodePortPrefix: 302
25   nodePortPrefixExt: 304
26   repository: nexus3.onap.org:10001
27   readinessImage: onap/oom/readiness:3.0.1
28   aafAgentImage: onap/aaf/aaf_agent:2.1.20
29   envsubstImage: dibi/envsubst
30   persistence:
31     mountPath: /dockerdata-nfs
32
33 #################################################################
34 # Secrets metaconfig
35 #################################################################
36 secrets:
37   - uid: db-user-creds
38     type: basicAuth
39     externalSecret: '{{ tpl (default "" .Values.db.userCredsExternalSecret) . }}'
40     login: '{{ .Values.db.userName }}'
41     password: '{{ .Values.db.userPassword }}'
42     passwordPolicy: required
43   - uid: db-admin-creds
44     type: basicAuth
45     externalSecret: '{{ tpl (default "" .Values.db.adminCredsExternalSecret) . }}'
46     login: '{{ .Values.db.adminName }}'
47     password: '{{ .Values.db.adminPassword }}'
48     passwordPolicy: required
49
50 #secretsFilePaths: |
51 #  - 'my file 1'
52 #  - '{{ include "templateThatGeneratesFileName" . }}'
53
54 #################################################################
55 # AAF part
56 #################################################################
57 soHelpers:
58   nameOverride: so-monitoring-cert-init
59   certInitializer:
60     nameOverride: so-monitoring-cert-init
61     credsPath: /opt/app/osaaf/local
62
63 #################################################################
64 # Application configuration defaults.
65 #################################################################
66 repository: nexus3.onap.org:10001
67 image: onap/so/so-monitoring:1.6.4
68 pullPolicy: Always
69
70 db:
71   userName: so_user
72   userPassword: so_User123
73   # userCredsExternalSecret: some secret
74   adminName: so_admin
75   adminPassword: so_Admin123
76   # adminCredsExternalSecret: some secret
77
78 replicaCount: 1
79 minReadySeconds: 10
80 containerPort: 9091
81 logPath: app/logs/
82 app: so-monitoring
83 service:
84 #Since this is a feature for monitoring the service type is changed to internal, users can change it to NodePort on need basis...
85     type: ClusterIP
86     nodePort: 24
87     internalPort: 9091
88     externalPort: 9091
89     portName: so-monitor-port
90 updateStrategy:
91     type: RollingUpdate
92     maxUnavailable: 1
93     maxSurge: 1
94 # Resource Limit flavor -By Default using small
95 flavor: small
96 #Segregation for different environment (Small or large)
97 resources:
98     small:
99         requests:
100             memory: 1Gi
101             cpu: 10m
102         limits:
103             memory: 4Gi
104             cpu: 1
105     large:
106         requests:
107             memory: 2Gi
108             cpu: 20m
109         limits:
110             memory: 8Gi
111             cpu: 2
112 readinessProbe:
113     port: 9091
114     initialDelaySeconds: 20
115     periodSeconds: 10
116     timeoutSeconds: 10
117 livenessProbe:
118     port: 9091
119     initialDelaySeconds: 40
120     periodSeconds: 10
121     timeoutSeconds: 10
122     successThreshold: 1
123     failureThreshold: 3
124 ingress:
125     enabled: false
126     service:
127         - baseaddr: "somonitoring"
128           name: "so-monitoring"
129           port: 9091
130     config:
131         ssl: "none"
132 nodeSelector: {}
133 tolerations: []
134 affinity: {}