[DCAEMOD] Uses new tpls for repos / images
[oom.git] / kubernetes / dmaap / components / dmaap-bc / values.yaml
1 # Copyright © 2018  AT&T Intellectual Property.  All rights reserved.
2 # Modifications Copyright © 2018 Amdocs,Bell Canada
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   readinessImage: onap/oom/readiness:3.0.1
22   loggingRepository: docker.elastic.co
23   loggingImage: beats/filebeat:5.5.0
24   envsubstImage: dibi/envsubst
25
26 secrets:
27   - uid: pg-root-pass
28     name: &pgRootPassSecretName '{{ include "common.release" . }}-dmaap-bc-pg-root-pass'
29     type: password
30     externalSecret: '{{ ternary "" (tpl (default "" .Values.postgres.config.pgRootPasswordExternalSecret) .) (hasSuffix "dmaap-bc-pg-root-pass" .Values.postgres.config.pgRootPasswordExternalSecret) }}'
31     password: '{{ .Values.postgres.config.pgRootpassword }}'
32     policy: generate
33   - uid: pg-user-creds
34     name: &pgUserCredsSecretName '{{ include "common.release" . }}-dmaap-bc-pg-user-creds'
35     type: basicAuth
36     externalSecret: '{{ ternary "" (tpl (default "" .Values.postgres.config.pgUserExternalSecret) .) (hasSuffix "dmaap-bc-pg-user-creds" .Values.postgres.config.pgUserExternalSecret) }}'
37     login: '{{ .Values.postgres.config.pgUserName }}'
38     password: '{{ .Values.postgres.config.pgUserPassword }}'
39     passwordPolicy: generate
40
41 #################################################################
42 # Application configuration defaults.
43 #################################################################
44 pullPolicy: Always
45
46 # application images
47 repository: nexus3.onap.org:10001
48 #repository:  10.12.7.57:5000
49 image: onap/dmaap/dmaap-bc:2.0.4
50
51
52 # application configuration
53 dmaapMessageRouterService: message-router
54
55 # change the following value to point to Windriver instance maintained
56 # by AAF team.
57 # e.g.
58 #aafURL: https://aaf-onap-test.osaaf.org:8095/proxy/
59 aafURL: https://aaf-service:8100/
60 aafLocateUrl: https://aaf-locate:8095
61 topicMgrUser: dmaap-bc@dmaap-bc.onap.org
62 topicMgrPwd: demo123456!
63 adminUser: aaf_admin@people.osaaf.org
64 adminPwd: demo123456!
65
66 #################################################################
67 # AAF part
68 #################################################################
69 certInitializer:
70   nameOverride: dmaap-bc-cert-initializer
71   aafDeployFqi: deployer@people.osaaf.org
72   aafDeployPass: demo123456!
73   # aafDeployCredsExternalSecret: some secret
74   fqdn: dmaap-bc
75   fqi: dmaap-bc@dmaap-bc.onap.org
76   publicFqdn: dmaap-bc.onap.org
77   cadiLatitude: 0.0
78   cadiLongitude: 0.0
79   app_ns: org.osaaf.aaf
80   credsPath: /opt/app/osaaf/local
81
82 persistence:
83   aafCredsPath: /opt/app/osaaf/local/
84
85 # for Casablanca default deployment, leave this true to
86 # get a topic namespace that matches MR.  When set to false,
87 # it will compose the topic namespace using the kubernetes namespace value
88 fixedTopicNamespace: true
89
90 # for quicker deployments in dev, ability to disable using postgres
91 PG:
92   enabled: true
93
94 nodeSelector: {}
95
96 affinity: {}
97
98 # probe configuration parameters
99 liveness:
100   initialDelaySeconds: 10
101   periodSeconds: 10
102   # necessary to disable liveness probe when setting breakpoints
103   # in debugger so K8s doesn't restart unresponsive container
104   port: api
105   enabled: true
106
107 readiness:
108   initialDelaySeconds: 10
109   periodSeconds: 10
110   port: api
111
112
113 service:
114   type: NodePort
115   name: dmaap-bc
116   ports:
117     - name: api
118       port: 8443
119       plain_port: 8080
120       port_protocol: http
121       nodePort: 42
122
123
124 # application configuration override for postgres
125 postgres:
126   nameOverride: dbc-pg
127   service:
128     name: dbc-postgres
129     name2: dbc-pg-primary
130     name3: dbc-pg-replica
131   container:
132     name:
133       primary: dbc-pg-primary
134       replica: dbc-pg-replica
135   config:
136     pgUserName: dmaap_admin
137     pgDatabase: dmaap
138     pgUserExternalSecret: *pgUserCredsSecretName
139     pgRootPasswordExternalSecret: *pgRootPassSecretName
140   persistence:
141     mountSubPath: dbc/data
142     mountInitPath: dbc
143
144 ingress:
145   enabled: false
146   service:
147     - baseaddr: "dmaapbc"
148       name: "dmaap-bc"
149       port: 8443
150   config:
151     ssl: "redirect"
152
153 # Resource Limit flavor -By Default using small
154 flavor: small
155 # Segregation for Different environment (Small and Large)
156 resources:
157   small:
158     limits:
159       cpu: 2
160       memory: 4Gi
161     requests:
162       cpu: 1
163       memory: 1Gi
164   large:
165     limits:
166       cpu: 4
167       memory: 8Gi
168     requests:
169       cpu: 2
170       memory: 2Gi
171   unlimited: {}