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