blob: 0a2552719fb58611273fc895711e0ebaaac1f875 [file] [log] [blame]
GuangrongFucc1316b2021-02-03 17:29:08 +08001#============LICENSE_START========================================================
2# ================================================================================
3# Copyright (c) 2021 ZTE Corporation Intellectual Property. All rights reserved.
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# ============LICENSE_END=========================================================
17
18#################################################################
19# Global configuration.
20#################################################################
21global:
22 nodePortPrefixExt: 302
Andreas Geissler4a5c1bd2023-03-01 11:23:32 +010023 msbProtocol: http
Guangrong Fub4d92122022-03-03 20:48:16 +080024 msbServiceName: msb-iag
Andreas Geissler4a5c1bd2023-03-01 11:23:32 +010025 msbPort: 80
26 postgres:
27 localCluster: false
GuangrongFucc1316b2021-02-03 17:29:08 +080028
29#################################################################
30# Application configuration defaults.
31#################################################################
32# application image
Guangrong Fu0bbe5b02022-09-15 19:52:40 +080033image: onap/holmes/rule-management:11.0.0
GuangrongFucc1316b2021-02-03 17:29:08 +080034consulLoaderImage: onap/org.onap.dcaegen2.deployments.consul-loader-container:1.0.0
35
36#################################################################
GuangrongFucc1316b2021-02-03 17:29:08 +080037# Secrets metaconfig
38#################################################################
39secrets:
40- uid: pg-user-creds
41 type: basicAuth
42 externalSecret: '{{ tpl (default "" .Values.config.pgConfig.dbUserCredsExternalSecret) . }}'
43 login: '{{ .Values.config.pgConfig.dbUser }}'
44 password: '{{ .Values.config.pgConfig.dbUserPassword }}'
45
46# application configuration
47config:
48 logstashServiceName: log-ls
49 logstashPort: 5044
50 # Addresses of other ONAP entities
51 address:
52 consul:
53 host: consul-server
54 port: 8500
55 pgConfig:
56 dbName: defaultName
57 dbHost: defaultHost
58 dbPort: 1234
59 dbUser: admin
60 dbUserPassword: admin
61 # dbUserCredsExternalSecret
62
63service:
64 type: NodePort
65 name: holmes-rule-mgmt
66 ports:
Andreas Geissler4a5c1bd2023-03-01 11:23:32 +010067 - name: http-rest
GuangrongFucc1316b2021-02-03 17:29:08 +080068 port: &svc_port 9101
69 nodePort: 92
Andreas Geissler4a5c1bd2023-03-01 11:23:32 +010070 - name: http-ui
GuangrongFucc1316b2021-02-03 17:29:08 +080071 port: 9104
72 nodePort: 93
73
74# probe configuration parameters
75liveness:
76 initialDelaySeconds: 10
77 port: *svc_port
78 periodSeconds: 10
79 path: /api/holmes-rule-mgmt/v1/healthcheck
80 enabled: true
Andreas Geissler4a5c1bd2023-03-01 11:23:32 +010081 scheme: HTTP
GuangrongFucc1316b2021-02-03 17:29:08 +080082
83readiness:
84 initialDelaySeconds: 30
85 port: *svc_port
86 periodSeconds: 30
87 path: /api/holmes-rule-mgmt/v1/healthcheck
Andreas Geissler4a5c1bd2023-03-01 11:23:32 +010088 scheme: HTTP
GuangrongFucc1316b2021-02-03 17:29:08 +080089
90# Segregation for Different environment (Small and Large)
91resources:
92 small:
93 limits:
94 cpu: 250m
Guangrong Fub189f5f2022-01-24 15:07:08 +080095 memory: 1024Mi
GuangrongFucc1316b2021-02-03 17:29:08 +080096 requests:
97 cpu: 250m
Guangrong Fub189f5f2022-01-24 15:07:08 +080098 memory: 256Mi
GuangrongFucc1316b2021-02-03 17:29:08 +080099 large:
100 limits:
101 cpu: 500m
Guangrong Fub189f5f2022-01-24 15:07:08 +0800102 memory: 2Gi
GuangrongFucc1316b2021-02-03 17:29:08 +0800103 requests:
104 cpu: 500m
Guangrong Fub189f5f2022-01-24 15:07:08 +0800105 memory: 512Mi
GuangrongFucc1316b2021-02-03 17:29:08 +0800106 unlimited: {}
farida azmy1e05f292021-10-03 13:22:55 +0200107
Andreas Geissler4a5c1bd2023-03-01 11:23:32 +0100108readinessCheck:
109 wait_for:
110 jobs:
111 - '{{ include "common.release" . }}-holmes-postgres-init-config-job'
112
farida azmy1e05f292021-10-03 13:22:55 +0200113#Pods Service Account
114serviceAccount:
115 nameOverride: holmes-rule-mgmt
116 roles:
117 - read