sebdet | d85e24c | 2019-09-04 18:35:26 +0200 | [diff] [blame] | 1 | # Copyright © 2017 Amdocs, Bell Canada |
jhh | 999c224 | 2021-02-24 12:10:02 -0600 | [diff] [blame] | 2 | # Modifications Copyright © 2018-2021 AT&T |
FrancescoFioraEst | 9c79e26 | 2022-02-22 13:12:19 +0000 | [diff] [blame] | 3 | # Modifications Copyright © 2022 Nordix Foundation |
sebdet | d85e24c | 2019-09-04 18:35:26 +0200 | [diff] [blame] | 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 | |
| 17 | ################################################################# |
| 18 | # Global configuration defaults. |
| 19 | ################################################################# |
| 20 | global: # global defaults |
| 21 | nodePortPrefix: 302 |
sebdet | d85e24c | 2019-09-04 18:35:26 +0200 | [diff] [blame] | 22 | persistence: {} |
ChrisC | 2325efd | 2020-09-11 18:39:23 +0200 | [diff] [blame] | 23 | centralizedLoggingEnabled: true |
| 24 | #AAF service |
| 25 | aafEnabled: true |
| 26 | |
| 27 | ################################################################# |
| 28 | # AAF part |
| 29 | ################################################################# |
| 30 | certInitializer: |
| 31 | permission_user: 1000 |
| 32 | permission_group: 999 |
sebdet | ac61d3c | 2020-10-23 16:06:55 +0200 | [diff] [blame] | 33 | keystoreFile: 'org.onap.clamp.p12' |
| 34 | truststoreFile: 'org.onap.clamp.trust.jks' |
| 35 | keyFile: 'org.onap.clamp.keyfile' |
| 36 | truststoreFileONAP: 'truststoreONAPall.jks' |
ChrisC | 2325efd | 2020-09-11 18:39:23 +0200 | [diff] [blame] | 37 | nameOverride: clamp-backend-cert-initializer |
| 38 | aafDeployFqi: deployer@people.osaaf.org |
| 39 | aafDeployPass: demo123456! |
| 40 | fqdn: clamp |
| 41 | fqi: clamp@clamp.onap.org |
| 42 | public_fqdn: clamp.onap.org |
sebdet | ac61d3c | 2020-10-23 16:06:55 +0200 | [diff] [blame] | 43 | cadi_longitude: '-72.0' |
| 44 | cadi_latitude: '38.0' |
ChrisC | 2325efd | 2020-09-11 18:39:23 +0200 | [diff] [blame] | 45 | app_ns: org.osaaf.aaf |
| 46 | credsPath: /opt/app/osaaf/local |
| 47 | aaf_add_config: > |
sebdet | 9bac0c3 | 2021-04-22 10:23:53 +0200 | [diff] [blame] | 48 | /opt/app/aaf_config/bin/agent.sh local showpass {{.Values.fqi}} {{ .Values.fqdn }} > {{ .Values.credsPath }}/mycreds.prop; |
ChrisC | 2325efd | 2020-09-11 18:39:23 +0200 | [diff] [blame] | 49 | cd {{ .Values.credsPath }}; |
| 50 | chmod a+rx *; |
sebdet | d85e24c | 2019-09-04 18:35:26 +0200 | [diff] [blame] | 51 | |
JulienBe | 26df320 | 2020-04-10 16:50:08 +0200 | [diff] [blame] | 52 | secrets: |
sebdet | 5c44988 | 2021-01-13 11:35:56 +0100 | [diff] [blame] | 53 | - uid: db-creds |
JulienBe | 26df320 | 2020-04-10 16:50:08 +0200 | [diff] [blame] | 54 | type: basicAuth |
sebdet | 5c44988 | 2021-01-13 11:35:56 +0100 | [diff] [blame] | 55 | externalSecret: '{{ tpl (default "" .Values.db.credsExternalSecret) . }}' |
JulienBe | 26df320 | 2020-04-10 16:50:08 +0200 | [diff] [blame] | 56 | login: '{{ .Values.db.user }}' |
| 57 | password: '{{ .Values.db.password }}' |
| 58 | passwordPolicy: required |
sebdet | 9bac0c3 | 2021-04-22 10:23:53 +0200 | [diff] [blame] | 59 | - uid: sdc-creds |
| 60 | type: password |
| 61 | externalSecret: '{{ tpl (default "" .Values.sdc.sdcClientExternalSecret) . }}' |
| 62 | password: '{{ .Values.sdc.clientPassword }}' |
| 63 | passwordPolicy: required |
saul.gill | 6238df4 | 2021-09-21 15:09:55 +0100 | [diff] [blame] | 64 | - uid: runtime-be-secret |
| 65 | type: basicAuth |
| 66 | externalSecret: '{{ tpl (default "" .Values.config.appUserExternalSecret) . }}' |
| 67 | login: '{{ .Values.config.policyAppUserName }}' |
| 68 | password: '{{ .Values.config.policyAppUserPassword }}' |
| 69 | passwordPolicy: required |
JulienBe | 26df320 | 2020-04-10 16:50:08 +0200 | [diff] [blame] | 70 | |
sebdet | d85e24c | 2019-09-04 18:35:26 +0200 | [diff] [blame] | 71 | flavor: small |
| 72 | |
| 73 | # application image |
jhh | 2a5d1bb | 2022-05-04 13:44:26 -0500 | [diff] [blame] | 74 | image: onap/policy-clamp-backend:6.2.3 |
sebdet | d85e24c | 2019-09-04 18:35:26 +0200 | [diff] [blame] | 75 | pullPolicy: Always |
| 76 | |
| 77 | # flag to enable debugging - application support required |
| 78 | debugEnabled: false |
| 79 | |
Sylvain Desbureaux | 8c2a162 | 2020-04-22 10:50:26 +0200 | [diff] [blame] | 80 | # log configuration |
| 81 | log: |
| 82 | path: /var/log/onap |
| 83 | |
sebdet | d85e24c | 2019-09-04 18:35:26 +0200 | [diff] [blame] | 84 | ################################################################# |
| 85 | # Application configuration defaults. |
| 86 | ################################################################# |
JulienBe | 26df320 | 2020-04-10 16:50:08 +0200 | [diff] [blame] | 87 | |
ChrisC | 2325efd | 2020-09-11 18:39:23 +0200 | [diff] [blame] | 88 | #####dummy values for db user and password to pass lint!!!####### |
sebdet | 9bac0c3 | 2021-04-22 10:23:53 +0200 | [diff] [blame] | 89 | sdc: |
| 90 | clientPassword: Kp8bJ4SXszM0WXlhak3eHlcse2gAw84vaoGGmJvUy2U |
| 91 | |
ChrisC | 2325efd | 2020-09-11 18:39:23 +0200 | [diff] [blame] | 92 | db: |
sebdet | 5c44988 | 2021-01-13 11:35:56 +0100 | [diff] [blame] | 93 | user: policy_user |
| 94 | password: policy_user |
| 95 | image: mariadb:10.5.8 |
| 96 | service: |
| 97 | name: policy-mariadb |
| 98 | internalPort: 3306 |
JulienBe | 26df320 | 2020-04-10 16:50:08 +0200 | [diff] [blame] | 99 | |
sebdet | d85e24c | 2019-09-04 18:35:26 +0200 | [diff] [blame] | 100 | config: |
saul.gill | 6238df4 | 2021-09-21 15:09:55 +0100 | [diff] [blame] | 101 | policyAppUserName: runtimeUser |
| 102 | policyAppUserPassword: none |
sebdet | d85e24c | 2019-09-04 18:35:26 +0200 | [diff] [blame] | 103 | log: |
| 104 | logstashServiceName: log-ls |
| 105 | logstashPort: 5044 |
| 106 | mysqlPassword: strong_pitchou |
| 107 | dataRootDir: /dockerdata-nfs |
sebdet | d85e24c | 2019-09-04 18:35:26 +0200 | [diff] [blame] | 108 | |
| 109 | # default number of instances |
| 110 | replicaCount: 1 |
| 111 | |
| 112 | nodeSelector: {} |
| 113 | |
| 114 | affinity: {} |
| 115 | |
| 116 | # probe configuration parameters |
| 117 | liveness: |
| 118 | initialDelaySeconds: 120 |
| 119 | periodSeconds: 10 |
sebdet | 5a13fbf | 2020-10-13 09:37:19 +0200 | [diff] [blame] | 120 | timeoutSeconds: 3 |
sebdet | d85e24c | 2019-09-04 18:35:26 +0200 | [diff] [blame] | 121 | # necessary to disable liveness probe when setting breakpoints |
| 122 | # in debugger so K8s doesn't restart unresponsive container |
| 123 | enabled: true |
| 124 | |
| 125 | readiness: |
| 126 | initialDelaySeconds: 10 |
| 127 | periodSeconds: 10 |
sebdet | 5a13fbf | 2020-10-13 09:37:19 +0200 | [diff] [blame] | 128 | timeoutSeconds: 3 |
sebdet | d85e24c | 2019-09-04 18:35:26 +0200 | [diff] [blame] | 129 | |
| 130 | service: |
| 131 | type: ClusterIP |
sebdet | 5c44988 | 2021-01-13 11:35:56 +0100 | [diff] [blame] | 132 | name: policy-clamp-be |
| 133 | portName: policy-clamp-be |
sebdet | d85e24c | 2019-09-04 18:35:26 +0200 | [diff] [blame] | 134 | internalPort: 8443 |
sebdet | 5c44988 | 2021-01-13 11:35:56 +0100 | [diff] [blame] | 135 | externalPort: 8443 |
sebdet | d85e24c | 2019-09-04 18:35:26 +0200 | [diff] [blame] | 136 | |
| 137 | ingress: |
| 138 | enabled: false |
| 139 | |
| 140 | #resources: {} |
sebdet | ac61d3c | 2020-10-23 16:06:55 +0200 | [diff] [blame] | 141 | # We usually recommend not to specify default resources and to leave this as a conscious |
| 142 | # choice for the user. This also increases chances charts run on environments with little |
| 143 | # resources, such as Minikube. If you do want to specify resources, uncomment the following |
| 144 | # lines, adjust them as necessary, and remove the curly braces after 'resources:'. |
| 145 | # |
| 146 | # Example: |
| 147 | # Configure resource requests and limits |
| 148 | # ref: http://kubernetes.io/docs/user-guide/compute-resources/ |
| 149 | # Minimum memory for development is 2 CPU cores and 4GB memory |
| 150 | # Minimum memory for production is 4 CPU cores and 8GB memory |
sebdet | d85e24c | 2019-09-04 18:35:26 +0200 | [diff] [blame] | 151 | resources: |
| 152 | small: |
| 153 | limits: |
| 154 | cpu: 1 |
sebdet | 5a13fbf | 2020-10-13 09:37:19 +0200 | [diff] [blame] | 155 | memory: 1Gi |
sebdet | d85e24c | 2019-09-04 18:35:26 +0200 | [diff] [blame] | 156 | requests: |
sebdet | ac61d3c | 2020-10-23 16:06:55 +0200 | [diff] [blame] | 157 | cpu: 1m |
sebdet | 5a13fbf | 2020-10-13 09:37:19 +0200 | [diff] [blame] | 158 | memory: 1Gi |
sebdet | d85e24c | 2019-09-04 18:35:26 +0200 | [diff] [blame] | 159 | large: |
| 160 | limits: |
| 161 | cpu: 1 |
sebdet | 5a13fbf | 2020-10-13 09:37:19 +0200 | [diff] [blame] | 162 | memory: 3Gi |
sebdet | d85e24c | 2019-09-04 18:35:26 +0200 | [diff] [blame] | 163 | requests: |
| 164 | cpu: 10m |
sebdet | 5a13fbf | 2020-10-13 09:37:19 +0200 | [diff] [blame] | 165 | memory: 3Gi |
sebdet | d85e24c | 2019-09-04 18:35:26 +0200 | [diff] [blame] | 166 | unlimited: {} |
farida azmy | c117837 | 2021-04-11 12:55:33 +0200 | [diff] [blame] | 167 | |
| 168 | #Pods Service Account |
| 169 | serviceAccount: |
| 170 | nameOverride: policy-clamp-be |
| 171 | roles: |
| 172 | - read |