blob: 232009565281f42c73d95b3d597e4fdeb2c272b2 [file] [log] [blame]
GuangrongFucc1316b2021-02-03 17:29:08 +08001#============LICENSE_START========================================================
2# ================================================================================
3# Copyright (c) 2021 ZTE Corporation Intellectual Property. All rights reserved.
Andreas Geissler54f3d172023-03-13 13:02:44 +01004# Modifications 2023 Deutsche Telekom
GuangrongFucc1316b2021-02-03 17:29:08 +08005# ================================================================================
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# ============LICENSE_END=========================================================
18
19#################################################################
20# Global configuration.
21#################################################################
22global:
23 nodePortPrefixExt: 302
Andreas Geissler4a5c1bd2023-03-01 11:23:32 +010024 msbProtocol: http
Guangrong Fub4d92122022-03-03 20:48:16 +080025 msbServiceName: msb-iag
Andreas Geissler4a5c1bd2023-03-01 11:23:32 +010026 msbPort: 80
27 postgres:
28 localCluster: false
GuangrongFucc1316b2021-02-03 17:29:08 +080029
30#################################################################
31# Application configuration defaults.
32#################################################################
33# application image
Guangrong Fu0bbe5b02022-09-15 19:52:40 +080034image: onap/holmes/rule-management:11.0.0
GuangrongFucc1316b2021-02-03 17:29:08 +080035consulLoaderImage: onap/org.onap.dcaegen2.deployments.consul-loader-container:1.0.0
36
37#################################################################
GuangrongFucc1316b2021-02-03 17:29:08 +080038# Secrets metaconfig
39#################################################################
40secrets:
41- uid: pg-user-creds
42 type: basicAuth
43 externalSecret: '{{ tpl (default "" .Values.config.pgConfig.dbUserCredsExternalSecret) . }}'
44 login: '{{ .Values.config.pgConfig.dbUser }}'
45 password: '{{ .Values.config.pgConfig.dbUserPassword }}'
46
47# application configuration
48config:
49 logstashServiceName: log-ls
50 logstashPort: 5044
51 # Addresses of other ONAP entities
52 address:
53 consul:
54 host: consul-server
55 port: 8500
56 pgConfig:
57 dbName: defaultName
58 dbHost: defaultHost
59 dbPort: 1234
60 dbUser: admin
61 dbUserPassword: admin
62 # dbUserCredsExternalSecret
63
64service:
65 type: NodePort
66 name: holmes-rule-mgmt
67 ports:
Andreas Geissler4a5c1bd2023-03-01 11:23:32 +010068 - name: http-rest
GuangrongFucc1316b2021-02-03 17:29:08 +080069 port: &svc_port 9101
70 nodePort: 92
Andreas Geissler4a5c1bd2023-03-01 11:23:32 +010071 - name: http-ui
GuangrongFucc1316b2021-02-03 17:29:08 +080072 port: 9104
73 nodePort: 93
74
Andreas Geissler54f3d172023-03-13 13:02:44 +010075ingress:
76 enabled: false
77 service:
78 - baseaddr: 'holmes-api'
79 name: 'holmes-rule-mgmt'
80 port: 9101
81 - baseaddr: 'holmes-ui'
82 name: 'holmes-rule-mgmt'
83 port: 9104
84
GuangrongFucc1316b2021-02-03 17:29:08 +080085# probe configuration parameters
86liveness:
87 initialDelaySeconds: 10
88 port: *svc_port
89 periodSeconds: 10
90 path: /api/holmes-rule-mgmt/v1/healthcheck
91 enabled: true
Andreas Geissler4a5c1bd2023-03-01 11:23:32 +010092 scheme: HTTP
GuangrongFucc1316b2021-02-03 17:29:08 +080093
94readiness:
95 initialDelaySeconds: 30
96 port: *svc_port
97 periodSeconds: 30
98 path: /api/holmes-rule-mgmt/v1/healthcheck
Andreas Geissler4a5c1bd2023-03-01 11:23:32 +010099 scheme: HTTP
GuangrongFucc1316b2021-02-03 17:29:08 +0800100
101# Segregation for Different environment (Small and Large)
102resources:
103 small:
104 limits:
105 cpu: 250m
Guangrong Fub189f5f2022-01-24 15:07:08 +0800106 memory: 1024Mi
GuangrongFucc1316b2021-02-03 17:29:08 +0800107 requests:
108 cpu: 250m
Guangrong Fub189f5f2022-01-24 15:07:08 +0800109 memory: 256Mi
GuangrongFucc1316b2021-02-03 17:29:08 +0800110 large:
111 limits:
112 cpu: 500m
Guangrong Fub189f5f2022-01-24 15:07:08 +0800113 memory: 2Gi
GuangrongFucc1316b2021-02-03 17:29:08 +0800114 requests:
115 cpu: 500m
Guangrong Fub189f5f2022-01-24 15:07:08 +0800116 memory: 512Mi
GuangrongFucc1316b2021-02-03 17:29:08 +0800117 unlimited: {}
farida azmy1e05f292021-10-03 13:22:55 +0200118
Andreas Geissler4a5c1bd2023-03-01 11:23:32 +0100119readinessCheck:
120 wait_for:
121 jobs:
122 - '{{ include "common.release" . }}-holmes-postgres-init-config-job'
123
farida azmy1e05f292021-10-03 13:22:55 +0200124#Pods Service Account
125serviceAccount:
126 nameOverride: holmes-rule-mgmt
127 roles:
128 - read