shivasubedi | c615a89 | 2021-08-24 13:17:07 +0100 | [diff] [blame] | 1 | # ============LICENSE_START======================================================= |
| 2 | # Copyright (C) 2021 Nordix Foundation |
| 3 | # ================================================================================ |
| 4 | # Licensed under the Apache License, Version 2.0 (the "License"); |
| 5 | # you may not use this file except in compliance with the License. |
| 6 | # You may obtain a copy of the License at |
| 7 | # |
| 8 | # http://www.apache.org/licenses/LICENSE-2.0 |
| 9 | # |
| 10 | # Unless required by applicable law or agreed to in writing, software |
| 11 | # distributed under the License is distributed on an "AS IS" BASIS, |
| 12 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 13 | # See the License for the specific language governing permissions and |
| 14 | # limitations under the License. |
| 15 | # |
| 16 | # SPDX-License-Identifier: Apache-2.0 |
| 17 | # ============LICENSE_END========================================================= |
| 18 | |
| 19 | ################################################################# |
| 20 | # Secrets. |
| 21 | ################################################################# |
| 22 | secrets: |
Renu Kumari | bcacd77 | 2021-09-16 15:36:23 -0400 | [diff] [blame] | 23 | - uid: app-user-creds |
shivasubedi | c615a89 | 2021-08-24 13:17:07 +0100 | [diff] [blame] | 24 | type: basicAuth |
| 25 | externalSecret: '{{ tpl (default "" .Values.config.appUserExternalSecret) . }}' |
| 26 | login: '{{ .Values.config.appUserName }}' |
| 27 | password: '{{ .Values.config.appUserPassword }}' |
| 28 | passwordPolicy: generate |
| 29 | - uid: sdnc-creds |
| 30 | type: basicAuth |
| 31 | externalSecret: '{{ tpl (default "" .Values.config.odlCredsExternalSecret) . }}' |
Renu Kumari | bcacd77 | 2021-09-16 15:36:23 -0400 | [diff] [blame] | 32 | login: '{{ .Values.config.sdnc.username }}' |
| 33 | password: '{{ .Values.config.sdnc.password }}' |
shivasubedi | c615a89 | 2021-08-24 13:17:07 +0100 | [diff] [blame] | 34 | passwordPolicy: required |
Renu Kumari | bcacd77 | 2021-09-16 15:36:23 -0400 | [diff] [blame] | 35 | - uid: cps-core-creds |
shivasubedi | c615a89 | 2021-08-24 13:17:07 +0100 | [diff] [blame] | 36 | type: basicAuth |
Renu Kumari | bcacd77 | 2021-09-16 15:36:23 -0400 | [diff] [blame] | 37 | externalSecret: '{{ tpl (default "" .Values.config.cpsCore.credsExternalSecret) . }}' |
| 38 | login: '{{ .Values.config.cpsCore.username }}' |
| 39 | password: '{{ .Values.config.cpsCore.password }}' |
shivasubedi | c615a89 | 2021-08-24 13:17:07 +0100 | [diff] [blame] | 40 | passwordPolicy: generate |
| 41 | |
| 42 | ################################################################# |
| 43 | # Global configuration defaults. |
| 44 | ################################################################# |
| 45 | global: |
| 46 | ingress: |
| 47 | virtualhost: |
| 48 | baseurl: "simpledemo.onap.org" |
| 49 | |
mpriyank | 8cb16a6 | 2023-11-03 12:16:54 +0000 | [diff] [blame^] | 50 | image: onap/ncmp-dmi-plugin:1.4.0 |
shivasubedi | c615a89 | 2021-08-24 13:17:07 +0100 | [diff] [blame] | 51 | containerPort: &svc_port 8080 |
shivasubedi | c615a89 | 2021-08-24 13:17:07 +0100 | [diff] [blame] | 52 | |
| 53 | prometheus: |
Bruno Sakoto | 45ee4f0 | 2021-11-19 19:07:00 -0500 | [diff] [blame] | 54 | enabled: false |
shivasubedi | c615a89 | 2021-08-24 13:17:07 +0100 | [diff] [blame] | 55 | |
| 56 | service: |
| 57 | type: ClusterIP |
Renu Kumari | bcacd77 | 2021-09-16 15:36:23 -0400 | [diff] [blame] | 58 | name: &svc_name ncmp-dmi-plugin |
shivasubedi | c615a89 | 2021-08-24 13:17:07 +0100 | [diff] [blame] | 59 | ports: |
| 60 | - name: &port http |
| 61 | port: *svc_port |
shivasubedi | c615a89 | 2021-08-24 13:17:07 +0100 | [diff] [blame] | 62 | |
Renu Kumari | bcacd77 | 2021-09-16 15:36:23 -0400 | [diff] [blame] | 63 | metrics: |
| 64 | serviceMonitor: |
mpriyank | 8cb16a6 | 2023-11-03 12:16:54 +0000 | [diff] [blame^] | 65 | port: http |
Renu Kumari | bcacd77 | 2021-09-16 15:36:23 -0400 | [diff] [blame] | 66 | ## specify target port if name is not given to the port in the service definition |
| 67 | ## |
| 68 | # targetPort: 8080 |
mpriyank | 8cb16a6 | 2023-11-03 12:16:54 +0000 | [diff] [blame^] | 69 | path: /actuator/prometheus |
Renu Kumari | bcacd77 | 2021-09-16 15:36:23 -0400 | [diff] [blame] | 70 | interval: 60s |
| 71 | basicAuth: |
| 72 | enabled: false |
| 73 | |
shivasubedi | c615a89 | 2021-08-24 13:17:07 +0100 | [diff] [blame] | 74 | pullPolicy: IfNotPresent |
| 75 | # flag to enable debugging - application support required |
| 76 | debugEnabled: false |
| 77 | nodeSelector: {} |
| 78 | affinity: {} |
| 79 | # Resource Limit flavor -By Default using small |
| 80 | flavor: small |
| 81 | # default number of instances |
| 82 | replicaCount: 1 |
| 83 | # Segregation for Different environment (Small and Large) |
| 84 | resources: |
| 85 | small: |
| 86 | limits: |
vladimir turok | db8167b | 2023-09-20 11:09:21 +0200 | [diff] [blame] | 87 | cpu: 2 |
Andreas Geissler | 555db9c | 2023-06-20 11:38:39 +0200 | [diff] [blame] | 88 | memory: 1Gi |
shivasubedi | c615a89 | 2021-08-24 13:17:07 +0100 | [diff] [blame] | 89 | requests: |
| 90 | cpu: 1 |
| 91 | memory: 1Gi |
| 92 | large: |
| 93 | limits: |
vladimir turok | db8167b | 2023-09-20 11:09:21 +0200 | [diff] [blame] | 94 | cpu: 4 |
Andreas Geissler | 555db9c | 2023-06-20 11:38:39 +0200 | [diff] [blame] | 95 | memory: 2Gi |
shivasubedi | c615a89 | 2021-08-24 13:17:07 +0100 | [diff] [blame] | 96 | requests: |
| 97 | cpu: 2 |
| 98 | memory: 2Gi |
| 99 | unlimited: {} |
| 100 | # probe configuration parameters |
| 101 | liveness: |
| 102 | initialDelaySeconds: 20 |
| 103 | periodSeconds: 20 |
| 104 | # necessary to disable liveness probe when setting breakpoints |
| 105 | # in debugger so K8s doesn't restart unresponsive container |
| 106 | enabled: true |
mpriyank | 8cb16a6 | 2023-11-03 12:16:54 +0000 | [diff] [blame^] | 107 | path: /actuator/health |
| 108 | port: *svc_port |
shivasubedi | c615a89 | 2021-08-24 13:17:07 +0100 | [diff] [blame] | 109 | |
| 110 | readiness: |
| 111 | initialDelaySeconds: 15 |
| 112 | periodSeconds: 15 |
mpriyank | 8cb16a6 | 2023-11-03 12:16:54 +0000 | [diff] [blame^] | 113 | path: /actuator/health |
| 114 | port: *svc_port |
shivasubedi | c615a89 | 2021-08-24 13:17:07 +0100 | [diff] [blame] | 115 | |
| 116 | ingress: |
| 117 | enabled: true |
| 118 | service: |
Andreas Geissler | 51900a9 | 2022-08-03 13:10:35 +0200 | [diff] [blame] | 119 | - baseaddr: "cps-ncmp-dmi-plugin-api" |
shivasubedi | c615a89 | 2021-08-24 13:17:07 +0100 | [diff] [blame] | 120 | path: "/" |
Renu Kumari | bcacd77 | 2021-09-16 15:36:23 -0400 | [diff] [blame] | 121 | name: *svc_name |
shivasubedi | c615a89 | 2021-08-24 13:17:07 +0100 | [diff] [blame] | 122 | port: *svc_port |
| 123 | |
| 124 | serviceAccount: |
| 125 | nameOverride: ncmp-dmi-plugin |
| 126 | roles: |
| 127 | - read |
| 128 | |
| 129 | securityContext: |
| 130 | user_id: 100 |
| 131 | group_id: 655533 |
| 132 | |
| 133 | ################################################################# |
| 134 | # Application configuration defaults. |
| 135 | ################################################################# |
| 136 | |
| 137 | config: |
| 138 | |
| 139 | # REST API basic authentication credentials (passsword is generated if not provided) |
| 140 | appUserName: ncmpuser |
Renu Kumari | bcacd77 | 2021-09-16 15:36:23 -0400 | [diff] [blame] | 141 | #appUserPassword: |
shivasubedi | c615a89 | 2021-08-24 13:17:07 +0100 | [diff] [blame] | 142 | spring: |
| 143 | profile: helm |
shivasubedi | c615a89 | 2021-08-24 13:17:07 +0100 | [diff] [blame] | 144 | |
DylanB95EST | 3b39ac8 | 2021-10-13 15:23:20 +0100 | [diff] [blame] | 145 | dmiServiceUrl: http://*svc_name:*svc_port |
Renu Kumari | bcacd77 | 2021-09-16 15:36:23 -0400 | [diff] [blame] | 146 | sdnc: |
| 147 | url: http://sdnc:8181 |
| 148 | username: admin |
| 149 | password: Kp8bJ4SXszM0WXlhak3eHlcse2gAw84vaoGGmJvUy2U |
| 150 | topologyId: topology-netconf |
| 151 | cpsCore: |
| 152 | url: http://cps-core:8080 |
| 153 | username: cpsuser |
| 154 | #password: |
shivasubedi | c615a89 | 2021-08-24 13:17:07 +0100 | [diff] [blame] | 155 | |
| 156 | # Any new property can be added in the env by setting in overrides in the format mentioned below |
| 157 | # All the added properties must be in "key: value" format insead of yaml. |
| 158 | # additional: |
| 159 | # spring.config.max-size: 200 |
| 160 | # spring.config.min-size: 10 |
| 161 | |
| 162 | logging: |
mpriyank | 4743064 | 2023-02-23 10:29:02 +0000 | [diff] [blame] | 163 | level: DEBUG |
shivasubedi | c615a89 | 2021-08-24 13:17:07 +0100 | [diff] [blame] | 164 | cps: DEBUG |
| 165 | path: /tmp |
| 166 | |
| 167 | readinessCheck: |
| 168 | wait_for: |
puthuparambil.aditya | f5ba7e3 | 2021-09-14 10:29:32 +0100 | [diff] [blame] | 169 | - cps-core |
Renu Kumari | bcacd77 | 2021-09-16 15:36:23 -0400 | [diff] [blame] | 170 | |
| 171 | minReadySeconds: 10 |
| 172 | updateStrategy: |
| 173 | type: RollingUpdate |
| 174 | maxUnavailable: 0 |
| 175 | maxSurge: 1 |
mpriyank | 9d4d923 | 2023-04-13 16:27:25 +0100 | [diff] [blame] | 176 | |
mpriyank | 6fc407d | 2023-04-21 15:24:10 +0100 | [diff] [blame] | 177 | # Strimzi KafkaUser and Topic config |
| 178 | kafkaTopic: |
| 179 | - name: &ncmpDmiCmAvcSubscriptionNcmpDmiPluginTopic ncmp-dmi-cm-avc-subscription-ncmp-dmi-plugin |
| 180 | retentionMs: 7200000 |
| 181 | segmentBytes: 1073741824 |
| 182 | - name: &dmiNcmpCmAvcSubscriptionTopic dmi-ncmp-cm-avc-subscription |
| 183 | retentionMs: 7200000 |
| 184 | segmentBytes: 1073741824 |
| 185 | - name: &ncmpAsyncM2MTopic ncmp-async-m2m |
| 186 | retentionMs: 7200000 |
| 187 | segmentBytes: 1073741824 |
| 188 | |
mpriyank | 9d4d923 | 2023-04-13 16:27:25 +0100 | [diff] [blame] | 189 | kafkaUser: |
| 190 | authenticationType: scram-sha-512 |
| 191 | acls: |
| 192 | - name: ncmp-dmi-plugin-group |
| 193 | type: group |
| 194 | operations: [Read] |
mpriyank | 6fc407d | 2023-04-21 15:24:10 +0100 | [diff] [blame] | 195 | - name: *ncmpDmiCmAvcSubscriptionNcmpDmiPluginTopic |
mpriyank | 9d4d923 | 2023-04-13 16:27:25 +0100 | [diff] [blame] | 196 | type: topic |
| 197 | operations: [Read] |
mpriyank | 6fc407d | 2023-04-21 15:24:10 +0100 | [diff] [blame] | 198 | - name: *dmiNcmpCmAvcSubscriptionTopic |
mpriyank | 9d4d923 | 2023-04-13 16:27:25 +0100 | [diff] [blame] | 199 | type: topic |
| 200 | operations: [Write] |
mpriyank | 6fc407d | 2023-04-21 15:24:10 +0100 | [diff] [blame] | 201 | - name: *ncmpAsyncM2MTopic |
mpriyank | 9d4d923 | 2023-04-13 16:27:25 +0100 | [diff] [blame] | 202 | type: topic |
| 203 | operations: [Write] |
mpriyank | 6fc407d | 2023-04-21 15:24:10 +0100 | [diff] [blame] | 204 | |
| 205 | topics: |
| 206 | config: |
| 207 | app.ncmp.async.topic: *ncmpAsyncM2MTopic |
| 208 | app.dmi.avc.subscription-topic: *ncmpDmiCmAvcSubscriptionNcmpDmiPluginTopic |
| 209 | app.dmi.avc.subscription-response-topic: *dmiNcmpCmAvcSubscriptionTopic |