blob: 94076194e0657a639e0ede392d5d0a44bd363c68 [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
Guangrong Fub4d92122022-03-03 20:48:16 +080023 msbProtocol: https
24 msbServiceName: msb-iag
25 msbPort: 443
GuangrongFucc1316b2021-02-03 17:29:08 +080026
27#################################################################
28# Application configuration defaults.
29#################################################################
30# application image
Guangrong Fub4d92122022-03-03 20:48:16 +080031image: onap/holmes/rule-management:10.0.2
GuangrongFucc1316b2021-02-03 17:29:08 +080032consulLoaderImage: onap/org.onap.dcaegen2.deployments.consul-loader-container:1.0.0
33
34#################################################################
35# AAF part
36#################################################################
37certInitializer:
38 nameOverride: holmes-rule-mgmt-cert-initializer
39 aafDeployFqi: deployer@people.osaaf.org
40 aafDeployPass: demo123456!
41 # aafDeployCredsExternalSecret: some secret
42 fqdn: holmes-rule-mgmt
43 fqi: holmes-rule-mgmt@holmes-rule-mgmt.onap.org
44 fqi_namespace: org.onap.holmes-rule-mgmt
45 public_fqdn: holmes-rule-mgmt.onap.org
46 cadi_longitude: "0.0"
47 cadi_latitude: "0.0"
48 app_ns: org.osaaf.aaf
49 credsPath: /opt/app/osaaf/local
50 aaf_add_config: |
51 echo "*** changing them into shell safe ones"
52 export KEYSTORE_PASSWORD=$(tr -cd '[:alnum:]' < /dev/urandom | fold -w64 | head -n1)
53 export TRUSTSORE_PASSWORD=$(tr -cd '[:alnum:]' < /dev/urandom | fold -w64 | head -n1)
54 cd {{ .Values.credsPath }}
55 keytool -storepasswd -new "${KEYSTORE_PASSWORD}" \
56 -storepass "${cadi_keystore_password_p12}" \
57 -keystore {{ .Values.fqi_namespace }}.p12
58 keytool -storepasswd -new "${TRUSTSORE_PASSWORD}" \
59 -storepass "${cadi_truststore_password}" \
60 -keystore {{ .Values.fqi_namespace }}.trust.jks
GuangrongFucc1316b2021-02-03 17:29:08 +080061 echo "*** save the generated passwords"
62 echo "KEYSTORE_PASSWORD=${KEYSTORE_PASSWORD}" > mycreds.prop
63 echo "TRUSTSORE_PASSWORD=${TRUSTSORE_PASSWORD}" >> mycreds.prop
64 echo "*** change ownership of certificates to targeted user"
65 chown -R 1000 .
66
67#################################################################
68# Secrets metaconfig
69#################################################################
70secrets:
71- uid: pg-user-creds
72 type: basicAuth
73 externalSecret: '{{ tpl (default "" .Values.config.pgConfig.dbUserCredsExternalSecret) . }}'
74 login: '{{ .Values.config.pgConfig.dbUser }}'
75 password: '{{ .Values.config.pgConfig.dbUserPassword }}'
76
77# application configuration
78config:
79 logstashServiceName: log-ls
80 logstashPort: 5044
81 # Addresses of other ONAP entities
82 address:
83 consul:
84 host: consul-server
85 port: 8500
86 pgConfig:
87 dbName: defaultName
88 dbHost: defaultHost
89 dbPort: 1234
90 dbUser: admin
91 dbUserPassword: admin
92 # dbUserCredsExternalSecret
93
94service:
95 type: NodePort
96 name: holmes-rule-mgmt
97 ports:
98 - name: https-rest
99 port: &svc_port 9101
100 nodePort: 92
101 - name: https-ui
102 port: 9104
103 nodePort: 93
104
105# probe configuration parameters
106liveness:
107 initialDelaySeconds: 10
108 port: *svc_port
109 periodSeconds: 10
110 path: /api/holmes-rule-mgmt/v1/healthcheck
111 enabled: true
112 scheme: HTTPS
113
114readiness:
115 initialDelaySeconds: 30
116 port: *svc_port
117 periodSeconds: 30
118 path: /api/holmes-rule-mgmt/v1/healthcheck
119 scheme: HTTPS
120
121# Segregation for Different environment (Small and Large)
122resources:
123 small:
124 limits:
125 cpu: 250m
Guangrong Fub189f5f2022-01-24 15:07:08 +0800126 memory: 1024Mi
GuangrongFucc1316b2021-02-03 17:29:08 +0800127 requests:
128 cpu: 250m
Guangrong Fub189f5f2022-01-24 15:07:08 +0800129 memory: 256Mi
GuangrongFucc1316b2021-02-03 17:29:08 +0800130 large:
131 limits:
132 cpu: 500m
Guangrong Fub189f5f2022-01-24 15:07:08 +0800133 memory: 2Gi
GuangrongFucc1316b2021-02-03 17:29:08 +0800134 requests:
135 cpu: 500m
Guangrong Fub189f5f2022-01-24 15:07:08 +0800136 memory: 512Mi
GuangrongFucc1316b2021-02-03 17:29:08 +0800137 unlimited: {}
farida azmy1e05f292021-10-03 13:22:55 +0200138
139#Pods Service Account
140serviceAccount:
141 nameOverride: holmes-rule-mgmt
142 roles:
143 - read