blob: 2c28231490322637f30790165edb552d78c972bf [file] [log] [blame]
puthuparambil.aditya7625e522021-01-22 22:01:50 +01001# Copyright (C) 2021 Pantheon.tech, Orange
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
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
32
33#################################################################
34# Global configuration defaults.
35#################################################################
36
37# bitnami image doesn't support well single quote in password
38passwordStrengthOverride: basic
39global:
40 ingress:
41 virtualhost:
42 baseurl: "simpledemo.onap.org"
43
Rishi.Chail7b307452021-03-05 12:11:01 +000044image: onap/cps-and-nf-proxy:1.0.0
puthuparambil.aditya7625e522021-01-22 22:01:50 +010045containerPort: &svc_port 8080
46
Rishi.Chail7b307452021-03-05 12:11:01 +000047config:
48 # Set it for pre loading xnfdata, else set to null
49 liquibaseLabels: xnf-data-preload
50
puthuparambil.aditya7625e522021-01-22 22:01:50 +010051service:
52 type: ClusterIP
53 name: cps
54 ports:
55 - name: &port http
56 port: *svc_port
57
58pullPolicy: Always
59# flag to enable debugging - application support required
60debugEnabled: false
61nodeSelector: {}
62affinity: {}
63# Resource Limit flavor -By Default using small
64flavor: small
65# default number of instances
66replicaCount: 1
67# Segregation for Different environment (Small and Large)
68resources:
69 small:
70 limits:
71 cpu: 2
72 memory: 2Gi
73 requests:
74 cpu: 1
75 memory: 1Gi
76 large:
77 limits:
78 cpu: 4
79 memory: 4Gi
80 requests:
81 cpu: 2
82 memory: 2Gi
83 unlimited: {}
84# probe configuration parameters
85liveness:
86 initialDelaySeconds: 20
87 periodSeconds: 20
88 # necessary to disable liveness probe when setting breakpoints
89 # in debugger so K8s doesn't restart unresponsive container
90 enabled: true
91 path: /manage/health
92 port: *port
93
94readiness:
95 initialDelaySeconds: 15
96 periodSeconds: 15
97 path: /manage/health
98 port: *port
99
100ingress:
101 enabled: true
102 service:
103 - baseaddr: "cps"
104 path: "/"
105 name: "cps"
106 port: *svc_port
107
108serviceAccount:
109 nameOverride: cps
110 roles:
111 - read
112
113securityContext:
114 user_id: 100
115 group_id: 655533
116
117#################################################################
118# Application configuration defaults.
119#################################################################
120logging:
121 level: INFO
122 path: /tmp
123#################################################################
124# Postgres overriding defaults in the postgres
125#################################################################
126postgres:
127 nameOverride: &postgresName cps-postgres
128 service:
129 name: *postgresName
130 name2: cps-pg-primary
131 name3: cps-pg-replica
132 container:
133 name:
134 primary: cps-pg-primary
135 replica: cps-pg-replica
136 persistence:
137 mountSubPath: cps/data
138 mountInitPath: cps
139 config:
140 pgUserName: cps
141 pgDatabase: cpsdb
142 pgUserExternalSecret: *pgUserCredsSecretName
143 pgRootPasswordExternalSecret: *pgRootPassSecretName
144
145readinessCheck:
146 wait_for:
Rishi.Chail7b307452021-03-05 12:11:01 +0000147 - cps-postgres