Chenfei Gao | 9292e88 | 2019-02-27 22:14:45 -0500 | [diff] [blame] | 1 | # ============LICENSE_START======================================================= |
jhh | d2b9ed8 | 2019-12-10 17:15:28 -0600 | [diff] [blame] | 2 | # Copyright (C) 2019-2020 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: {} |
Krzysztof Opasiak | 09d1b31 | 2020-03-31 23:44:22 +0200 | [diff] [blame] | 25 | envsubstImage: dibi/envsubst |
| 26 | |
| 27 | ################################################################# |
| 28 | # Secrets metaconfig |
| 29 | ################################################################# |
| 30 | secrets: |
| 31 | - uid: db-secret |
| 32 | type: basicAuth |
| 33 | externalSecret: '{{ tpl (default "" .Values.db.credsExternalSecret) . }}' |
| 34 | login: '{{ .Values.db.user }}' |
| 35 | password: '{{ .Values.db.password }}' |
| 36 | passwordPolicy: required |
Chenfei Gao | 9292e88 | 2019-02-27 22:14:45 -0500 | [diff] [blame] | 37 | |
| 38 | ################################################################# |
| 39 | # Application configuration defaults. |
| 40 | ################################################################# |
| 41 | # application image |
| 42 | repository: nexus3.onap.org:10001 |
jhh | d2b9ed8 | 2019-12-10 17:15:28 -0600 | [diff] [blame] | 43 | image: onap/policy-api:2.2.1 |
Chenfei Gao | 9292e88 | 2019-02-27 22:14:45 -0500 | [diff] [blame] | 44 | pullPolicy: Always |
| 45 | |
| 46 | # flag to enable debugging - application support required |
| 47 | debugEnabled: false |
| 48 | |
| 49 | # application configuration |
Krzysztof Opasiak | 09d1b31 | 2020-03-31 23:44:22 +0200 | [diff] [blame] | 50 | db: |
| 51 | user: policy_user |
| 52 | password: policy_user |
Chenfei Gao | 9292e88 | 2019-02-27 22:14:45 -0500 | [diff] [blame] | 53 | |
| 54 | # default number of instances |
| 55 | replicaCount: 1 |
| 56 | |
| 57 | nodeSelector: {} |
| 58 | |
| 59 | affinity: {} |
| 60 | |
| 61 | # probe configuration parameters |
| 62 | liveness: |
| 63 | initialDelaySeconds: 20 |
| 64 | periodSeconds: 10 |
| 65 | # necessary to disable liveness probe when setting breakpoints |
| 66 | # in debugger so K8s doesn't restart unresponsive container |
| 67 | enabled: true |
| 68 | |
| 69 | readiness: |
| 70 | initialDelaySeconds: 20 |
| 71 | periodSeconds: 10 |
| 72 | |
| 73 | service: |
jhh | 59ce22d | 2019-05-14 17:59:36 -0500 | [diff] [blame] | 74 | type: ClusterIP |
Chenfei Gao | 9292e88 | 2019-02-27 22:14:45 -0500 | [diff] [blame] | 75 | name: policy-api |
| 76 | portName: policy-api |
jhh | 59ce22d | 2019-05-14 17:59:36 -0500 | [diff] [blame] | 77 | externalPort: 6969 |
Chenfei Gao | 9292e88 | 2019-02-27 22:14:45 -0500 | [diff] [blame] | 78 | internalPort: 6969 |
| 79 | nodePort: 40 |
| 80 | |
| 81 | ingress: |
| 82 | enabled: false |
| 83 | |
| 84 | resources: {} |