[DCAEMOD] Uses new tpls for repos / images
[oom.git] / kubernetes / dmaap / components / message-router / components / message-router-kafka / values.yaml
1 # Copyright © 2017 Amdocs, Bell Canada
2 # Modifications Copyright © 2018 AT&T
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   persistence: {}
22
23 #################################################################
24 # Application configuration defaults.
25 #################################################################
26 # application image
27 image: onap/dmaap/kafka111:1.0.4
28 pullPolicy: Always
29
30
31 zookeeper:
32   name: message-router-zookeeper
33   port: 2181
34
35 kafka:
36   heapOptions: -Xmx5G -Xms1G
37   jaasOptions: -Djava.security.auth.login.config=/etc/kafka/secrets/jaas/zk_client_jaas.conf
38   jaasOptionsAaf: -Djava.security.auth.login.config=/etc/kafka/secrets/jaas/kafka_server_jaas.conf
39   enableSupport: false
40   protocolMapAaf: INTERNAL_SASL_PLAINTEXT:SASL_PLAINTEXT,EXTERNAL_SASL_PLAINTEXT:SASL_PLAINTEXT
41   protocolMap: INTERNAL_PLAINTEXT:PLAINTEXT,EXTERNAL_PLAINTEXT:PLAINTEXT
42   listenersAaf: EXTERNAL_SASL_PLAINTEXT://0.0.0.0:9091,INTERNAL_SASL_PLAINTEXT://0.0.0.0:9092
43   listeners: EXTERNAL_PLAINTEXT://0.0.0.0:9091,INTERNAL_PLAINTEXT://0.0.0.0:9092
44   authorizer: org.onap.dmaap.kafkaAuthorize.KafkaCustomAuthorizer
45   saslInterBrokerProtocol: PLAIN
46   saslMech: PLAIN
47   interBrokerListernerAaf: INTERNAL_SASL_PLAINTEXT
48   interBrokerListerner: INTERNAL_PLAINTEXT
49
50
51 configurationOverrides:
52   "offsets.topic.replication.factor": "3"
53   "log.dirs": "/var/lib/kafka/data"
54   "log.retention.hours": "168"
55   "num.partitions": "3"
56   "offsets.topic.replication.factor": "3"
57   "transaction.state.log.replication.factor": "1"
58   "transaction.state.log.min.isr": "1"
59   "num.recovery.threads.per.data.dir": "5"
60   "log.retention.hours": "168"
61   "zookeeper.connection.timeout.ms": "6000"
62   "default.replication.factor": "3"
63   "zookeeper.set.acl": "true"
64
65 jmx:
66   port: 5555
67
68 prometheus:
69   jmx:
70     enabled: false
71     image: solsson/kafka-prometheus-jmx-exporter@sha256
72     imageTag: 6f82e2b0464f50da8104acd7363fb9b995001ddff77d248379f8788e78946143
73     port: 5556
74
75 jaas:
76   config:
77     zkClient: kafka
78     zkClientPassword: kafka_secret
79     kafkaAdminUser: admin
80     kafkaAdminPassword: admin_secret
81     #kafkaAdminUserExternal:  some secret
82     #zkClientPasswordExternal: some secret
83
84
85 secrets:
86   - uid: zk-client
87     type: basicAuth
88     externalSecret: '{{ .Values.jaas.config.zkClientPasswordExternal}}'
89     login: '{{ .Values.jaas.config.zkClient }}'
90     password: '{{ .Values.jaas.config.zkClientPassword }}'
91     passwordPolicy: required
92   - uid: kafka-admin
93     type: basicAuth
94     externalSecret: '{{ .Values.jaas.config.kafkaAdminUserExternal}}'
95     login: '{{ .Values.jaas.config.kafkaAdminUser }}'
96     password: '{{ .Values.jaas.config.kafkaAdminPassword }}'
97     passwordPolicy: required
98
99 # flag to enable debugging - application support required
100 debugEnabled: false
101
102 # default number of instances
103 replicaCount: 3
104
105
106 # To access Kafka outside cluster, this value must be set to hard and the number of nodes in K8S cluster must be equal or greater then replica count
107 podAntiAffinityType: soft
108
109 # defult partitions
110 defaultpartitions: 3
111
112 nodeSelector: {}
113
114 nodeAffinity: {}
115
116 affinity: {}
117
118 tolerations: {}
119
120
121
122 # probe configuration parameters
123 liveness:
124   initialDelaySeconds: 70
125   periodSeconds: 20
126   timeoutSeconds: 10
127   # necessary to disable liveness probe when setting breakpoints
128   # in debugger so K8s doesn't restart unresponsive container
129   enabled: true
130
131 readiness:
132   initialDelaySeconds: 90
133   periodSeconds: 20
134   timeoutSeconds: 100
135
136 ## Persist data to a persitent volume
137 persistence:
138   enabled: true
139
140   ## A manually managed Persistent Volume and Claim
141   ## Requires persistence.enabled: true
142   ## If defined, PVC must be created manually before volume will be bound
143   # existingClaim:
144   volumeReclaimPolicy: Retain
145
146   ## database data Persistent Volume Storage Class
147   ## If defined, storageClassName: <storageClass>
148   ## If set to "-", storageClassName: "", which disables dynamic provisioning
149   ## If undefined (the default) or set to null, no storageClassName spec is
150   ##   set, choosing the default provisioner.  (gp2 on AWS, standard on
151   ##   GKE, AWS & OpenStack)
152   ##
153   # storageClass: "-"
154   accessMode: ReadWriteOnce
155   size: 2Gi
156   mountPath: /dockerdata-nfs
157   mountSubPath: message-router/data-kafka
158
159 service:
160   type: NodePort
161   name: message-router-kafka
162   portName: message-router-kafka
163   internalPort: 9092
164   internalSSLPort: 9093
165   externalPort: 9091
166   baseNodePort: 30490
167
168
169
170 ingress:
171   enabled: false
172
173 # Resource Limit flavor -By Default using small
174 flavor: small
175 # Segregation for Different environment (Small and Large)
176 resources:
177   small:
178     limits:
179       cpu: 2000m
180       memory: 4Gi
181     requests:
182       cpu: 500m
183       memory: 1Gi
184   large:
185     limits:
186       cpu: 4000m
187       memory: 8Gi
188     requests:
189       cpu: 1000m
190       memory: 2Gi
191   unlimited: {}