GuangrongFu | cc1316b | 2021-02-03 17:29:08 +0800 | [diff] [blame] | 1 | #============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 | ################################################################# |
| 21 | global: |
| 22 | nodePortPrefixExt: 302 |
Guangrong Fu | b4d9212 | 2022-03-03 20:48:16 +0800 | [diff] [blame^] | 23 | msbProtocol: https |
| 24 | msbServiceName: msb-iag |
| 25 | msbPort: 443 |
GuangrongFu | cc1316b | 2021-02-03 17:29:08 +0800 | [diff] [blame] | 26 | |
| 27 | ################################################################# |
| 28 | # Application configuration defaults. |
| 29 | ################################################################# |
| 30 | # application image |
Guangrong Fu | b4d9212 | 2022-03-03 20:48:16 +0800 | [diff] [blame^] | 31 | image: onap/holmes/rule-management:10.0.2 |
GuangrongFu | cc1316b | 2021-02-03 17:29:08 +0800 | [diff] [blame] | 32 | consulLoaderImage: onap/org.onap.dcaegen2.deployments.consul-loader-container:1.0.0 |
| 33 | |
| 34 | ################################################################# |
| 35 | # AAF part |
| 36 | ################################################################# |
| 37 | certInitializer: |
| 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 |
GuangrongFu | cc1316b | 2021-02-03 17:29:08 +0800 | [diff] [blame] | 61 | 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 | ################################################################# |
| 70 | secrets: |
| 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 |
| 78 | config: |
| 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 | |
| 94 | service: |
| 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 |
| 106 | liveness: |
| 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 | |
| 114 | readiness: |
| 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) |
| 122 | resources: |
| 123 | small: |
| 124 | limits: |
| 125 | cpu: 250m |
Guangrong Fu | b189f5f | 2022-01-24 15:07:08 +0800 | [diff] [blame] | 126 | memory: 1024Mi |
GuangrongFu | cc1316b | 2021-02-03 17:29:08 +0800 | [diff] [blame] | 127 | requests: |
| 128 | cpu: 250m |
Guangrong Fu | b189f5f | 2022-01-24 15:07:08 +0800 | [diff] [blame] | 129 | memory: 256Mi |
GuangrongFu | cc1316b | 2021-02-03 17:29:08 +0800 | [diff] [blame] | 130 | large: |
| 131 | limits: |
| 132 | cpu: 500m |
Guangrong Fu | b189f5f | 2022-01-24 15:07:08 +0800 | [diff] [blame] | 133 | memory: 2Gi |
GuangrongFu | cc1316b | 2021-02-03 17:29:08 +0800 | [diff] [blame] | 134 | requests: |
| 135 | cpu: 500m |
Guangrong Fu | b189f5f | 2022-01-24 15:07:08 +0800 | [diff] [blame] | 136 | memory: 512Mi |
GuangrongFu | cc1316b | 2021-02-03 17:29:08 +0800 | [diff] [blame] | 137 | unlimited: {} |
farida azmy | 1e05f29 | 2021-10-03 13:22:55 +0200 | [diff] [blame] | 138 | |
| 139 | #Pods Service Account |
| 140 | serviceAccount: |
| 141 | nameOverride: holmes-rule-mgmt |
| 142 | roles: |
| 143 | - read |