mmis | 9cb5029 | 2018-09-19 00:31:35 +0100 | [diff] [blame] | 1 | # ============LICENSE_START======================================================= |
| 2 | # Copyright (C) 2018 Ericsson. All rights reserved. |
jhh | d2b9ed8 | 2019-12-10 17:15:28 -0600 | [diff] [blame] | 3 | # Modifications Copyright (C) 2019-2020 AT&T Intellectual Property. |
mmis | 9cb5029 | 2018-09-19 00:31:35 +0100 | [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 | ################################################################# |
Dominik Mizyn | 4aa534f | 2020-04-14 18:03:53 +0200 | [diff] [blame] | 21 | # Secrets metaconfig |
| 22 | ################################################################# |
| 23 | secrets: |
| 24 | - uid: restserver-creds |
| 25 | type: basicAuth |
| 26 | externalSecret: '{{ tpl (default "" .Values.restServer.credsExternalSecret) . }}' |
| 27 | login: '{{ .Values.restServer.user }}' |
| 28 | password: '{{ .Values.restServer.password }}' |
| 29 | passwordPolicy: required |
| 30 | - uid: apiparameters-creds |
| 31 | type: basicAuth |
| 32 | externalSecret: '{{ tpl (default "" .Values.apiParameters.credsExternalSecret) . }}' |
| 33 | login: '{{ .Values.apiParameters.user }}' |
| 34 | password: '{{ .Values.apiParameters.password }}' |
| 35 | passwordPolicy: required |
| 36 | - uid: papparameters-creds |
| 37 | type: basicAuth |
| 38 | externalSecret: '{{ tpl (default "" .Values.papParameters.credsExternalSecret) . }}' |
| 39 | login: '{{ .Values.papParameters.user }}' |
| 40 | password: '{{ .Values.papParameters.password }}' |
| 41 | passwordPolicy: required |
| 42 | - uid: sdcbe-creds |
| 43 | type: basicAuth |
| 44 | externalSecret: '{{ tpl (default "" .Values.sdcBe.credsExternalSecret) . }}' |
| 45 | login: '{{ .Values.sdcBe.user }}' |
| 46 | password: '{{ .Values.sdcBe.password }}' |
| 47 | passwordPolicy: required |
jhh | d425867 | 2020-08-09 12:08:08 -0500 | [diff] [blame] | 48 | - uid: keystore-password |
| 49 | type: password |
| 50 | externalSecret: '{{ tpl (default "" .Values.certStores.keyStorePasswordExternalSecret) . }}' |
| 51 | password: '{{ .Values.certStores.keyStorePassword }}' |
| 52 | passwordPolicy: required |
| 53 | - uid: truststore-password |
| 54 | type: password |
| 55 | externalSecret: '{{ tpl (default "" .Values.certStores.trustStorePasswordExternalSecret) . }}' |
| 56 | password: '{{ .Values.certStores.trustStorePassword }}' |
| 57 | passwordPolicy: required |
Dominik Mizyn | 4aa534f | 2020-04-14 18:03:53 +0200 | [diff] [blame] | 58 | |
| 59 | ################################################################# |
mmis | 9cb5029 | 2018-09-19 00:31:35 +0100 | [diff] [blame] | 60 | # Global configuration defaults. |
| 61 | ################################################################# |
| 62 | global: |
| 63 | persistence: {} |
Dominik Mizyn | 4aa534f | 2020-04-14 18:03:53 +0200 | [diff] [blame] | 64 | envsubstImage: dibi/envsubst |
jhh | d425867 | 2020-08-09 12:08:08 -0500 | [diff] [blame] | 65 | aafEnabled: true |
Sylvain Desbureaux | 1694e1d | 2020-08-21 09:58:25 +0200 | [diff] [blame] | 66 | readinessImage: onap/oom/readiness:3.0.1 |
mmis | 9cb5029 | 2018-09-19 00:31:35 +0100 | [diff] [blame] | 67 | |
| 68 | ################################################################# |
| 69 | # Application configuration defaults. |
| 70 | ################################################################# |
| 71 | # application image |
| 72 | repository: nexus3.onap.org:10001 |
jhh | a7dbd02 | 2020-07-13 10:55:47 -0500 | [diff] [blame] | 73 | image: onap/policy-distribution:2.4.0 |
mmis | 9cb5029 | 2018-09-19 00:31:35 +0100 | [diff] [blame] | 74 | pullPolicy: Always |
| 75 | |
| 76 | # flag to enable debugging - application support required |
| 77 | debugEnabled: false |
| 78 | |
| 79 | # application configuration |
| 80 | |
Dominik Mizyn | 4aa534f | 2020-04-14 18:03:53 +0200 | [diff] [blame] | 81 | restServer: |
| 82 | user: healthcheck |
| 83 | password: zb!XztG34 |
| 84 | apiParameters: |
| 85 | user: healthcheck |
| 86 | password: zb!XztG34 |
| 87 | papParameters: |
| 88 | user: healthcheck |
| 89 | password: zb!XztG34 |
| 90 | sdcBe: |
| 91 | user: policy |
| 92 | password: Kp8bJ4SXszM0WXlhak3eHlcse2gAw84vaoGGmJvUy2U |
jhh | d425867 | 2020-08-09 12:08:08 -0500 | [diff] [blame] | 93 | certStores: |
| 94 | keyStorePassword: Pol1cy_0nap |
| 95 | trustStorePassword: Pol1cy_0nap |
| 96 | |
| 97 | certInitializer: |
| 98 | nameOverride: policy-distribution-cert-initializer |
| 99 | aafDeployFqi: deployer@people.osaaf.org |
| 100 | aafDeployPass: demo123456! |
| 101 | fqdn: policy |
| 102 | fqi: policy@policy.onap.org |
| 103 | public_fqdn: policy.onap.org |
| 104 | cadi_latitude: "0.0" |
| 105 | cadi_longitude: "0.0" |
| 106 | credsPath: /opt/app/osaaf/local |
| 107 | app_ns: org.osaaf.aaf |
| 108 | uid: 100 |
| 109 | gid: 101 |
| 110 | aaf_add_config: > |
| 111 | /opt/app/aaf_config/bin/agent.sh; |
| 112 | export $(/opt/app/aaf_config/bin/agent.sh local showpass |
| 113 | {{ .Values.fqi }} {{ .Values.fqdn }} | grep "^cadi_keystore_password_p12"); |
| 114 | echo "export KEYSTORE='{{ .Values.credsPath }}/org.onap.policy.p12'" >> {{ .Values.credsPath }}/.ci; |
| 115 | echo "export KEYSTORE_PASSWD='${cadi_keystore_password_p12}'" >> {{ .Values.credsPath }}/.ci; |
| 116 | chown -R {{ .Values.uid }}:{{ .Values.gid }} $(dirname {{ .Values.credsPath }}); |
Dominik Mizyn | 4aa534f | 2020-04-14 18:03:53 +0200 | [diff] [blame] | 117 | |
mmis | 9cb5029 | 2018-09-19 00:31:35 +0100 | [diff] [blame] | 118 | # default number of instances |
| 119 | replicaCount: 1 |
| 120 | |
| 121 | nodeSelector: {} |
| 122 | |
| 123 | affinity: {} |
| 124 | |
| 125 | # probe configuration parameters |
| 126 | liveness: |
| 127 | initialDelaySeconds: 20 |
| 128 | periodSeconds: 10 |
| 129 | # necessary to disable liveness probe when setting breakpoints |
| 130 | # in debugger so K8s doesn't restart unresponsive container |
| 131 | enabled: true |
| 132 | |
| 133 | readiness: |
| 134 | initialDelaySeconds: 20 |
| 135 | periodSeconds: 10 |
| 136 | |
| 137 | service: |
| 138 | type: ClusterIP |
| 139 | name: policy-distribution |
| 140 | portName: policy-distribution |
jhh | 59ce22d | 2019-05-14 17:59:36 -0500 | [diff] [blame] | 141 | externalPort: 6969 |
mmis | 9cb5029 | 2018-09-19 00:31:35 +0100 | [diff] [blame] | 142 | internalPort: 6969 |
| 143 | |
| 144 | ingress: |
| 145 | enabled: false |
| 146 | |
jhh | d425867 | 2020-08-09 12:08:08 -0500 | [diff] [blame] | 147 | flavor: small |
| 148 | resources: |
| 149 | small: |
| 150 | limits: |
| 151 | cpu: 1 |
| 152 | memory: 4Gi |
| 153 | requests: |
| 154 | cpu: 100m |
| 155 | memory: 1Gi |
| 156 | large: |
| 157 | limits: |
| 158 | cpu: 2 |
| 159 | memory: 8Gi |
| 160 | requests: |
| 161 | cpu: 200m |
| 162 | memory: 2Gi |
| 163 | unlimited: {} |