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: |
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 |
| 39 | externalSecret: '{{ tpl (default "" .Values.restServer.credsExternalSecret) . }}' |
| 40 | login: '{{ .Values.restServer.user }}' |
| 41 | password: '{{ .Values.restServer.password }}' |
| 42 | passwordPolicy: required |
Chenfei Gao | 9292e88 | 2019-02-27 22:14:45 -0500 | [diff] [blame] | 43 | |
| 44 | ################################################################# |
| 45 | # Application configuration defaults. |
| 46 | ################################################################# |
| 47 | # application image |
| 48 | repository: nexus3.onap.org:10001 |
jhh | 0ee08c0 | 2020-04-27 17:12:43 -0500 | [diff] [blame] | 49 | image: onap/policy-api:2.2.3 |
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 |
Dominik Mizyn | 1103810 | 2020-04-14 17:14:42 +0200 | [diff] [blame] | 59 | restServer: |
| 60 | user: healthcheck |
| 61 | password: zb!XztG34 |
Chenfei Gao | 9292e88 | 2019-02-27 22:14:45 -0500 | [diff] [blame] | 62 | |
| 63 | # default number of instances |
| 64 | replicaCount: 1 |
| 65 | |
| 66 | nodeSelector: {} |
| 67 | |
| 68 | affinity: {} |
| 69 | |
| 70 | # probe configuration parameters |
| 71 | liveness: |
| 72 | initialDelaySeconds: 20 |
| 73 | periodSeconds: 10 |
| 74 | # necessary to disable liveness probe when setting breakpoints |
| 75 | # in debugger so K8s doesn't restart unresponsive container |
| 76 | enabled: true |
| 77 | |
| 78 | readiness: |
| 79 | initialDelaySeconds: 20 |
| 80 | periodSeconds: 10 |
| 81 | |
| 82 | service: |
jhh | 59ce22d | 2019-05-14 17:59:36 -0500 | [diff] [blame] | 83 | type: ClusterIP |
Chenfei Gao | 9292e88 | 2019-02-27 22:14:45 -0500 | [diff] [blame] | 84 | name: policy-api |
| 85 | portName: policy-api |
jhh | 59ce22d | 2019-05-14 17:59:36 -0500 | [diff] [blame] | 86 | externalPort: 6969 |
Chenfei Gao | 9292e88 | 2019-02-27 22:14:45 -0500 | [diff] [blame] | 87 | internalPort: 6969 |
| 88 | nodePort: 40 |
| 89 | |
| 90 | ingress: |
| 91 | enabled: false |
| 92 | |
| 93 | resources: {} |