blob: 9c0f13b6228c966c74f7af9e8cb792a392684f4c [file] [log] [blame]
ramverma1a3b8ad2019-02-25 12:45:11 +00001# ============LICENSE_START=======================================================
2# Copyright (C) 2019 Nordix Foundation.
jhhd2b9ed82019-12-10 17:15:28 -06003# Modifications Copyright (C) 2019-2020 AT&T Intellectual Property.
Bruno Sakoto425d5be2020-05-20 07:25:41 -04004# Modifications Copyright (C) 2020 Bell Canada.
ramverma1a3b8ad2019-02-25 12:45:11 +00005# ================================================================================
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#################################################################
24global:
Bruno Sakoto425d5be2020-05-20 07:25:41 -040025 nodePortPrefixExt: 304
ramverma1a3b8ad2019-02-25 12:45:11 +000026 persistence: {}
Krzysztof Opasiak3d9dc8b2020-03-31 23:05:16 +020027 envsubstImage: dibi/envsubst
jhhd4258672020-08-09 12:08:08 -050028 aafEnabled: true
29 readinessRepository: oomk8s
30 readinessImage: readiness-check:2.0.0
Krzysztof Opasiak3d9dc8b2020-03-31 23:05:16 +020031
32#################################################################
33# Secrets metaconfig
34#################################################################
35secrets:
36 - uid: db-secret
37 type: basicAuth
38 externalSecret: '{{ tpl (default "" .Values.db.credsExternalSecret) . }}'
39 login: '{{ .Values.db.user }}'
40 password: '{{ .Values.db.password }}'
41 passwordPolicy: required
Dominik Mizyn389fca12020-04-09 22:37:00 +020042 - uid: restserver-secret
43 type: basicAuth
44 externalSecret: '{{ tpl (default "" .Values.restServer.credsExternalSecret) . }}'
45 login: '{{ .Values.restServer.user }}'
46 password: '{{ .Values.restServer.password }}'
47 passwordPolicy: required
48 - uid: api-secret
49 type: basicAuth
50 externalSecret: '{{ tpl (default "" .Values.healthCheckRestClient.api.credsExternalSecret) . }}'
51 login: '{{ .Values.healthCheckRestClient.api.user }}'
52 password: '{{ .Values.healthCheckRestClient.api.password }}'
53 passwordPolicy: required
54 - uid: distribution-secret
55 type: basicAuth
56 externalSecret: '{{ tpl (default "" .Values.healthCheckRestClient.distribution.credsExternalSecret) . }}'
57 login: '{{ .Values.healthCheckRestClient.distribution.user }}'
58 password: '{{ .Values.healthCheckRestClient.distribution.password }}'
59 passwordPolicy: required
jhhd4258672020-08-09 12:08:08 -050060 - uid: keystore-password
61 type: password
62 externalSecret: '{{ tpl (default "" .Values.certStores.keyStorePasswordExternalSecret) . }}'
63 password: '{{ .Values.certStores.keyStorePassword }}'
64 passwordPolicy: required
65 - uid: truststore-password
66 type: password
67 externalSecret: '{{ tpl (default "" .Values.certStores.trustStorePasswordExternalSecret) . }}'
68 password: '{{ .Values.certStores.trustStorePassword }}'
69 passwordPolicy: required
70
71certStores:
72 keyStorePassword: Pol1cy_0nap
73 trustStorePassword: Pol1cy_0nap
74
75certInitializer:
76 nameOverride: policy-pap-cert-initializer
77 aafDeployFqi: deployer@people.osaaf.org
78 aafDeployPass: demo123456!
79 fqdn: policy
80 fqi: policy@policy.onap.org
81 public_fqdn: policy.onap.org
82 cadi_latitude: "0.0"
83 cadi_longitude: "0.0"
84 credsPath: /opt/app/osaaf/local
85 app_ns: org.osaaf.aaf
86 uid: 100
87 gid: 101
88 aaf_add_config: >
89 /opt/app/aaf_config/bin/agent.sh;
90 export $(/opt/app/aaf_config/bin/agent.sh local showpass
91 {{ .Values.fqi }} {{ .Values.fqdn }} | grep "^cadi_keystore_password_p12");
92 echo "export KEYSTORE='{{ .Values.credsPath }}/org.onap.policy.p12'" > {{ .Values.credsPath }}/.ci;
93 echo "export KEYSTORE_PASSWD='${cadi_keystore_password_p12}'" >> {{ .Values.credsPath }}/.ci;
94 chown -R {{ .Values.uid }}:{{ .Values.gid }} $(dirname {{ .Values.credsPath }});
95
ramverma1a3b8ad2019-02-25 12:45:11 +000096
97#################################################################
98# Application configuration defaults.
99#################################################################
100# application image
101repository: nexus3.onap.org:10001
jhha7dbd022020-07-13 10:55:47 -0500102image: onap/policy-pap:2.3.0
ramverma1a3b8ad2019-02-25 12:45:11 +0000103pullPolicy: Always
104
105# flag to enable debugging - application support required
106debugEnabled: false
107
108# application configuration
109
Krzysztof Opasiak3d9dc8b2020-03-31 23:05:16 +0200110db:
111 user: policy_user
112 password: policy_user
jhhd4258672020-08-09 12:08:08 -0500113 service:
114 name: policy-mariadb
115 internalPort: 3306
116
Dominik Mizyn389fca12020-04-09 22:37:00 +0200117restServer:
118 user: healthcheck
119 password: zb!XztG34
jhhd4258672020-08-09 12:08:08 -0500120
Dominik Mizyn389fca12020-04-09 22:37:00 +0200121healthCheckRestClient:
122 api:
123 user: healthcheck
124 password: zb!XztG34
125 distribution:
126 user: healthcheck
127 password: zb!XztG34
Krzysztof Opasiak3d9dc8b2020-03-31 23:05:16 +0200128
ramverma1a3b8ad2019-02-25 12:45:11 +0000129# default number of instances
130replicaCount: 1
131
132nodeSelector: {}
133
134affinity: {}
135
136# probe configuration parameters
137liveness:
138 initialDelaySeconds: 20
139 periodSeconds: 10
140 # necessary to disable liveness probe when setting breakpoints
141 # in debugger so K8s doesn't restart unresponsive container
142 enabled: true
Bruno Sakoto0644c262020-05-22 16:56:35 -0400143 port: http-api
ramverma1a3b8ad2019-02-25 12:45:11 +0000144
145readiness:
146 initialDelaySeconds: 20
147 periodSeconds: 10
Bruno Sakoto0644c262020-05-22 16:56:35 -0400148 port: http-api
ramverma1a3b8ad2019-02-25 12:45:11 +0000149
150service:
151 type: ClusterIP
152 name: policy-pap
Bruno Sakoto0644c262020-05-22 16:56:35 -0400153 useNodePortExt: true
154 ports:
155 - name: http-api
156 port: 6969
157 nodePort: 42
ramverma1a3b8ad2019-02-25 12:45:11 +0000158
159ingress:
160 enabled: false
161
jhhd4258672020-08-09 12:08:08 -0500162flavor: small
163resources:
164 small:
165 limits:
166 cpu: 1
167 memory: 4Gi
168 requests:
169 cpu: 100m
170 memory: 1Gi
171 large:
172 limits:
173 cpu: 2
174 memory: 8Gi
175 requests:
176 cpu: 200m
177 memory: 2Gi
178 unlimited: {}
179