Chenfei Gao | 9292e88 | 2019-02-27 22:14:45 -0500 | [diff] [blame] | 1 | # ============LICENSE_START======================================================= |
jhh | 999c224 | 2021-02-24 12:10:02 -0600 | [diff] [blame] | 2 | # Copyright (C) 2019-2021 AT&T Intellectual Property. All rights reserved. |
a.sreekumar | 2f37736 | 2022-02-09 12:40:57 +0000 | [diff] [blame^] | 3 | # Modifications Copyright (C) 2022 Bell Canada. All rights reserved. |
Chenfei Gao | 9292e88 | 2019-02-27 22:14:45 -0500 | [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 | # SPDX-License-Identifier: Apache-2.0 |
| 18 | # ============LICENSE_END========================================================= |
| 19 | |
| 20 | ################################################################# |
| 21 | # Global configuration defaults. |
| 22 | ################################################################# |
| 23 | global: |
| 24 | nodePortPrefix: 304 |
| 25 | persistence: {} |
jhh | d425867 | 2020-08-09 12:08:08 -0500 | [diff] [blame] | 26 | aafEnabled: true |
Krzysztof Opasiak | 09d1b31 | 2020-03-31 23:44:22 +0200 | [diff] [blame] | 27 | |
| 28 | ################################################################# |
| 29 | # Secrets metaconfig |
| 30 | ################################################################# |
| 31 | secrets: |
Dominik Mizyn | 1103810 | 2020-04-14 17:14:42 +0200 | [diff] [blame] | 32 | - uid: db-creds |
Krzysztof Opasiak | 09d1b31 | 2020-03-31 23:44:22 +0200 | [diff] [blame] | 33 | type: basicAuth |
| 34 | externalSecret: '{{ tpl (default "" .Values.db.credsExternalSecret) . }}' |
| 35 | login: '{{ .Values.db.user }}' |
| 36 | password: '{{ .Values.db.password }}' |
| 37 | passwordPolicy: required |
Dominik Mizyn | 1103810 | 2020-04-14 17:14:42 +0200 | [diff] [blame] | 38 | - uid: restserver-creds |
| 39 | type: basicAuth |
rameshiyer27 | ff17665 | 2021-09-21 15:19:05 +0100 | [diff] [blame] | 40 | externalSecret: '{{ tpl (default "" .Values.restServer.apiUserExternalSecret) . }}' |
Dominik Mizyn | 1103810 | 2020-04-14 17:14:42 +0200 | [diff] [blame] | 41 | login: '{{ .Values.restServer.user }}' |
| 42 | password: '{{ .Values.restServer.password }}' |
| 43 | passwordPolicy: required |
jhh | d425867 | 2020-08-09 12:08:08 -0500 | [diff] [blame] | 44 | - uid: keystore-password |
| 45 | type: password |
| 46 | externalSecret: '{{ tpl (default "" .Values.certStores.keyStorePasswordExternalSecret) . }}' |
| 47 | password: '{{ .Values.certStores.keyStorePassword }}' |
| 48 | passwordPolicy: required |
| 49 | - uid: truststore-password |
| 50 | type: password |
| 51 | externalSecret: '{{ tpl (default "" .Values.certStores.trustStorePasswordExternalSecret) . }}' |
| 52 | password: '{{ .Values.certStores.trustStorePassword }}' |
| 53 | passwordPolicy: required |
| 54 | |
| 55 | certStores: |
| 56 | keyStorePassword: Pol1cy_0nap |
| 57 | trustStorePassword: Pol1cy_0nap |
| 58 | |
| 59 | certInitializer: |
| 60 | nameOverride: policy-api-cert-initializer |
| 61 | aafDeployFqi: deployer@people.osaaf.org |
| 62 | aafDeployPass: demo123456! |
| 63 | fqdn: policy |
| 64 | fqi: policy@policy.onap.org |
| 65 | public_fqdn: policy.onap.org |
| 66 | cadi_latitude: "0.0" |
| 67 | cadi_longitude: "0.0" |
| 68 | credsPath: /opt/app/osaaf/local |
| 69 | app_ns: org.osaaf.aaf |
| 70 | uid: 100 |
| 71 | gid: 101 |
| 72 | aaf_add_config: > |
jhh | d425867 | 2020-08-09 12:08:08 -0500 | [diff] [blame] | 73 | echo "export KEYSTORE='{{ .Values.credsPath }}/org.onap.policy.p12'" > {{ .Values.credsPath }}/.ci; |
| 74 | echo "export KEYSTORE_PASSWD='${cadi_keystore_password_p12}'" >> {{ .Values.credsPath }}/.ci; |
| 75 | chown -R {{ .Values.uid }}:{{ .Values.gid }} $(dirname {{ .Values.credsPath }}); |
| 76 | |
Chenfei Gao | 9292e88 | 2019-02-27 22:14:45 -0500 | [diff] [blame] | 77 | |
| 78 | ################################################################# |
| 79 | # Application configuration defaults. |
| 80 | ################################################################# |
| 81 | # application image |
a.sreekumar | 2f37736 | 2022-02-09 12:40:57 +0000 | [diff] [blame^] | 82 | image: onap/policy-api:2.6.1 |
Chenfei Gao | 9292e88 | 2019-02-27 22:14:45 -0500 | [diff] [blame] | 83 | pullPolicy: Always |
| 84 | |
| 85 | # flag to enable debugging - application support required |
| 86 | debugEnabled: false |
| 87 | |
| 88 | # application configuration |
Krzysztof Opasiak | 09d1b31 | 2020-03-31 23:44:22 +0200 | [diff] [blame] | 89 | db: |
| 90 | user: policy_user |
| 91 | password: policy_user |
jhh | d425867 | 2020-08-09 12:08:08 -0500 | [diff] [blame] | 92 | service: |
| 93 | name: policy-mariadb |
| 94 | internalPort: 3306 |
| 95 | |
Dominik Mizyn | 1103810 | 2020-04-14 17:14:42 +0200 | [diff] [blame] | 96 | restServer: |
adheli.tavares | f3656cd | 2021-11-10 14:54:32 +0000 | [diff] [blame] | 97 | user: policyadmin |
a.sreekumar | 2f37736 | 2022-02-09 12:40:57 +0000 | [diff] [blame^] | 98 | password: zb!XztG34 |
Chenfei Gao | 9292e88 | 2019-02-27 22:14:45 -0500 | [diff] [blame] | 99 | |
| 100 | # default number of instances |
| 101 | replicaCount: 1 |
| 102 | |
| 103 | nodeSelector: {} |
| 104 | |
| 105 | affinity: {} |
| 106 | |
| 107 | # probe configuration parameters |
| 108 | liveness: |
a.sreekumar | 2f37736 | 2022-02-09 12:40:57 +0000 | [diff] [blame^] | 109 | initialDelaySeconds: 60 |
Chenfei Gao | 9292e88 | 2019-02-27 22:14:45 -0500 | [diff] [blame] | 110 | periodSeconds: 10 |
| 111 | # necessary to disable liveness probe when setting breakpoints |
| 112 | # in debugger so K8s doesn't restart unresponsive container |
| 113 | enabled: true |
| 114 | |
| 115 | readiness: |
a.sreekumar | 2f37736 | 2022-02-09 12:40:57 +0000 | [diff] [blame^] | 116 | initialDelaySeconds: 10 |
| 117 | periodSeconds: 120 |
| 118 | api: /policy/api/v1/healthcheck |
| 119 | scheme: HTTPS |
| 120 | successThreshold: 1 |
| 121 | failureThreshold: 3 |
| 122 | timeout: 60 |
Chenfei Gao | 9292e88 | 2019-02-27 22:14:45 -0500 | [diff] [blame] | 123 | |
| 124 | service: |
jhh | 59ce22d | 2019-05-14 17:59:36 -0500 | [diff] [blame] | 125 | type: ClusterIP |
Chenfei Gao | 9292e88 | 2019-02-27 22:14:45 -0500 | [diff] [blame] | 126 | name: policy-api |
| 127 | portName: policy-api |
jhh | 59ce22d | 2019-05-14 17:59:36 -0500 | [diff] [blame] | 128 | externalPort: 6969 |
Chenfei Gao | 9292e88 | 2019-02-27 22:14:45 -0500 | [diff] [blame] | 129 | internalPort: 6969 |
| 130 | nodePort: 40 |
| 131 | |
| 132 | ingress: |
| 133 | enabled: false |
| 134 | |
jhh | d425867 | 2020-08-09 12:08:08 -0500 | [diff] [blame] | 135 | flavor: small |
| 136 | resources: |
| 137 | small: |
| 138 | limits: |
| 139 | cpu: 1 |
| 140 | memory: 4Gi |
| 141 | requests: |
| 142 | cpu: 100m |
| 143 | memory: 1Gi |
| 144 | large: |
| 145 | limits: |
| 146 | cpu: 2 |
| 147 | memory: 8Gi |
| 148 | requests: |
| 149 | cpu: 200m |
| 150 | memory: 2Gi |
| 151 | unlimited: {} |
farida azmy | c117837 | 2021-04-11 12:55:33 +0200 | [diff] [blame] | 152 | |
| 153 | #Pods Service Account |
| 154 | serviceAccount: |
| 155 | nameOverride: policy-api |
| 156 | roles: |
| 157 | - read |
Rashmi Pujar | a8b0926 | 2022-03-15 21:58:57 -0400 | [diff] [blame] | 158 | |
| 159 | prometheus: |
| 160 | enabled: true |
| 161 | |
| 162 | metrics: |
| 163 | serviceMonitor: |
| 164 | # Override the labels based on the Prometheus config parameter: serviceMonitorSelector. |
| 165 | # The default operator for prometheus enforces the below label. |
| 166 | labels: |
| 167 | release: prometheus |
| 168 | enabled: true |
| 169 | port: policy-api |
| 170 | interval: 60s |
| 171 | isHttps: true |
| 172 | basicAuth: |
| 173 | enabled: true |
| 174 | externalSecretNameSuffix: policy-api-user-creds |
| 175 | externalSecretUserKey: login |
| 176 | externalSecretPasswordKey: password |
| 177 | selector: |
| 178 | app: '{{ include "common.name" . }}' |
| 179 | chart: '{{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }}' |
| 180 | release: '{{ include "common.release" . }}' |
| 181 | heritage: '{{ .Release.Service }}' |