values.yaml 4.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257
  1. # Default values for kafka.
  2. # This is a YAML-formatted file.
  3. # Declare variables to be passed into your templates.
  4. nameOverride: "kafka"
  5. fullnameOverride: ""
  6. clusterDomain: "cluster.local"
  7. # It is recommended to use a random cluster id for each cluster.
  8. # cat /proc/sys/kernel/random/uuid | base64 | cut -b 1-22
  9. #clusterId: "NDlmZWU5YTItYThjNi00Zj"
  10. clusterId: "MzYxOWViMzctMTE0YS00YT"
  11. image:
  12. repository: kafkace/kafka
  13. pullPolicy: IfNotPresent
  14. tag: v3.7.1
  15. imagePullSecrets: []
  16. rbac:
  17. create: false
  18. serviceAccount:
  19. # Specifies whether a service account should be created
  20. create: true
  21. # Annotations to add to the service account
  22. annotations: {}
  23. # The name of the service account to use.
  24. # If not set and create is true, a name is generated using the fullname template
  25. name: ""
  26. securityContext: {}
  27. containerPort:
  28. controller: 9090
  29. broker: 9092
  30. brokerExternal: 9095
  31. external: 9095
  32. broker:
  33. combinedMode:
  34. enabled: false
  35. replicaCount: 3
  36. terminationGracePeriodSeconds: 60
  37. #heapOpts: "-Xms13240m -Xmx13240m"
  38. heapOpts: "-Xms3500m -Xmx3500m"
  39. commonEnvs: []
  40. extraEnvs: []
  41. ## broker.config - server.properties 配置
  42. ## 某些关键配置会被环境变量覆盖,例如: node.id advertised.listeners controller.quorum.voters 等
  43. config:
  44. num.partitions: "3"
  45. default.replication.factor: "3"
  46. min.insync.replicas: "1"
  47. ## broker.persistence
  48. persistence:
  49. enabled: true
  50. size: 15Gi
  51. storageClass: "openebs-hostpath"
  52. ## broker.resources
  53. resources:
  54. limits:
  55. cpu: 4
  56. memory: 8Gi
  57. requests:
  58. cpu: 2
  59. memory: 4Gi
  60. ## broker.readinessProbe
  61. readinessProbe:
  62. initialDelaySeconds: 30
  63. periodSeconds: 20
  64. timeoutSeconds: 5
  65. failureThreshold: 3
  66. ## broker.livenessProbe
  67. livenessProbe: {}
  68. ## broker.nodeSelector
  69. nodeSelector: {}
  70. tolerations: []
  71. ## broker.podAnnotations
  72. podAnnotations: {}
  73. ## broker.antiAffinity
  74. antiAffinity: soft
  75. antiAffinityTopologyKey: kubernetes.io/hostname
  76. podAffinity: {}
  77. nodeAffinity: {}
  78. ## broker.updateStrategy
  79. updateStrategy:
  80. type: RollingUpdate
  81. ## broker.service
  82. service:
  83. ## broker.service.type - "ClusterIP" "NodePort" or "LoadBalancer"
  84. type: ClusterIP
  85. port: 9092
  86. # nodePort: 31092
  87. annotations: {}
  88. ## broker.external
  89. external:
  90. enabled: true
  91. service:
  92. type: "NodePort"
  93. annotations: {}
  94. port: 9095
  95. nodePorts:
  96. - 30400
  97. - 30401
  98. - 30402
  99. hosts:
  100. - 103.29.16.7
  101. controller:
  102. enabled: true
  103. replicaCount: 3
  104. terminationGracePeriodSeconds: 60
  105. #heapOpts: "-Xms3600m -Xmx3600m"
  106. heapOpts: "-Xms3500m -Xmx3500m"
  107. commonEnvs: []
  108. extraEnvs: []
  109. persistence:
  110. enabled: true
  111. size: 10Gi
  112. storageClass: "openebs-hostpath"
  113. ## controller.resources
  114. resources:
  115. limits:
  116. cpu: 2
  117. memory: 4Gi
  118. requests:
  119. cpu: 100m
  120. memory: 1Gi
  121. ## controller.readinessProbe
  122. readinessProbe:
  123. tcpSocket:
  124. port: controller
  125. initialDelaySeconds: 30
  126. periodSeconds: 10
  127. timeoutSeconds: 5
  128. failureThreshold: 3
  129. ## controller.livenessProbe
  130. livenessProbe: {}
  131. # tcpSocket:
  132. # port: controller
  133. # initialDelaySeconds: 300
  134. # periodSeconds: 30
  135. # timeoutSeconds: 5
  136. # failureThreshold: 5
  137. ## controller.nodeSelector
  138. nodeSelector: {}
  139. tolerations: []
  140. ## controller.podAnnotations
  141. podAnnotations: {}
  142. ## controller.antiAffinity
  143. antiAffinity: soft
  144. antiAffinityTopologyKey: kubernetes.io/hostname
  145. nodeAffinity: {}
  146. ## controller.updateStrategy
  147. updateStrategy:
  148. type: RollingUpdate
  149. ## controller.service
  150. service:
  151. type: ClusterIP
  152. port: 9090
  153. exporter:
  154. enabled: false
  155. replicaCount: 1
  156. image:
  157. repository: hub.js.sgcc.com.cn/observe/kafka-exporter
  158. pullPolicy: IfNotPresent
  159. tag: "latest"
  160. podAnnotations: {}
  161. podLabels: {}
  162. nodeSelector: {}
  163. tolerations: []
  164. affinity: {}
  165. ## exporter.resources
  166. resources:
  167. limits:
  168. cpu: 1
  169. memory: 1Gi
  170. requests:
  171. cpu: 50m
  172. memory: 128Mi
  173. ## exporter.service
  174. service:
  175. annotations: {}
  176. ui:
  177. enabled: false
  178. replicaCount: 1
  179. image:
  180. repository: provectuslabs/kafka-ui
  181. pullPolicy: IfNotPresent
  182. tag: v0.7.1
  183. resources:
  184. limits:
  185. cpu: 1
  186. memory: 2Gi
  187. requests:
  188. cpu: 50m
  189. memory: 256Mi
  190. ## ui.readinessProbe
  191. readinessProbe:
  192. httpGet:
  193. path: /
  194. port: http
  195. livenessProbe:
  196. httpGet:
  197. path: /
  198. port: http
  199. initialDelaySeconds: 60
  200. failureThreshold: 5
  201. ## ui.service
  202. service:
  203. annotations: {}
  204. type: ClusterIP
  205. ## ui.ingress
  206. ingress:
  207. enabled: false
  208. className: ""
  209. annotations: {}
  210. # nginx.ingress.kubernetes.io/whitelist-source-range: 10.0.0.0/8,192.168.0.0/16
  211. hosts:
  212. - host: kafka-ui.example.com
  213. tls: []
  214. # - secretName: kafka-example-tls
  215. # hosts:
  216. # - kafka-ui.example.com
  217. ## ui.nodeSelector
  218. nodeSelector: {}
  219. tolerations: []
  220. affinity: {}