# Default values for kafka. # This is a YAML-formatted file. # Declare variables to be passed into your templates. nameOverride: "kafka" fullnameOverride: "" clusterDomain: "cluster.local" # It is recommended to use a random cluster id for each cluster. # cat /proc/sys/kernel/random/uuid | base64 | cut -b 1-22 #clusterId: "NDlmZWU5YTItYThjNi00Zj" clusterId: "MzYxOWViMzctMTE0YS00YT" image: repository: kafkace/kafka pullPolicy: IfNotPresent tag: v3.7.1 imagePullSecrets: [] rbac: create: false serviceAccount: # Specifies whether a service account should be created create: true # Annotations to add to the service account annotations: {} # The name of the service account to use. # If not set and create is true, a name is generated using the fullname template name: "" securityContext: {} containerPort: controller: 9090 broker: 9092 brokerExternal: 9095 external: 9095 broker: combinedMode: enabled: false replicaCount: 3 terminationGracePeriodSeconds: 60 #heapOpts: "-Xms13240m -Xmx13240m" heapOpts: "-Xms3500m -Xmx3500m" commonEnvs: [] extraEnvs: [] ## broker.config - server.properties 配置 ## 某些关键配置会被环境变量覆盖,例如: node.id advertised.listeners controller.quorum.voters 等 config: num.partitions: "3" default.replication.factor: "3" min.insync.replicas: "1" ## broker.persistence persistence: enabled: true size: 15Gi storageClass: "openebs-hostpath" ## broker.resources resources: limits: cpu: 4 memory: 8Gi requests: cpu: 2 memory: 4Gi ## broker.readinessProbe readinessProbe: initialDelaySeconds: 30 periodSeconds: 20 timeoutSeconds: 5 failureThreshold: 3 ## broker.livenessProbe livenessProbe: {} ## broker.nodeSelector nodeSelector: {} tolerations: [] ## broker.podAnnotations podAnnotations: {} ## broker.antiAffinity antiAffinity: soft antiAffinityTopologyKey: kubernetes.io/hostname podAffinity: {} nodeAffinity: {} ## broker.updateStrategy updateStrategy: type: RollingUpdate ## broker.service service: ## broker.service.type - "ClusterIP" "NodePort" or "LoadBalancer" type: ClusterIP port: 9092 # nodePort: 31092 annotations: {} ## broker.external external: enabled: true service: type: "NodePort" annotations: {} port: 9095 nodePorts: - 30400 - 30401 - 30402 hosts: - 103.29.16.7 controller: enabled: true replicaCount: 3 terminationGracePeriodSeconds: 60 #heapOpts: "-Xms3600m -Xmx3600m" heapOpts: "-Xms3500m -Xmx3500m" commonEnvs: [] extraEnvs: [] persistence: enabled: true size: 10Gi storageClass: "openebs-hostpath" ## controller.resources resources: limits: cpu: 2 memory: 4Gi requests: cpu: 100m memory: 1Gi ## controller.readinessProbe readinessProbe: tcpSocket: port: controller initialDelaySeconds: 30 periodSeconds: 10 timeoutSeconds: 5 failureThreshold: 3 ## controller.livenessProbe livenessProbe: {} # tcpSocket: # port: controller # initialDelaySeconds: 300 # periodSeconds: 30 # timeoutSeconds: 5 # failureThreshold: 5 ## controller.nodeSelector nodeSelector: {} tolerations: [] ## controller.podAnnotations podAnnotations: {} ## controller.antiAffinity antiAffinity: soft antiAffinityTopologyKey: kubernetes.io/hostname nodeAffinity: {} ## controller.updateStrategy updateStrategy: type: RollingUpdate ## controller.service service: type: ClusterIP port: 9090 exporter: enabled: false replicaCount: 1 image: repository: hub.js.sgcc.com.cn/observe/kafka-exporter pullPolicy: IfNotPresent tag: "latest" podAnnotations: {} podLabels: {} nodeSelector: {} tolerations: [] affinity: {} ## exporter.resources resources: limits: cpu: 1 memory: 1Gi requests: cpu: 50m memory: 128Mi ## exporter.service service: annotations: {} ui: enabled: false replicaCount: 1 image: repository: provectuslabs/kafka-ui pullPolicy: IfNotPresent tag: v0.7.1 resources: limits: cpu: 1 memory: 2Gi requests: cpu: 50m memory: 256Mi ## ui.readinessProbe readinessProbe: httpGet: path: / port: http livenessProbe: httpGet: path: / port: http initialDelaySeconds: 60 failureThreshold: 5 ## ui.service service: annotations: {} type: ClusterIP ## ui.ingress ingress: enabled: false className: "" annotations: {} # nginx.ingress.kubernetes.io/whitelist-source-range: 10.0.0.0/8,192.168.0.0/16 hosts: - host: kafka-ui.example.com tls: [] # - secretName: kafka-example-tls # hosts: # - kafka-ui.example.com ## ui.nodeSelector nodeSelector: {} tolerations: [] affinity: {}