blob: 5c6c1dbb89d172ca1ae02da538ad40eb0cdd663c [file] [log] [blame]
vaibhav_16dece04b2fe2018-03-22 09:07:12 +00001# Copyright © 2017 Amdocs, Bell Canada
Andreas Geissler74790422023-02-27 10:31:01 +01002# Modifications © 2023 Deutsche Telekom
vaibhav_16dece04b2fe2018-03-22 09:07:12 +00003#
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
jasmineWen66f6a3b2018-04-03 17:48:41 +000016#################################################################
17# Global configuration defaults.
18#################################################################
19global:
20 nodePortPrefix: 302
Krzysztof Opasiak79677d32020-05-05 01:42:23 +020021
22secrets:
23 - uid: pg-root-pass
24 name: &pgRootPassSecretName '{{ include "common.release" . }}-vnfsdk-pg-root-pass'
25 type: password
26 externalSecret: '{{ ternary "" (tpl (default "" .Values.postgres.config.pgRootPasswordExternalSecret) .) (hasSuffix "vnfsdk-pg-root-pass" .Values.postgres.config.pgRootPasswordExternalSecret) }}'
27 password: '{{ .Values.postgres.config.pgRootpassword }}'
28 policy: generate
29 - uid: pg-user-creds
30 name: &pgUserCredsSecretName '{{ include "common.release" . }}-vnfsdk-pg-user-creds'
31 type: basicAuth
32 externalSecret: '{{ ternary "" (tpl (default "" .Values.postgres.config.pgUserExternalSecret) .) (hasSuffix "vnfsdk-pg-user-creds" .Values.postgres.config.pgUserExternalSecret) }}'
33 login: '{{ .Values.postgres.config.pgUserName }}'
34 password: '{{ .Values.postgres.config.pgUserPassword }}'
35 passwordPolicy: generate
jasmineWen66f6a3b2018-04-03 17:48:41 +000036
37#################################################################
38# Application configuration defaults.
39#################################################################
40# application image
Bogumil Zebek2f87fb72021-02-26 11:10:55 +010041image: onap/vnfsdk/refrepo:1.6.3
Dusan Rozman75c07c42017-09-25 10:28:28 -040042pullPolicy: Always
jasmineWen66f6a3b2018-04-03 17:48:41 +000043
jasmineWenfb56f0f2018-08-29 15:55:28 +000044# application configuration override for postgres
45postgres:
jasmineWen04aef9a2018-04-24 15:56:27 +000046 nameOverride: vnfsdk-postgres
jasmineWenfb56f0f2018-08-29 15:55:28 +000047 service:
48 name: vnfsdk-dbset
49 name2: vnfsdk-dbpri
50 name3: vnfsdk-dbrep
51 container:
52 name:
53 primary: vnfsdk-dbpri
54 replica: vnfsdk-dbrep
55 persistence:
56 mountSubPath: vnfsdk/data
57 mountInitPath: vnfsdk
58 config:
59 pgUserName: postgres
60 pgDatabase: postgres
Krzysztof Opasiak79677d32020-05-05 01:42:23 +020061 pgUserExternalSecret: *pgUserCredsSecretName
62 pgRootPasswordExternalSecret: *pgRootPassSecretName
jasmineWen66f6a3b2018-04-03 17:48:41 +000063
64# flag to enable debugging - application support required
65debugEnabled: false
66
67nodeSelector: {}
68
69affinity: {}
70
Mandeep Khinda60d36d42018-09-24 15:15:48 +000071# Resource Limit flavor -By Default using small
vaibhav_16dec0acf5182018-09-19 04:28:55 +000072flavor: small
73# Segregation for Different environment (Small and Large)
74resources:
75 small:
76 limits:
Andreas Geissler47537432024-02-27 08:55:23 +010077 cpu: "2000m"
78 memory: "4Gi"
vaibhav_16dec0acf5182018-09-19 04:28:55 +000079 requests:
Andreas Geissler47537432024-02-27 08:55:23 +010080 cpu: "500m"
81 memory: "1Gi"
vaibhav_16dec0acf5182018-09-19 04:28:55 +000082 large:
83 limits:
Andreas Geissler47537432024-02-27 08:55:23 +010084 cpu: "4000m"
85 memory: "8Gi"
vaibhav_16dec0acf5182018-09-19 04:28:55 +000086 requests:
Andreas Geissler47537432024-02-27 08:55:23 +010087 cpu: "1000m"
88 memory: "2Gi"
Mandeep Khinda60d36d42018-09-24 15:15:48 +000089 unlimited: {}
vaibhav_16dec0acf5182018-09-19 04:28:55 +000090
jasmineWen66f6a3b2018-04-03 17:48:41 +000091# probe configuration parameters
92liveness:
93 initialDelaySeconds: 10
94 periodSeconds: 10
95 # necessary to disable liveness probe when setting breakpoints
96 # in debugger so K8s doesn't restart unresponsive container
97 enabled: true
98
99readiness:
Bogumil Zebek2f87fb72021-02-26 11:10:55 +0100100 initialDelaySeconds: 60
101 periodSeconds: 30
jasmineWen66f6a3b2018-04-03 17:48:41 +0000102
103service:
104 type: NodePort
105 name: refrepo
Kanagaraj Manickame470e7d2020-03-05 16:45:54 +0530106 internalPort: 8703
Andreas Geissler74790422023-02-27 10:31:01 +0100107 ports:
108 - name: http
109 port: 8703
110 nodePort: '97'
jasmineWen66f6a3b2018-04-03 17:48:41 +0000111
112ingress:
113 enabled: false
Lucjan Bryndza5bf25c72019-12-02 14:18:47 +0100114 service:
Andreas Geissler51900a92022-08-03 13:10:35 +0200115 - baseaddr: "vnfsdk-refrepo-api"
Lucjan Bryndza5bf25c72019-12-02 14:18:47 +0100116 name: "refrepo"
Sylvain Desbureaux68f1beb2020-05-06 15:27:37 +0200117 port: 8703
Lucjan Bryndza5bf25c72019-12-02 14:18:47 +0100118 config:
Sylvain Desbureaux68f1beb2020-05-06 15:27:37 +0200119 ssl: "redirect"
Andreas Geissler74790422023-02-27 10:31:01 +0100120
121readinessCheck:
122 wait_for:
123 - '{{ .Values.postgres.nameOverride }}'
124
125wait_for_job_container:
126 containers:
127 - '{{ include "common.name" . }}-job'