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 defaults. |
| 20 | ################################################################# |
| 21 | global: |
| 22 | nodePortPrefixExt: 302 |
Andreas Geissler | 4a5c1bd | 2023-03-01 11:23:32 +0100 | [diff] [blame] | 23 | msbProtocol: http |
Guangrong Fu | b4d9212 | 2022-03-03 20:48:16 +0800 | [diff] [blame] | 24 | msbServiceName: msb-iag |
Andreas Geissler | 4a5c1bd | 2023-03-01 11:23:32 +0100 | [diff] [blame] | 25 | msbPort: 80 |
| 26 | postgres: |
| 27 | localCluster: false |
GuangrongFu | cc1316b | 2021-02-03 17:29:08 +0800 | [diff] [blame] | 28 | |
| 29 | ################################################################# |
| 30 | # Application configuration defaults. |
| 31 | ################################################################# |
| 32 | # application image |
Guangrong Fu | 2d51104 | 2023-03-15 11:09:49 +0800 | [diff] [blame] | 33 | image: onap/holmes/engine-management:12.0.1 |
GuangrongFu | cc1316b | 2021-02-03 17:29:08 +0800 | [diff] [blame] | 34 | consulLoaderImage: onap/org.onap.dcaegen2.deployments.consul-loader-container:1.0.0 |
| 35 | |
| 36 | ################################################################# |
GuangrongFu | cc1316b | 2021-02-03 17:29:08 +0800 | [diff] [blame] | 37 | # Secrets metaconfig |
| 38 | ################################################################# |
| 39 | secrets: |
| 40 | - uid: pg-user-creds |
| 41 | type: basicAuth |
| 42 | externalSecret: '{{ tpl (default "" .Values.config.pgConfig.dbUserCredsExternalSecret) . }}' |
| 43 | login: '{{ .Values.config.pgConfig.dbUser }}' |
| 44 | password: '{{ .Values.config.pgConfig.dbUserPassword }}' |
| 45 | |
| 46 | # application configuration |
| 47 | config: |
| 48 | logstashServiceName: log-ls |
| 49 | logstashPort: 5044 |
| 50 | # Addresses of other ONAP entities |
| 51 | address: |
| 52 | consul: |
| 53 | host: consul-server |
| 54 | port: 8500 |
| 55 | pgConfig: |
| 56 | dbName: defaultName |
| 57 | dbHost: defaultHost |
| 58 | dbPort: 1234 |
| 59 | dbUser: admin |
| 60 | dbUserPassword: admin |
| 61 | # dbUserCredsExternalSecret |
Guangrong Fu | 2d51104 | 2023-03-15 11:09:49 +0800 | [diff] [blame] | 62 | msb: |
| 63 | serviceName: msb-iag |
| 64 | port: 80 |
| 65 | aai: |
| 66 | aaiPort: 80 |
| 67 | username: AAI |
| 68 | password: AAI |
GuangrongFu | cc1316b | 2021-02-03 17:29:08 +0800 | [diff] [blame] | 69 | |
| 70 | service: |
| 71 | type: ClusterIP |
| 72 | name: holmes-engine-mgmt |
| 73 | ports: |
Andreas Geissler | 4a5c1bd | 2023-03-01 11:23:32 +0100 | [diff] [blame] | 74 | - name: http-rest |
GuangrongFu | cc1316b | 2021-02-03 17:29:08 +0800 | [diff] [blame] | 75 | port: &svc_port 9102 |
Guangrong Fu | 2d51104 | 2023-03-15 11:09:49 +0800 | [diff] [blame] | 76 | annotations: |
| 77 | msb.onap.org/service-info: | |
| 78 | {{ if .Values.global.msbEnabled -}}[ |
| 79 | { |
| 80 | "serviceName": "holmes-engine-mgmt", |
| 81 | "version": "v1", |
| 82 | "url": "/api/holmes-engine-mgmt/v1", |
| 83 | "path":"/api/holmes-engine-mgmt/v1", |
| 84 | "protocol": "REST", |
| 85 | "visualRange":"0|1", |
| 86 | "port": "9102", |
| 87 | "enable_ssl": false |
| 88 | } |
| 89 | ]{{ end }} |
GuangrongFu | cc1316b | 2021-02-03 17:29:08 +0800 | [diff] [blame] | 90 | |
| 91 | # probe configuration parameters |
| 92 | liveness: |
| 93 | initialDelaySeconds: 10 |
| 94 | periodSeconds: 10 |
| 95 | path: /api/holmes-engine-mgmt/v1/healthcheck |
Andreas Geissler | 4a5c1bd | 2023-03-01 11:23:32 +0100 | [diff] [blame] | 96 | scheme: HTTP |
GuangrongFu | cc1316b | 2021-02-03 17:29:08 +0800 | [diff] [blame] | 97 | port: *svc_port |
| 98 | enabled: true |
| 99 | |
| 100 | readiness: |
| 101 | initialDelaySeconds: 30 |
| 102 | periodSeconds: 30 |
| 103 | path: /api/holmes-engine-mgmt/v1/healthcheck |
Andreas Geissler | 4a5c1bd | 2023-03-01 11:23:32 +0100 | [diff] [blame] | 104 | scheme: HTTP |
GuangrongFu | cc1316b | 2021-02-03 17:29:08 +0800 | [diff] [blame] | 105 | port: *svc_port |
| 106 | |
| 107 | # Segregation for Different environment (Small and Large) |
| 108 | resources: |
| 109 | small: |
| 110 | limits: |
Andreas Geissler | bb28a94 | 2023-06-15 14:34:34 +0200 | [diff] [blame] | 111 | cpu: 1 |
GuangrongFu | cc1316b | 2021-02-03 17:29:08 +0800 | [diff] [blame] | 112 | memory: 2Gi |
| 113 | requests: |
Andreas Geissler | bb28a94 | 2023-06-15 14:34:34 +0200 | [diff] [blame] | 114 | cpu: 0.5 |
| 115 | memory: 1Gi |
| 116 | large: |
| 117 | limits: |
| 118 | cpu: 1 |
| 119 | memory: 2Gi |
| 120 | requests: |
| 121 | cpu: 1 |
GuangrongFu | cc1316b | 2021-02-03 17:29:08 +0800 | [diff] [blame] | 122 | memory: 1Gi |
| 123 | unlimited: {} |
farida azmy | 1e05f29 | 2021-10-03 13:22:55 +0200 | [diff] [blame] | 124 | |
Andreas Geissler | 4a5c1bd | 2023-03-01 11:23:32 +0100 | [diff] [blame] | 125 | readinessCheck: |
Andreas Geissler | f51bbef | 2023-03-31 12:07:23 +0200 | [diff] [blame] | 126 | wait_for_global: |
Andreas Geissler | 4a5c1bd | 2023-03-01 11:23:32 +0100 | [diff] [blame] | 127 | jobs: |
| 128 | - '{{ include "common.release" . }}-holmes-postgres-init-config-job' |
Andreas Geissler | f51bbef | 2023-03-31 12:07:23 +0200 | [diff] [blame] | 129 | wait_for_local: |
| 130 | - '{{ .Values.global.postgres.container.name }}' |
Andreas Geissler | 4a5c1bd | 2023-03-01 11:23:32 +0100 | [diff] [blame] | 131 | |
farida azmy | 1e05f29 | 2021-10-03 13:22:55 +0200 | [diff] [blame] | 132 | #Pods Service Account |
| 133 | serviceAccount: |
| 134 | nameOverride: holmes-engine-mgmt |
| 135 | roles: |
| 136 | - read |