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 | 9a51e07 | 2022-09-22 10:25:37 +0100 | [diff] [blame^] | 50 | image: onap/ncmp-dmi-plugin:1.2.1 |
shivasubedi | c615a89 | 2021-08-24 13:17:07 +0100 | [diff] [blame] | 51 | containerPort: &svc_port 8080 |
| 52 | managementPort: &mgt_port 8081 |
| 53 | |
| 54 | prometheus: |
Bruno Sakoto | 45ee4f0 | 2021-11-19 19:07:00 -0500 | [diff] [blame] | 55 | enabled: false |
shivasubedi | c615a89 | 2021-08-24 13:17:07 +0100 | [diff] [blame] | 56 | |
| 57 | service: |
| 58 | type: ClusterIP |
Renu Kumari | bcacd77 | 2021-09-16 15:36:23 -0400 | [diff] [blame] | 59 | name: &svc_name ncmp-dmi-plugin |
shivasubedi | c615a89 | 2021-08-24 13:17:07 +0100 | [diff] [blame] | 60 | ports: |
| 61 | - name: &port http |
| 62 | port: *svc_port |
AndrewLamb | ede4d88 | 2021-09-16 10:22:29 +0100 | [diff] [blame] | 63 | - name: http-management |
shivasubedi | c615a89 | 2021-08-24 13:17:07 +0100 | [diff] [blame] | 64 | port: *mgt_port |
| 65 | targetPort: *mgt_port |
| 66 | |
Renu Kumari | bcacd77 | 2021-09-16 15:36:23 -0400 | [diff] [blame] | 67 | metrics: |
| 68 | serviceMonitor: |
AndrewLamb | ede4d88 | 2021-09-16 10:22:29 +0100 | [diff] [blame] | 69 | port: http-management |
Renu Kumari | bcacd77 | 2021-09-16 15:36:23 -0400 | [diff] [blame] | 70 | ## specify target port if name is not given to the port in the service definition |
| 71 | ## |
| 72 | # targetPort: 8080 |
| 73 | path: /manage/prometheus |
| 74 | interval: 60s |
| 75 | basicAuth: |
| 76 | enabled: false |
| 77 | |
shivasubedi | c615a89 | 2021-08-24 13:17:07 +0100 | [diff] [blame] | 78 | pullPolicy: IfNotPresent |
| 79 | # flag to enable debugging - application support required |
| 80 | debugEnabled: false |
| 81 | nodeSelector: {} |
| 82 | affinity: {} |
| 83 | # Resource Limit flavor -By Default using small |
| 84 | flavor: small |
| 85 | # default number of instances |
| 86 | replicaCount: 1 |
| 87 | # Segregation for Different environment (Small and Large) |
| 88 | resources: |
| 89 | small: |
| 90 | limits: |
| 91 | cpu: 2 |
| 92 | memory: 2Gi |
| 93 | requests: |
| 94 | cpu: 1 |
| 95 | memory: 1Gi |
| 96 | large: |
| 97 | limits: |
| 98 | cpu: 4 |
| 99 | memory: 4Gi |
| 100 | requests: |
| 101 | cpu: 2 |
| 102 | memory: 2Gi |
| 103 | unlimited: {} |
| 104 | # probe configuration parameters |
| 105 | liveness: |
| 106 | initialDelaySeconds: 20 |
| 107 | periodSeconds: 20 |
| 108 | # necessary to disable liveness probe when setting breakpoints |
| 109 | # in debugger so K8s doesn't restart unresponsive container |
| 110 | enabled: true |
| 111 | path: /manage/health |
| 112 | port: *mgt_port |
| 113 | |
| 114 | readiness: |
| 115 | initialDelaySeconds: 15 |
| 116 | periodSeconds: 15 |
| 117 | path: /manage/health |
| 118 | port: *mgt_port |
| 119 | |
| 120 | ingress: |
| 121 | enabled: true |
| 122 | service: |
| 123 | - baseaddr: "ncmp-dmi-plugin" |
| 124 | path: "/" |
Renu Kumari | bcacd77 | 2021-09-16 15:36:23 -0400 | [diff] [blame] | 125 | name: *svc_name |
shivasubedi | c615a89 | 2021-08-24 13:17:07 +0100 | [diff] [blame] | 126 | port: *svc_port |
| 127 | |
| 128 | serviceAccount: |
| 129 | nameOverride: ncmp-dmi-plugin |
| 130 | roles: |
| 131 | - read |
| 132 | |
| 133 | securityContext: |
| 134 | user_id: 100 |
| 135 | group_id: 655533 |
| 136 | |
| 137 | ################################################################# |
| 138 | # Application configuration defaults. |
| 139 | ################################################################# |
| 140 | |
| 141 | config: |
| 142 | |
| 143 | # REST API basic authentication credentials (passsword is generated if not provided) |
| 144 | appUserName: ncmpuser |
Renu Kumari | bcacd77 | 2021-09-16 15:36:23 -0400 | [diff] [blame] | 145 | #appUserPassword: |
shivasubedi | c615a89 | 2021-08-24 13:17:07 +0100 | [diff] [blame] | 146 | spring: |
| 147 | profile: helm |
shivasubedi | c615a89 | 2021-08-24 13:17:07 +0100 | [diff] [blame] | 148 | |
DylanB95EST | 3b39ac8 | 2021-10-13 15:23:20 +0100 | [diff] [blame] | 149 | dmiServiceUrl: http://*svc_name:*svc_port |
Renu Kumari | bcacd77 | 2021-09-16 15:36:23 -0400 | [diff] [blame] | 150 | sdnc: |
| 151 | url: http://sdnc:8181 |
| 152 | username: admin |
| 153 | password: Kp8bJ4SXszM0WXlhak3eHlcse2gAw84vaoGGmJvUy2U |
| 154 | topologyId: topology-netconf |
| 155 | cpsCore: |
| 156 | url: http://cps-core:8080 |
| 157 | username: cpsuser |
| 158 | #password: |
shivasubedi | c615a89 | 2021-08-24 13:17:07 +0100 | [diff] [blame] | 159 | |
| 160 | # Any new property can be added in the env by setting in overrides in the format mentioned below |
| 161 | # All the added properties must be in "key: value" format insead of yaml. |
| 162 | # additional: |
| 163 | # spring.config.max-size: 200 |
| 164 | # spring.config.min-size: 10 |
| 165 | |
| 166 | logging: |
| 167 | level: INFO |
| 168 | cps: DEBUG |
| 169 | path: /tmp |
| 170 | |
| 171 | readinessCheck: |
| 172 | wait_for: |
puthuparambil.aditya | f5ba7e3 | 2021-09-14 10:29:32 +0100 | [diff] [blame] | 173 | - cps-core |
Renu Kumari | bcacd77 | 2021-09-16 15:36:23 -0400 | [diff] [blame] | 174 | |
| 175 | minReadySeconds: 10 |
| 176 | updateStrategy: |
| 177 | type: RollingUpdate |
| 178 | maxUnavailable: 0 |
| 179 | maxSurge: 1 |