blob: 0fbee4c07ffcb69269a08d3f51bccdebc94419aa [file] [log] [blame]
vaibhav_16dece04b2fe2018-03-22 09:07:12 +00001# Copyright © 2017 Amdocs, Bell Canada
2#
3# Licensed under the Apache License, Version 2.0 (the "License");
4# you may not use this file except in compliance with the License.
5# You may obtain a copy of the License at
6#
7# http://www.apache.org/licenses/LICENSE-2.0
8#
9# Unless required by applicable law or agreed to in writing, software
10# distributed under the License is distributed on an "AS IS" BASIS,
11# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12# See the License for the specific language governing permissions and
13# limitations under the License.
14
jasmineWen66f6a3b2018-04-03 17:48:41 +000015#################################################################
16# Global configuration defaults.
17#################################################################
18global:
19 nodePortPrefix: 302
Krzysztof Opasiak79677d32020-05-05 01:42:23 +020020
21secrets:
22 - uid: pg-root-pass
23 name: &pgRootPassSecretName '{{ include "common.release" . }}-vnfsdk-pg-root-pass'
24 type: password
25 externalSecret: '{{ ternary "" (tpl (default "" .Values.postgres.config.pgRootPasswordExternalSecret) .) (hasSuffix "vnfsdk-pg-root-pass" .Values.postgres.config.pgRootPasswordExternalSecret) }}'
26 password: '{{ .Values.postgres.config.pgRootpassword }}'
27 policy: generate
28 - uid: pg-user-creds
29 name: &pgUserCredsSecretName '{{ include "common.release" . }}-vnfsdk-pg-user-creds'
30 type: basicAuth
31 externalSecret: '{{ ternary "" (tpl (default "" .Values.postgres.config.pgUserExternalSecret) .) (hasSuffix "vnfsdk-pg-user-creds" .Values.postgres.config.pgUserExternalSecret) }}'
32 login: '{{ .Values.postgres.config.pgUserName }}'
33 password: '{{ .Values.postgres.config.pgUserPassword }}'
34 passwordPolicy: generate
jasmineWen66f6a3b2018-04-03 17:48:41 +000035
36#################################################################
Sylvain Desbureaux554bc6b2021-02-25 18:13:19 +010037# AAF part
38#################################################################
39certInitializer:
40 nameOverride: refrepo-cert-initializer
41 aafDeployFqi: deployer@people.osaaf.org
42 aafDeployPass: demo123456!
43 # aafDeployCredsExternalSecret: some secret
44 fqdn: refrepo
45 fqi: refrepo@refrepo.onap.org
46 fqi_namespace: org.onap.refrepo
47 public_fqdn: refrepo.onap.org
48 cadi_longitude: "0.0"
49 cadi_latitude: "0.0"
50 app_ns: org.osaaf.aaf
51 credsPath: /opt/app/osaaf/local
52 aaf_add_config: |
53 echo "*** transform AAF certs into pem files"
54 mkdir -p {{ .Values.credsPath }}/certs
55 echo "keystore password: $$cadi_keystore_password_p12"
56 openssl pkcs12 -in {{ .Values.credsPath }}/{{ .Values.fqi_namespace }}.p12 \
57 -nokeys -out {{ .Values.credsPath }}/certs/cert.pem \
58 -passin pass:$cadi_keystore_password_p12 \
59 -passout pass:$cadi_keystore_password_p12
60 echo "*** copy key"
61 cp {{ .Values.credsPath }}/{{ .Values.fqi_namespace }}.key \
62 {{ .Values.credsPath }}/certs/cert.key
63 echo "*** change ownership of certificates to targeted user"
64 chown -R 999 {{ .Values.credsPath }}/certs
65
66
67#################################################################
jasmineWen66f6a3b2018-04-03 17:48:41 +000068# Application configuration defaults.
69#################################################################
70# application image
Bogumil Zebek2f87fb72021-02-26 11:10:55 +010071image: onap/vnfsdk/refrepo:1.6.3
Dusan Rozman75c07c42017-09-25 10:28:28 -040072pullPolicy: Always
jasmineWen66f6a3b2018-04-03 17:48:41 +000073
jasmineWenfb56f0f2018-08-29 15:55:28 +000074# application configuration override for postgres
75postgres:
jasmineWen04aef9a2018-04-24 15:56:27 +000076 nameOverride: vnfsdk-postgres
jasmineWenfb56f0f2018-08-29 15:55:28 +000077 service:
78 name: vnfsdk-dbset
79 name2: vnfsdk-dbpri
80 name3: vnfsdk-dbrep
81 container:
82 name:
83 primary: vnfsdk-dbpri
84 replica: vnfsdk-dbrep
85 persistence:
86 mountSubPath: vnfsdk/data
87 mountInitPath: vnfsdk
88 config:
89 pgUserName: postgres
90 pgDatabase: postgres
Krzysztof Opasiak79677d32020-05-05 01:42:23 +020091 pgUserExternalSecret: *pgUserCredsSecretName
92 pgRootPasswordExternalSecret: *pgRootPassSecretName
jasmineWen66f6a3b2018-04-03 17:48:41 +000093
94# flag to enable debugging - application support required
95debugEnabled: false
96
97nodeSelector: {}
98
99affinity: {}
100
Mandeep Khinda60d36d42018-09-24 15:15:48 +0000101# Resource Limit flavor -By Default using small
vaibhav_16dec0acf5182018-09-19 04:28:55 +0000102flavor: small
103# Segregation for Different environment (Small and Large)
104resources:
105 small:
106 limits:
107 cpu: 2000m
108 memory: 4Gi
109 requests:
110 cpu: 500m
111 memory: 1Gi
112 large:
113 limits:
114 cpu: 4000m
115 memory: 8Gi
116 requests:
117 cpu: 1000m
118 memory: 2Gi
Mandeep Khinda60d36d42018-09-24 15:15:48 +0000119 unlimited: {}
vaibhav_16dec0acf5182018-09-19 04:28:55 +0000120
jasmineWen66f6a3b2018-04-03 17:48:41 +0000121# probe configuration parameters
122liveness:
123 initialDelaySeconds: 10
124 periodSeconds: 10
125 # necessary to disable liveness probe when setting breakpoints
126 # in debugger so K8s doesn't restart unresponsive container
127 enabled: true
128
129readiness:
Bogumil Zebek2f87fb72021-02-26 11:10:55 +0100130 initialDelaySeconds: 60
131 periodSeconds: 30
jasmineWen66f6a3b2018-04-03 17:48:41 +0000132
133service:
134 type: NodePort
135 name: refrepo
Sylvain Desbureaux554bc6b2021-02-25 18:13:19 +0100136 portName: https
jasmineWen66f6a3b2018-04-03 17:48:41 +0000137 nodePort: 97
Kanagaraj Manickame470e7d2020-03-05 16:45:54 +0530138 internalPort: 8703
jasmineWen66f6a3b2018-04-03 17:48:41 +0000139
140ingress:
141 enabled: false
Lucjan Bryndza5bf25c72019-12-02 14:18:47 +0100142 service:
143 - baseaddr: "refrepo"
144 name: "refrepo"
Sylvain Desbureaux68f1beb2020-05-06 15:27:37 +0200145 port: 8703
Lucjan Bryndza5bf25c72019-12-02 14:18:47 +0100146 config:
Sylvain Desbureaux68f1beb2020-05-06 15:27:37 +0200147 ssl: "redirect"