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