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