[DMAAP] DMaaP ServiceMesh compatibility
[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
22 secrets:
23   - uid: pg-root-pass
24     name: &pgRootPassSecretName '{{ include "common.release" . }}-dmaap-bc-pg-root-pass'
25     type: password
26     externalSecret: '{{ ternary "" (tpl (default "" .Values.postgres.config.pgRootPasswordExternalSecret) .) (hasSuffix "dmaap-bc-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" . }}-dmaap-bc-pg-user-creds'
31     type: basicAuth
32     externalSecret: '{{ ternary "" (tpl (default "" .Values.postgres.config.pgUserExternalSecret) .) (hasSuffix "dmaap-bc-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 pullPolicy: Always
41
42 # application images
43 image: onap/dmaap/dmaap-bc:2.0.8
44
45
46 # application configuration
47 dmaapMessageRouterService: message-router
48
49 # change the following value to point to Windriver instance maintained
50 # by AAF team.
51 # e.g.
52 #aafURL: https://aaf-onap-test.osaaf.org:8095/proxy/
53 aafURL: https://aaf-service:8100/
54 aafLocateUrl: https://aaf-locate:8095
55 topicMgrUser: dmaap-bc@dmaap-bc.onap.org
56 topicMgrPwd: demo123456!
57 adminUser: aaf_admin@people.osaaf.org
58 adminPwd: demo123456!
59
60 #################################################################
61 # AAF part
62 #################################################################
63 certInitializer:
64   nameOverride: dmaap-bc-cert-initializer
65   aafDeployFqi: deployer@people.osaaf.org
66   aafDeployPass: demo123456!
67   # aafDeployCredsExternalSecret: some secret
68   fqdn: dmaap-bc
69   fqi: dmaap-bc@dmaap-bc.onap.org
70   publicFqdn: dmaap-bc.onap.org
71   cadiLatitude: 0.0
72   cadiLongitude: 0.0
73   app_ns: org.osaaf.aaf
74   credsPath: /opt/app/osaaf/local
75
76 persistence:
77   aafCredsPath: /opt/app/osaaf/local/
78
79 # for Casablanca default deployment, leave this true to
80 # get a topic namespace that matches MR.  When set to false,
81 # it will compose the topic namespace using the kubernetes namespace value
82 fixedTopicNamespace: true
83
84 # for quicker deployments in dev, ability to disable using postgres
85 PG:
86   enabled: true
87
88 nodeSelector: {}
89
90 affinity: {}
91
92 # probe configuration parameters
93 liveness:
94   initialDelaySeconds: 10
95   periodSeconds: 10
96   # necessary to disable liveness probe when setting breakpoints
97   # in debugger so K8s doesn't restart unresponsive container
98   port: api
99   enabled: true
100
101 readiness:
102   initialDelaySeconds: 10
103   periodSeconds: 10
104   port: api
105
106
107 service:
108   type: NodePort
109   name: dmaap-bc
110   ports:
111     - name: api
112       port: 8443
113       plain_port: 8080
114       port_protocol: http
115       nodePort: 42
116
117
118 # application configuration override for postgres
119 postgres:
120   nameOverride: dbc-pg
121   service:
122     name: dbc-postgres
123     name2: dbc-pg-primary
124     name3: dbc-pg-replica
125   container:
126     name:
127       primary: dbc-pg-primary
128       replica: dbc-pg-replica
129   config:
130     pgUserName: dmaap_admin
131     pgDatabase: dmaap
132     pgUserExternalSecret: *pgUserCredsSecretName
133     pgRootPasswordExternalSecret: *pgRootPassSecretName
134   persistence:
135     mountSubPath: dbc/data
136     mountInitPath: dbc
137
138 ingress:
139   enabled: false
140   service:
141     - baseaddr: "dmaapbc"
142       name: "dmaap-bc"
143       port: 8443
144   config:
145     ssl: "redirect"
146
147 # Resource Limit flavor -By Default using small
148 flavor: small
149
150 securityContext:
151   user_id: 1000
152   group_id: 101
153
154 # Segregation for Different environment (Small and Large)
155 resources:
156   small:
157     limits:
158       cpu: 2
159       memory: 4Gi
160     requests:
161       cpu: 1
162       memory: 1Gi
163   large:
164     limits:
165       cpu: 4
166       memory: 8Gi
167     requests:
168       cpu: 2
169       memory: 2Gi
170   unlimited: {}
171
172 #Pods Service Account
173 serviceAccount:
174   nameOverride: dmaap-bc
175   roles:
176     - read
177
178 wait_for_job_container:
179   containers:
180     - 'dmaap-provisioning-job'
181