Mike Elliott | 6ba69cd | 2018-04-03 16:37:06 -0400 | [diff] [blame] | 1 | # Copyright © 2017 Amdocs, Bell Canada |
| 2 | # |
| 3 | # Licensed under the Apache License, Version 2.0 (the "License"); |
| 4 | # you may not use this file except in compliance with the License. |
| 5 | # You may obtain a copy of the License at |
| 6 | # |
| 7 | # http://www.apache.org/licenses/LICENSE-2.0 |
| 8 | # |
| 9 | # Unless required by applicable law or agreed to in writing, software |
| 10 | # distributed under the License is distributed on an "AS IS" BASIS, |
| 11 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 12 | # See the License for the specific language governing permissions and |
| 13 | # limitations under the License. |
| 14 | |
| 15 | ################################################################# |
| 16 | # Global configuration defaults. |
| 17 | ################################################################# |
| 18 | global: |
| 19 | nodePortPrefix: 302 |
Sylvain Desbureaux | 0cd5fee | 2020-11-19 17:35:56 +0100 | [diff] [blame] | 20 | config: |
| 21 | ssl_enabled: false |
Mahmoud Abdelhamid | a74326f | 2021-09-24 17:28:28 +0200 | [diff] [blame] | 22 | mariadbGalera: |
Andreas Geissler | 2c1ba29 | 2024-01-10 22:20:05 +0100 | [diff] [blame] | 23 | # flag to enable the DB creation via mariadb-operator |
| 24 | useOperator: true |
Mahmoud Abdelhamid | a74326f | 2021-09-24 17:28:28 +0200 | [diff] [blame] | 25 | localCluster: false |
Andreas Geissler | 576de2d | 2023-10-24 15:38:01 +0200 | [diff] [blame] | 26 | service: mariadb-galera |
Mahmoud Abdelhamid | a74326f | 2021-09-24 17:28:28 +0200 | [diff] [blame] | 27 | internalPort: 3306 |
| 28 | nameOverride: mariadb-galera |
Mike Elliott | 6ba69cd | 2018-04-03 16:37:06 -0400 | [diff] [blame] | 29 | |
| 30 | ################################################################# |
Krzysztof Opasiak | a9010db | 2020-02-26 23:36:22 +0100 | [diff] [blame] | 31 | # Secrets metaconfig |
| 32 | ################################################################# |
| 33 | secrets: |
Mahmoud Abdelhamid | a74326f | 2021-09-24 17:28:28 +0200 | [diff] [blame] | 34 | - uid: db-root-pass |
| 35 | externalSecret: '{{ ternary (index .Values "mariadb-galera" "rootUser" "externalSecret") (include "common.mariadb.secret.rootPassSecretName" (dict "dot" . "chartName" (default "mariadb-galera" .Values.global.mariadbGalera.nameOverride))) .Values.global.mariadbGalera.localCluster }}' |
Krzysztof Opasiak | a9010db | 2020-02-26 23:36:22 +0100 | [diff] [blame] | 36 | type: password |
Mahmoud Abdelhamid | a74326f | 2021-09-24 17:28:28 +0200 | [diff] [blame] | 37 | password: '{{ index .Values "mariadb-galera" "rootUser" "password" }}' |
Krzysztof Opasiak | a9010db | 2020-02-26 23:36:22 +0100 | [diff] [blame] | 38 | policy: required |
| 39 | |
| 40 | ################################################################# |
Mike Elliott | 6ba69cd | 2018-04-03 16:37:06 -0400 | [diff] [blame] | 41 | # Application configuration defaults. |
| 42 | ################################################################# |
| 43 | # application image |
GregSulek | 5fb3bc6 | 2018-09-20 08:51:37 -0400 | [diff] [blame] | 44 | flavor: small |
| 45 | |
dengyh | 20285ba | 2022-03-31 13:19:02 +0800 | [diff] [blame] | 46 | image: onap/vfc/nslcm:1.4.7 |
Mike Elliott | 6ba69cd | 2018-04-03 16:37:06 -0400 | [diff] [blame] | 47 | pullPolicy: Always |
| 48 | |
Huabing Zhao | c171ac2 | 2018-07-31 06:49:03 +0000 | [diff] [blame] | 49 | #Istio sidecar injection policy |
| 50 | istioSidecar: true |
| 51 | |
Mike Elliott | 6ba69cd | 2018-04-03 16:37:06 -0400 | [diff] [blame] | 52 | # flag to enable debugging - application support required |
| 53 | debugEnabled: false |
| 54 | |
Mahmoud Abdelhamid | a74326f | 2021-09-24 17:28:28 +0200 | [diff] [blame] | 55 | # Local mariadb galera instance default name |
| 56 | mariadb-galera: |
| 57 | rootUser: |
| 58 | externalSecret: '{{ include "common.release" . }}-vfc-db-root-pass' |
| 59 | nameOverride: vfc-mariadb |
Mike Elliott | 6ba69cd | 2018-04-03 16:37:06 -0400 | [diff] [blame] | 60 | |
| 61 | # default number of instances |
| 62 | replicaCount: 1 |
| 63 | |
| 64 | nodeSelector: {} |
| 65 | |
| 66 | affinity: {} |
| 67 | |
| 68 | # probe configuration parameters |
| 69 | liveness: |
yangyan | d08e6dc | 2018-08-17 13:28:00 +0800 | [diff] [blame] | 70 | initialDelaySeconds: 120 |
Mike Elliott | 6ba69cd | 2018-04-03 16:37:06 -0400 | [diff] [blame] | 71 | periodSeconds: 10 |
| 72 | # necessary to disable liveness probe when setting breakpoints |
| 73 | # in debugger so K8s doesn't restart unresponsive container |
| 74 | enabled: true |
| 75 | |
| 76 | readiness: |
| 77 | initialDelaySeconds: 10 |
| 78 | periodSeconds: 10 |
| 79 | |
| 80 | service: |
| 81 | type: ClusterIP |
| 82 | name: vfc-nslcm |
AndrewLamb | ce8a39c | 2022-07-14 12:51:55 +0100 | [diff] [blame] | 83 | portName: http |
Mike Elliott | 6ba69cd | 2018-04-03 16:37:06 -0400 | [diff] [blame] | 84 | externalPort: 8403 |
| 85 | internalPort: 8403 |
| 86 | # nodePort: 30403 |
| 87 | |
| 88 | ingress: |
| 89 | enabled: false |
| 90 | |
GregSulek | 5fb3bc6 | 2018-09-20 08:51:37 -0400 | [diff] [blame] | 91 | |
| 92 | # Configure resource requests and limits |
| 93 | resources: |
| 94 | small: |
| 95 | limits: |
Andreas Geissler | 4753743 | 2024-02-27 08:55:23 +0100 | [diff] [blame] | 96 | cpu: "200m" |
Andreas Geissler | 8cbb3d9 | 2024-03-12 16:44:56 +0100 | [diff] [blame] | 97 | memory: "500Mi" |
GregSulek | 5fb3bc6 | 2018-09-20 08:51:37 -0400 | [diff] [blame] | 98 | requests: |
Andreas Geissler | 4753743 | 2024-02-27 08:55:23 +0100 | [diff] [blame] | 99 | cpu: "100m" |
Andreas Geissler | 8cbb3d9 | 2024-03-12 16:44:56 +0100 | [diff] [blame] | 100 | memory: "200Mi" |
GregSulek | 5fb3bc6 | 2018-09-20 08:51:37 -0400 | [diff] [blame] | 101 | large: |
| 102 | limits: |
Andreas Geissler | 4753743 | 2024-02-27 08:55:23 +0100 | [diff] [blame] | 103 | cpu: "400m" |
| 104 | memory: "1Gi" |
GregSulek | 5fb3bc6 | 2018-09-20 08:51:37 -0400 | [diff] [blame] | 105 | requests: |
Andreas Geissler | 4753743 | 2024-02-27 08:55:23 +0100 | [diff] [blame] | 106 | cpu: "200m" |
Andreas Geissler | 8cbb3d9 | 2024-03-12 16:44:56 +0100 | [diff] [blame] | 107 | memory: "500Mi" |
Krzysztof Opasiak | a9010db | 2020-02-26 23:36:22 +0100 | [diff] [blame] | 108 | unlimited: {} |
Maciej Wereski | 857687a | 2021-11-18 16:28:05 +0100 | [diff] [blame] | 109 | |
| 110 | # Log configuration |
| 111 | log: |
| 112 | path: /var/log/onap |
| 113 | logConfigMapNamePrefix: '{{ include "common.fullname" . }}' |