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