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