mmis | 9cb5029 | 2018-09-19 00:31:35 +0100 | [diff] [blame] | 1 | # ============LICENSE_START======================================================= |
| 2 | # Copyright (C) 2018 Ericsson. All rights reserved. |
jhh | 999c224 | 2021-02-24 12:10:02 -0600 | [diff] [blame] | 3 | # Modifications Copyright (C) 2019-2021 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: {} |
jhh | d425867 | 2020-08-09 12:08:08 -0500 | [diff] [blame] | 64 | aafEnabled: true |
mmis | 9cb5029 | 2018-09-19 00:31:35 +0100 | [diff] [blame] | 65 | |
| 66 | ################################################################# |
| 67 | # Application configuration defaults. |
| 68 | ################################################################# |
| 69 | # application image |
liamfallon | edb388e | 2022-09-23 17:56:37 +0100 | [diff] [blame] | 70 | image: onap/policy-distribution:2.8.0 |
mmis | 9cb5029 | 2018-09-19 00:31:35 +0100 | [diff] [blame] | 71 | pullPolicy: Always |
| 72 | |
| 73 | # flag to enable debugging - application support required |
| 74 | debugEnabled: false |
| 75 | |
| 76 | # application configuration |
| 77 | |
Dominik Mizyn | 4aa534f | 2020-04-14 18:03:53 +0200 | [diff] [blame] | 78 | restServer: |
| 79 | user: healthcheck |
| 80 | password: zb!XztG34 |
| 81 | apiParameters: |
adheli.tavares | f3656cd | 2021-11-10 14:54:32 +0000 | [diff] [blame] | 82 | user: policyadmin |
Dominik Mizyn | 4aa534f | 2020-04-14 18:03:53 +0200 | [diff] [blame] | 83 | password: zb!XztG34 |
| 84 | papParameters: |
adheli.tavares | f3656cd | 2021-11-10 14:54:32 +0000 | [diff] [blame] | 85 | user: policyadmin |
Dominik Mizyn | 4aa534f | 2020-04-14 18:03:53 +0200 | [diff] [blame] | 86 | password: zb!XztG34 |
| 87 | sdcBe: |
| 88 | user: policy |
| 89 | password: Kp8bJ4SXszM0WXlhak3eHlcse2gAw84vaoGGmJvUy2U |
jhh | d425867 | 2020-08-09 12:08:08 -0500 | [diff] [blame] | 90 | certStores: |
| 91 | keyStorePassword: Pol1cy_0nap |
| 92 | trustStorePassword: Pol1cy_0nap |
| 93 | |
| 94 | certInitializer: |
| 95 | nameOverride: policy-distribution-cert-initializer |
| 96 | aafDeployFqi: deployer@people.osaaf.org |
| 97 | aafDeployPass: demo123456! |
| 98 | fqdn: policy |
| 99 | fqi: policy@policy.onap.org |
| 100 | public_fqdn: policy.onap.org |
| 101 | cadi_latitude: "0.0" |
| 102 | cadi_longitude: "0.0" |
| 103 | credsPath: /opt/app/osaaf/local |
| 104 | app_ns: org.osaaf.aaf |
| 105 | uid: 100 |
| 106 | gid: 101 |
| 107 | aaf_add_config: > |
jhh | d425867 | 2020-08-09 12:08:08 -0500 | [diff] [blame] | 108 | echo "export KEYSTORE='{{ .Values.credsPath }}/org.onap.policy.p12'" >> {{ .Values.credsPath }}/.ci; |
| 109 | echo "export KEYSTORE_PASSWD='${cadi_keystore_password_p12}'" >> {{ .Values.credsPath }}/.ci; |
| 110 | chown -R {{ .Values.uid }}:{{ .Values.gid }} $(dirname {{ .Values.credsPath }}); |
Dominik Mizyn | 4aa534f | 2020-04-14 18:03:53 +0200 | [diff] [blame] | 111 | |
mmis | 9cb5029 | 2018-09-19 00:31:35 +0100 | [diff] [blame] | 112 | # default number of instances |
| 113 | replicaCount: 1 |
| 114 | |
| 115 | nodeSelector: {} |
| 116 | |
| 117 | affinity: {} |
| 118 | |
| 119 | # probe configuration parameters |
| 120 | liveness: |
| 121 | initialDelaySeconds: 20 |
| 122 | periodSeconds: 10 |
| 123 | # necessary to disable liveness probe when setting breakpoints |
| 124 | # in debugger so K8s doesn't restart unresponsive container |
| 125 | enabled: true |
| 126 | |
| 127 | readiness: |
| 128 | initialDelaySeconds: 20 |
| 129 | periodSeconds: 10 |
| 130 | |
| 131 | service: |
| 132 | type: ClusterIP |
| 133 | name: policy-distribution |
amatthews | 736bf37 | 2021-12-14 16:04:15 +0000 | [diff] [blame] | 134 | portName: http |
jhh | 59ce22d | 2019-05-14 17:59:36 -0500 | [diff] [blame] | 135 | externalPort: 6969 |
mmis | 9cb5029 | 2018-09-19 00:31:35 +0100 | [diff] [blame] | 136 | internalPort: 6969 |
| 137 | |
| 138 | ingress: |
| 139 | enabled: false |
| 140 | |
jhh | d425867 | 2020-08-09 12:08:08 -0500 | [diff] [blame] | 141 | flavor: small |
| 142 | resources: |
| 143 | small: |
| 144 | limits: |
| 145 | cpu: 1 |
| 146 | memory: 4Gi |
| 147 | requests: |
| 148 | cpu: 100m |
| 149 | memory: 1Gi |
| 150 | large: |
| 151 | limits: |
| 152 | cpu: 2 |
| 153 | memory: 8Gi |
| 154 | requests: |
| 155 | cpu: 200m |
| 156 | memory: 2Gi |
| 157 | unlimited: {} |
farida azmy | c117837 | 2021-04-11 12:55:33 +0200 | [diff] [blame] | 158 | |
| 159 | #Pods Service Account |
| 160 | serviceAccount: |
| 161 | nameOverride: policy-distribution |
| 162 | roles: |
| 163 | - read |
Rashmi Pujar | a8b0926 | 2022-03-15 21:58:57 -0400 | [diff] [blame] | 164 | |
Rashmi Pujar | a8b0926 | 2022-03-15 21:58:57 -0400 | [diff] [blame] | 165 | metrics: |
| 166 | serviceMonitor: |
| 167 | # Override the labels based on the Prometheus config parameter: serviceMonitorSelector. |
| 168 | # The default operator for prometheus enforces the below label. |
| 169 | labels: |
| 170 | release: prometheus |
| 171 | enabled: true |
| 172 | port: policy-distribution |
| 173 | interval: 60s |
| 174 | isHttps: true |
| 175 | basicAuth: |
| 176 | enabled: true |
| 177 | externalSecretNameSuffix: policy-distribution-restserver-creds |
| 178 | externalSecretUserKey: login |
| 179 | externalSecretPasswordKey: password |
| 180 | selector: |
| 181 | app: '{{ include "common.name" . }}' |
| 182 | chart: '{{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }}' |
| 183 | release: '{{ include "common.release" . }}' |
| 184 | heritage: '{{ .Release.Service }}' |