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. |
Andreas Geissler | f10c555 | 2023-03-21 18:09:46 +0100 | [diff] [blame^] | 4 | # Modification (C) 2023 Deutsche Telekom. All rights reserved. |
Chenfei Gao | 9292e88 | 2019-02-27 22:14:45 -0500 | [diff] [blame] | 5 | # ================================================================================ |
| 6 | # Licensed under the Apache License, Version 2.0 (the "License"); |
| 7 | # you may not use this file except in compliance with the License. |
| 8 | # You may obtain a copy of the License at |
| 9 | # |
| 10 | # http://www.apache.org/licenses/LICENSE-2.0 |
| 11 | # |
| 12 | # Unless required by applicable law or agreed to in writing, software |
| 13 | # distributed under the License is distributed on an "AS IS" BASIS, |
| 14 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 15 | # See the License for the specific language governing permissions and |
| 16 | # limitations under the License. |
| 17 | # |
| 18 | # SPDX-License-Identifier: Apache-2.0 |
| 19 | # ============LICENSE_END========================================================= |
| 20 | |
| 21 | ################################################################# |
| 22 | # Global configuration defaults. |
| 23 | ################################################################# |
| 24 | global: |
| 25 | nodePortPrefix: 304 |
| 26 | persistence: {} |
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 |
Chenfei Gao | 9292e88 | 2019-02-27 22:14:45 -0500 | [diff] [blame] | 44 | |
| 45 | ################################################################# |
| 46 | # Application configuration defaults. |
| 47 | ################################################################# |
| 48 | # application image |
saul.gill | 5e61140 | 2023-03-02 11:49:23 +0000 | [diff] [blame] | 49 | image: onap/policy-api:2.8.1 |
Chenfei Gao | 9292e88 | 2019-02-27 22:14:45 -0500 | [diff] [blame] | 50 | pullPolicy: Always |
| 51 | |
| 52 | # flag to enable debugging - application support required |
| 53 | debugEnabled: false |
| 54 | |
| 55 | # application configuration |
Krzysztof Opasiak | 09d1b31 | 2020-03-31 23:44:22 +0200 | [diff] [blame] | 56 | db: |
| 57 | user: policy_user |
| 58 | password: policy_user |
jhh | d425867 | 2020-08-09 12:08:08 -0500 | [diff] [blame] | 59 | service: |
| 60 | name: policy-mariadb |
| 61 | internalPort: 3306 |
| 62 | |
Dominik Mizyn | 1103810 | 2020-04-14 17:14:42 +0200 | [diff] [blame] | 63 | restServer: |
adheli.tavares | f3656cd | 2021-11-10 14:54:32 +0000 | [diff] [blame] | 64 | user: policyadmin |
a.sreekumar | 2f37736 | 2022-02-09 12:40:57 +0000 | [diff] [blame] | 65 | password: zb!XztG34 |
Chenfei Gao | 9292e88 | 2019-02-27 22:14:45 -0500 | [diff] [blame] | 66 | |
| 67 | # default number of instances |
| 68 | replicaCount: 1 |
| 69 | |
| 70 | nodeSelector: {} |
| 71 | |
| 72 | affinity: {} |
| 73 | |
| 74 | # probe configuration parameters |
| 75 | liveness: |
a.sreekumar | 2f37736 | 2022-02-09 12:40:57 +0000 | [diff] [blame] | 76 | initialDelaySeconds: 60 |
Chenfei Gao | 9292e88 | 2019-02-27 22:14:45 -0500 | [diff] [blame] | 77 | periodSeconds: 10 |
| 78 | # necessary to disable liveness probe when setting breakpoints |
| 79 | # in debugger so K8s doesn't restart unresponsive container |
| 80 | enabled: true |
| 81 | |
| 82 | readiness: |
a.sreekumar | 2f37736 | 2022-02-09 12:40:57 +0000 | [diff] [blame] | 83 | initialDelaySeconds: 10 |
| 84 | periodSeconds: 120 |
| 85 | api: /policy/api/v1/healthcheck |
a.sreekumar | 2f37736 | 2022-02-09 12:40:57 +0000 | [diff] [blame] | 86 | successThreshold: 1 |
| 87 | failureThreshold: 3 |
| 88 | timeout: 60 |
Chenfei Gao | 9292e88 | 2019-02-27 22:14:45 -0500 | [diff] [blame] | 89 | |
| 90 | service: |
jhh | 59ce22d | 2019-05-14 17:59:36 -0500 | [diff] [blame] | 91 | type: ClusterIP |
Chenfei Gao | 9292e88 | 2019-02-27 22:14:45 -0500 | [diff] [blame] | 92 | name: policy-api |
Chenfei Gao | 9292e88 | 2019-02-27 22:14:45 -0500 | [diff] [blame] | 93 | internalPort: 6969 |
Andreas Geissler | f10c555 | 2023-03-21 18:09:46 +0100 | [diff] [blame^] | 94 | ports: |
| 95 | - name: http |
| 96 | port: 6969 |
| 97 | |
Chenfei Gao | 9292e88 | 2019-02-27 22:14:45 -0500 | [diff] [blame] | 98 | |
| 99 | ingress: |
| 100 | enabled: false |
| 101 | |
jhh | d425867 | 2020-08-09 12:08:08 -0500 | [diff] [blame] | 102 | flavor: small |
| 103 | resources: |
| 104 | small: |
| 105 | limits: |
| 106 | cpu: 1 |
| 107 | memory: 4Gi |
| 108 | requests: |
| 109 | cpu: 100m |
| 110 | memory: 1Gi |
| 111 | large: |
| 112 | limits: |
| 113 | cpu: 2 |
| 114 | memory: 8Gi |
| 115 | requests: |
| 116 | cpu: 200m |
| 117 | memory: 2Gi |
| 118 | unlimited: {} |
farida azmy | c117837 | 2021-04-11 12:55:33 +0200 | [diff] [blame] | 119 | |
| 120 | #Pods Service Account |
| 121 | serviceAccount: |
| 122 | nameOverride: policy-api |
| 123 | roles: |
| 124 | - read |
Rashmi Pujar | a8b0926 | 2022-03-15 21:58:57 -0400 | [diff] [blame] | 125 | |
Rashmi Pujar | a8b0926 | 2022-03-15 21:58:57 -0400 | [diff] [blame] | 126 | metrics: |
| 127 | serviceMonitor: |
| 128 | # Override the labels based on the Prometheus config parameter: serviceMonitorSelector. |
| 129 | # The default operator for prometheus enforces the below label. |
| 130 | labels: |
| 131 | release: prometheus |
| 132 | enabled: true |
| 133 | port: policy-api |
| 134 | interval: 60s |
Andreas Geissler | f10c555 | 2023-03-21 18:09:46 +0100 | [diff] [blame^] | 135 | isHttps: false |
Rashmi Pujar | a8b0926 | 2022-03-15 21:58:57 -0400 | [diff] [blame] | 136 | basicAuth: |
| 137 | enabled: true |
| 138 | externalSecretNameSuffix: policy-api-user-creds |
| 139 | externalSecretUserKey: login |
| 140 | externalSecretPasswordKey: password |
| 141 | selector: |
| 142 | app: '{{ include "common.name" . }}' |
| 143 | chart: '{{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }}' |
| 144 | release: '{{ include "common.release" . }}' |
| 145 | heritage: '{{ .Release.Service }}' |