blob: 2312a4994d3f8c3d4375e8c169f148176b232186 [file] [log] [blame]
Bruno Sakotoc27240b2021-03-08 17:59:44 -05001# Copyright (C) 2021 Pantheon.tech, Orange, Bell Canada.
puthuparambil.aditya7625e522021-01-22 22:01:50 +01002#
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
15#################################################################
16# Secrets.
17#################################################################
18secrets:
19 - uid: pg-root-pass
20 name: &pgRootPassSecretName '{{ include "common.release" . }}-cps-pg-root-pass'
21 type: password
22 externalSecret: '{{ ternary "" (tpl (default "" .Values.postgres.config.pgRootPasswordExternalSecret) .) (hasSuffix "cps-pg-root-pass" .Values.postgres.config.pgRootPasswordExternalSecret) }}'
23 password: '{{ .Values.postgres.config.pgRootpassword }}'
24 policy: generate
25 - uid: pg-user-creds
26 name: &pgUserCredsSecretName '{{ include "common.release" . }}-cps-pg-user-creds'
27 type: basicAuth
28 externalSecret: '{{ ternary "" (tpl (default "" .Values.postgres.config.pgUserExternalSecret) .) (hasSuffix "cps-pg-user-creds" .Values.postgres.config.pgUserExternalSecret) }}'
29 login: '{{ .Values.postgres.config.pgUserName }}'
30 password: '{{ .Values.postgres.config.pgUserPassword }}'
31 passwordPolicy: generate
Bruno Sakotoc27240b2021-03-08 17:59:44 -050032 - uid: app-user-creds
33 type: basicAuth
34 externalSecret: '{{ tpl (default "" .Values.config.appUserExternalSecret) . }}'
35 login: '{{ .Values.config.appUserName }}'
36 password: '{{ .Values.config.appUserPassword }}'
37 passwordPolicy: generate
puthuparambil.aditya7625e522021-01-22 22:01:50 +010038
39#################################################################
40# Global configuration defaults.
41#################################################################
42
43# bitnami image doesn't support well single quote in password
44passwordStrengthOverride: basic
45global:
46 ingress:
47 virtualhost:
48 baseurl: "simpledemo.onap.org"
49
puthuparambil.adityaf9908a42021-04-12 15:29:38 +010050image: onap/cps-and-nf-proxy:1.0.1
puthuparambil.aditya7625e522021-01-22 22:01:50 +010051containerPort: &svc_port 8080
52
53service:
54 type: ClusterIP
55 name: cps
56 ports:
57 - name: &port http
58 port: *svc_port
59
60pullPolicy: Always
61# flag to enable debugging - application support required
62debugEnabled: false
63nodeSelector: {}
64affinity: {}
65# Resource Limit flavor -By Default using small
66flavor: small
67# default number of instances
68replicaCount: 1
69# Segregation for Different environment (Small and Large)
70resources:
71 small:
72 limits:
73 cpu: 2
74 memory: 2Gi
75 requests:
76 cpu: 1
77 memory: 1Gi
78 large:
79 limits:
80 cpu: 4
81 memory: 4Gi
82 requests:
83 cpu: 2
84 memory: 2Gi
85 unlimited: {}
86# probe configuration parameters
87liveness:
88 initialDelaySeconds: 20
89 periodSeconds: 20
90 # necessary to disable liveness probe when setting breakpoints
91 # in debugger so K8s doesn't restart unresponsive container
92 enabled: true
93 path: /manage/health
94 port: *port
95
96readiness:
97 initialDelaySeconds: 15
98 periodSeconds: 15
99 path: /manage/health
100 port: *port
101
102ingress:
103 enabled: true
104 service:
105 - baseaddr: "cps"
106 path: "/"
107 name: "cps"
108 port: *svc_port
109
110serviceAccount:
111 nameOverride: cps
112 roles:
113 - read
114
115securityContext:
116 user_id: 100
117 group_id: 655533
118
119#################################################################
120# Application configuration defaults.
121#################################################################
Bruno Sakotoc27240b2021-03-08 17:59:44 -0500122
123config:
124
125 # Set it for pre loading xnfdata, else set to null
126 liquibaseLabels: xnf-data-preload
127
128 # REST API basic authentication credentials (passsword is generated if not provided)
129 appUserName: cpsuser
Renu Kumari5a47eaf2021-04-12 08:36:27 -0400130 spring:
131 profile: helm
Bruno Sakotoc27240b2021-03-08 17:59:44 -0500132 #appUserPassword:
133
Renu Kumari5a47eaf2021-04-12 08:36:27 -0400134# Any new property can be added in the env by setting in overrides in the format mentioned below
135# All the added properties must be in "key: value" format insead of yaml.
136# additional:
137# spring.config.max-size: 200
138# spring.config.min-size: 10
139
puthuparambil.aditya7625e522021-01-22 22:01:50 +0100140logging:
141 level: INFO
142 path: /tmp
Bruno Sakotoc27240b2021-03-08 17:59:44 -0500143
puthuparambil.aditya7625e522021-01-22 22:01:50 +0100144#################################################################
145# Postgres overriding defaults in the postgres
146#################################################################
147postgres:
148 nameOverride: &postgresName cps-postgres
149 service:
150 name: *postgresName
151 name2: cps-pg-primary
152 name3: cps-pg-replica
153 container:
154 name:
155 primary: cps-pg-primary
156 replica: cps-pg-replica
157 persistence:
158 mountSubPath: cps/data
159 mountInitPath: cps
160 config:
161 pgUserName: cps
162 pgDatabase: cpsdb
163 pgUserExternalSecret: *pgUserCredsSecretName
164 pgRootPasswordExternalSecret: *pgRootPassSecretName
165
166readinessCheck:
167 wait_for:
Rishi.Chail7b307452021-03-05 12:11:01 +0000168 - cps-postgres