[DMAAP] Update datarouter image versions
[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   persistence: {}
21
22 #################################################################
23 # Secrets metaconfig
24 #################################################################
25 secrets:
26   - uid: pg-root-pass
27     name: &pgRootPassSecretName '{{ include "common.release" . }}-dmaap-bc-pg-root-pass'
28     type: password
29     externalSecret: '{{ ternary "" (tpl (default "" .Values.postgres.config.pgRootPasswordExternalSecret) .) (hasSuffix "dmaap-bc-pg-root-pass" .Values.postgres.config.pgRootPasswordExternalSecret) }}'
30     password: '{{ .Values.postgres.config.pgRootpassword }}'
31     policy: generate
32   - uid: pg-user-creds
33     name: &pgUserCredsSecretName '{{ include "common.release" . }}-dmaap-bc-pg-user-creds'
34     type: basicAuth
35     externalSecret: '{{ ternary "" (tpl (default "" .Values.postgres.config.pgUserExternalSecret) .) (hasSuffix "dmaap-bc-pg-user-creds" .Values.postgres.config.pgUserExternalSecret) }}'
36     login: '{{ .Values.postgres.config.pgUserName }}'
37     password: '{{ .Values.postgres.config.pgUserPassword }}'
38     passwordPolicy: generate
39
40 #################################################################
41 # Application configuration defaults.
42 #################################################################
43 # application images
44 image: onap/dmaap/dmaap-bc:2.0.12
45 pullPolicy: Always
46
47 #DMaaP Bus Controller client image for provisioning at deploy time
48 dbcClientImage: onap/dmaap/dbc-client:2.0.12
49
50 # application configuration
51 dmaapMessageRouterService: &mr_name message-router
52 dmaapDataRouterProvService: &dr_prov_name dmaap-dr-prov
53 dmaapDataRouterNodeService: &dr_node_name dmaap-dr-node
54
55 nodeSelector: {}
56
57 affinity: {}
58
59 containerPort: &svc_port 8080
60
61 service:
62   type: ClusterIP
63   name: &svc_name dmaap-bc
64   ports:
65     - name: &port http
66       port: *svc_port
67
68 ingress:
69   enabled: false
70   service:
71     - baseaddr: "dmaap-bc-api"
72       name: *svc_name
73       port: *svc_port
74   config:
75     ssl: "redirect"
76
77 # probe configuration parameters
78 liveness:
79   initialDelaySeconds: 10
80   periodSeconds: 10
81   # necessary to disable liveness probe when setting breakpoints
82   # in debugger so K8s doesn't restart unresponsive container
83   port: *svc_port
84   enabled: true
85
86 readiness:
87   initialDelaySeconds: 10
88   periodSeconds: 10
89   port: *svc_port
90
91 usePostgres: &use_pg true
92
93 postgres:
94 # For Dev deployments, use in memory DB
95 # postgres
96 #   enabled: false
97   enabled: true
98   nameOverride: &pg_name dbc-postgres
99   service:
100     name: *pg_name
101     name2: dbc-pg-primary
102     name3: dbc-pg-replica
103   container:
104     name:
105       primary: dbc-pg-primary
106       replica: dbc-pg-replica
107   config:
108     pgUserName: dmaap_admin
109     pgDatabase: dmaap
110     pgUserExternalSecret: *pgUserCredsSecretName
111     pgRootPasswordExternalSecret: *pgRootPassSecretName
112   persistence:
113     mountSubPath: dbc/data
114     mountInitPath: dbc
115
116 # Resource Limit flavor -By Default using small
117 flavor: small
118
119 # Segregation for Different environment (Small and Large)
120 resources:
121   small:
122     limits:
123       cpu: 999
124       memory: 1Gi
125     requests:
126       cpu: 1
127       memory: 1Gi
128   large:
129     limits:
130       cpu: 999
131       memory: 2Gi
132     requests:
133       cpu: 2
134       memory: 2Gi
135   unlimited: {}
136
137 securityContext:
138   user_id: 1000
139   group_id: 101
140
141 #Pods Service Account
142 serviceAccount:
143   nameOverride: *svc_name
144   roles:
145     - read
146
147 readinessCheck:
148   wait_for:
149     - *mr_name
150     - *dr_node_name
151
152 wait_for_job_container:
153   containers:
154     - 'dmaap-provisioning-job'