blob: ce3035e5dad3a893c77eaffb640e20081f33bdbf [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 defaults.
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 Fu0bbe5b02022-09-15 19:52:40 +080031image: onap/holmes/engine-management:11.0.0
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-engine-mgmt-cert-initializer
39 aafDeployFqi: deployer@people.osaaf.org
40 aafDeployPass: demo123456!
41 # aafDeployCredsExternalSecret: some secret
42 fqdn: holmes-engine-mgmt
43 fqi: holmes-engine-mgmt@holmes-engine-mgmt.onap.org
44 fqi_namespace: org.onap.holmes-engine-mgmt
45 public_fqdn: holmes-engine-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: ClusterIP
96 name: holmes-engine-mgmt
97 ports:
98 - name: https-rest
99 port: &svc_port 9102
100
101# probe configuration parameters
102liveness:
103 initialDelaySeconds: 10
104 periodSeconds: 10
105 path: /api/holmes-engine-mgmt/v1/healthcheck
106 scheme: HTTPS
107 port: *svc_port
108 enabled: true
109
110readiness:
111 initialDelaySeconds: 30
112 periodSeconds: 30
113 path: /api/holmes-engine-mgmt/v1/healthcheck
114 scheme: HTTPS
115 port: *svc_port
116
117# Segregation for Different environment (Small and Large)
118resources:
119 small:
120 limits:
121 cpu: 500m
122 memory: 1Gi
123 requests:
124 cpu: 250m
125 memory: 500Mi
126 large:
127 limits:
128 cpu: 500m
129 memory: 2Gi
130 requests:
131 cpu: 250m
132 memory: 1Gi
133 unlimited: {}
farida azmy1e05f292021-10-03 13:22:55 +0200134
135#Pods Service Account
136serviceAccount:
137 nameOverride: holmes-engine-mgmt
138 roles:
139 - read