Merge "[AAI] Add model-loader tracing config"
[oom.git] / kubernetes / vnfsdk / values.yaml
1 # Copyright © 2017 Amdocs, Bell Canada
2 # Modifications © 2023 Deutsche Telekom
3 #
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
16 #################################################################
17 # Global configuration defaults.
18 #################################################################
19 global:
20   nodePortPrefix: 302
21
22 secrets:
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
36
37 #################################################################
38 # Application configuration defaults.
39 #################################################################
40 # application image
41 image: onap/vnfsdk/refrepo:1.6.3
42 pullPolicy: Always
43
44 # application configuration override for postgres
45 postgres:
46   nameOverride: vnfsdk-postgres
47   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
61     pgUserExternalSecret: *pgUserCredsSecretName
62     pgRootPasswordExternalSecret: *pgRootPassSecretName
63
64 # flag to enable debugging - application support required
65 debugEnabled: false
66
67 nodeSelector: {}
68
69 affinity: {}
70
71 # Resource Limit flavor -By Default using small
72 flavor: small
73 # Segregation for Different environment (Small and Large)
74 resources:
75   small:
76     limits:
77       cpu: "2000m"
78       memory: "4Gi"
79     requests:
80       cpu: "500m"
81       memory: "1Gi"
82   large:
83     limits:
84       cpu: "4000m"
85       memory: "8Gi"
86     requests:
87       cpu: "1000m"
88       memory: "2Gi"
89   unlimited: {}
90
91 # probe configuration parameters
92 liveness:
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
99 readiness:
100   initialDelaySeconds: 60
101   periodSeconds: 30
102
103 service:
104   type: NodePort
105   name: refrepo
106   internalPort: 8703
107   ports:
108     - name: http
109       port: 8703
110       nodePort: '97'
111
112 ingress:
113   enabled: false
114   service:
115     - baseaddr: "vnfsdk-refrepo-api"
116       name: "refrepo"
117       port: 8703
118   config:
119     ssl: "redirect"
120
121 readinessCheck:
122   wait_for:
123     services:
124       - '{{ .Values.postgres.service.name2 }}'
125
126 wait_for_job_container:
127   containers:
128     - '{{ include "common.name" . }}-job'