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. |
Andreas Geissler | 54f3d17 | 2023-03-13 13:02:44 +0100 | [diff] [blame] | 4 | # Modifications 2023 Deutsche Telekom |
GuangrongFu | cc1316b | 2021-02-03 17:29:08 +0800 | [diff] [blame] | 5 | # ================================================================================ |
| 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 | ################################################################# |
| 22 | global: |
| 23 | nodePortPrefixExt: 302 |
Andreas Geissler | 4a5c1bd | 2023-03-01 11:23:32 +0100 | [diff] [blame] | 24 | msbProtocol: http |
Guangrong Fu | b4d9212 | 2022-03-03 20:48:16 +0800 | [diff] [blame] | 25 | msbServiceName: msb-iag |
Andreas Geissler | 4a5c1bd | 2023-03-01 11:23:32 +0100 | [diff] [blame] | 26 | msbPort: 80 |
| 27 | postgres: |
| 28 | localCluster: false |
GuangrongFu | cc1316b | 2021-02-03 17:29:08 +0800 | [diff] [blame] | 29 | |
| 30 | ################################################################# |
| 31 | # Application configuration defaults. |
| 32 | ################################################################# |
| 33 | # application image |
Guangrong Fu | 2d51104 | 2023-03-15 11:09:49 +0800 | [diff] [blame] | 34 | image: onap/holmes/rule-management:12.0.0 |
GuangrongFu | cc1316b | 2021-02-03 17:29:08 +0800 | [diff] [blame] | 35 | consulLoaderImage: onap/org.onap.dcaegen2.deployments.consul-loader-container:1.0.0 |
| 36 | |
| 37 | ################################################################# |
GuangrongFu | cc1316b | 2021-02-03 17:29:08 +0800 | [diff] [blame] | 38 | # Secrets metaconfig |
| 39 | ################################################################# |
| 40 | secrets: |
| 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 |
| 48 | config: |
| 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 | |
| 64 | service: |
| 65 | type: NodePort |
| 66 | name: holmes-rule-mgmt |
| 67 | ports: |
Andreas Geissler | 4a5c1bd | 2023-03-01 11:23:32 +0100 | [diff] [blame] | 68 | - name: http-rest |
GuangrongFu | cc1316b | 2021-02-03 17:29:08 +0800 | [diff] [blame] | 69 | port: &svc_port 9101 |
| 70 | nodePort: 92 |
Andreas Geissler | 4a5c1bd | 2023-03-01 11:23:32 +0100 | [diff] [blame] | 71 | - name: http-ui |
Andreas Geissler | c8ef023 | 2024-01-04 17:44:13 +0100 | [diff] [blame] | 72 | port: &ui_port 9104 |
GuangrongFu | cc1316b | 2021-02-03 17:29:08 +0800 | [diff] [blame] | 73 | nodePort: 93 |
Guangrong Fu | 2d51104 | 2023-03-15 11:09:49 +0800 | [diff] [blame] | 74 | annotations: |
| 75 | msb.onap.org/service-info: | |
| 76 | {{ if .Values.global.msbEnabled -}}[ |
| 77 | { |
| 78 | "serviceName": "holmes-rule-mgmt", |
| 79 | "version": "v1", |
| 80 | "url": "/api/holmes-rule-mgmt/v1", |
| 81 | "path":"/api/holmes-rule-mgmt/v1", |
| 82 | "protocol": "REST", |
| 83 | "visualRange":"0|1", |
| 84 | "port": "9101", |
| 85 | "enable_ssl": false |
| 86 | } |
| 87 | ]{{ end }} |
GuangrongFu | cc1316b | 2021-02-03 17:29:08 +0800 | [diff] [blame] | 88 | |
Andreas Geissler | 54f3d17 | 2023-03-13 13:02:44 +0100 | [diff] [blame] | 89 | ingress: |
| 90 | enabled: false |
| 91 | service: |
Guangrong Fu | 2d51104 | 2023-03-15 11:09:49 +0800 | [diff] [blame] | 92 | - baseaddr: "holmes-rule-mgmt" |
| 93 | name: "holmes-rule-mgmt" |
| 94 | path: "/api/holmes-rule-mgmt/v1" |
Andreas Geissler | c8ef023 | 2024-01-04 17:44:13 +0100 | [diff] [blame] | 95 | port: *svc_port |
Guangrong Fu | 2d51104 | 2023-03-15 11:09:49 +0800 | [diff] [blame] | 96 | - baseaddr: "holmes-rule-mgmt-ui" |
Andreas Geissler | 783047e | 2023-04-12 14:53:57 +0200 | [diff] [blame] | 97 | name: "holmes-rule-mgmt" |
Guangrong Fu | 2d51104 | 2023-03-15 11:09:49 +0800 | [diff] [blame] | 98 | path: "/iui/holmes" |
Andreas Geissler | c8ef023 | 2024-01-04 17:44:13 +0100 | [diff] [blame] | 99 | port: *ui_port |
Guangrong Fu | 2d51104 | 2023-03-15 11:09:49 +0800 | [diff] [blame] | 100 | config: |
| 101 | ssl: "redirect" |
Andreas Geissler | 54f3d17 | 2023-03-13 13:02:44 +0100 | [diff] [blame] | 102 | |
GuangrongFu | cc1316b | 2021-02-03 17:29:08 +0800 | [diff] [blame] | 103 | # probe configuration parameters |
| 104 | liveness: |
| 105 | initialDelaySeconds: 10 |
| 106 | port: *svc_port |
| 107 | periodSeconds: 10 |
| 108 | path: /api/holmes-rule-mgmt/v1/healthcheck |
| 109 | enabled: true |
Andreas Geissler | 4a5c1bd | 2023-03-01 11:23:32 +0100 | [diff] [blame] | 110 | scheme: HTTP |
GuangrongFu | cc1316b | 2021-02-03 17:29:08 +0800 | [diff] [blame] | 111 | |
| 112 | readiness: |
| 113 | initialDelaySeconds: 30 |
| 114 | port: *svc_port |
| 115 | periodSeconds: 30 |
| 116 | path: /api/holmes-rule-mgmt/v1/healthcheck |
Andreas Geissler | 4a5c1bd | 2023-03-01 11:23:32 +0100 | [diff] [blame] | 117 | scheme: HTTP |
GuangrongFu | cc1316b | 2021-02-03 17:29:08 +0800 | [diff] [blame] | 118 | |
| 119 | # Segregation for Different environment (Small and Large) |
| 120 | resources: |
| 121 | small: |
| 122 | limits: |
Andreas Geissler | 4753743 | 2024-02-27 08:55:23 +0100 | [diff] [blame] | 123 | cpu: "1" |
| 124 | memory: "1Gi" |
GuangrongFu | cc1316b | 2021-02-03 17:29:08 +0800 | [diff] [blame] | 125 | requests: |
Andreas Geissler | 4753743 | 2024-02-27 08:55:23 +0100 | [diff] [blame] | 126 | cpu: "0.5" |
| 127 | memory: "1Gi" |
GuangrongFu | cc1316b | 2021-02-03 17:29:08 +0800 | [diff] [blame] | 128 | large: |
| 129 | limits: |
Andreas Geissler | 4753743 | 2024-02-27 08:55:23 +0100 | [diff] [blame] | 130 | cpu: "2" |
| 131 | memory: "2Gi" |
GuangrongFu | cc1316b | 2021-02-03 17:29:08 +0800 | [diff] [blame] | 132 | requests: |
Andreas Geissler | 4753743 | 2024-02-27 08:55:23 +0100 | [diff] [blame] | 133 | cpu: "1" |
| 134 | memory: "1Gi" |
GuangrongFu | cc1316b | 2021-02-03 17:29:08 +0800 | [diff] [blame] | 135 | unlimited: {} |
farida azmy | 1e05f29 | 2021-10-03 13:22:55 +0200 | [diff] [blame] | 136 | |
Andreas Geissler | 4a5c1bd | 2023-03-01 11:23:32 +0100 | [diff] [blame] | 137 | readinessCheck: |
Andreas Geissler | f51bbef | 2023-03-31 12:07:23 +0200 | [diff] [blame] | 138 | wait_for_global: |
Andreas Geissler | 4a5c1bd | 2023-03-01 11:23:32 +0100 | [diff] [blame] | 139 | jobs: |
| 140 | - '{{ include "common.release" . }}-holmes-postgres-init-config-job' |
Andreas Geissler | f51bbef | 2023-03-31 12:07:23 +0200 | [diff] [blame] | 141 | wait_for_local: |
Andreas Geissler | ee11910 | 2024-04-11 13:53:39 +0200 | [diff] [blame] | 142 | services: |
| 143 | - '{{ .Values.global.postgres.service.name2 }}' |
Andreas Geissler | 4a5c1bd | 2023-03-01 11:23:32 +0100 | [diff] [blame] | 144 | |
farida azmy | 1e05f29 | 2021-10-03 13:22:55 +0200 | [diff] [blame] | 145 | #Pods Service Account |
| 146 | serviceAccount: |
| 147 | nameOverride: holmes-rule-mgmt |
| 148 | roles: |
| 149 | - read |