Skip to content

Instantly share code, notes, and snippets.

@MaxRink
Created November 25, 2020 12:04
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save MaxRink/0c4ab02864a1a709bf6131d0bc124cd1 to your computer and use it in GitHub Desktop.
Save MaxRink/0c4ab02864a1a709bf6131d0bc124cd1 to your computer and use it in GitHub Desktop.
apiVersion: kafka.strimzi.io/v1beta1
kind: Kafka
metadata:
name: test-cluster
namespace: kafka
spec:
kafka:
version: 2.6.0
replicas: 3
resources:
requests:
memory: 20Gi
cpu: "6"
limits:
memory: 20Gi
cpu: "12"
jvmOptions:
-Xms: 8192m
-Xmx: 8192m
listeners:
- name: plain
port: 9092
type: internal
tls: false
- name: tls
port: 9093
type: internal
tls: true
# - name: external1
# port: 9094
# type: loadbalancer
# tls: true
# authentication:
# type: tls
rack:
topologyKey: kubernetes.io/hostname
metrics: {}
readinessProbe:
initialDelaySeconds: 15
timeoutSeconds: 5
livenessProbe:
initialDelaySeconds: 15
timeoutSeconds: 5
config:
offsets.topic.replication.factor: 3
transaction.state.log.replication.factor: 3
transaction.state.log.min.isr: 2
log.message.format.version: "2.6"
storage:
type: persistent-claim
size: 1000Gi
class: pure-block
deleteClaim: true
template:
pod:
affinity:
podAntiAffinity:
preferredDuringSchedulingIgnoredDuringExecution:
- weight: 100
podAffinityTerm:
labelSelector:
matchLabels:
elasticsearch.k8s.elastic.co/cluster-name: data-cluster
topologyKey: kubernetes.io/hostname
zookeeper:
replicas: 3
storage:
type: persistent-claim
size: 1000Gi
class: pure-block
deleteClaim: true
entityOperator:
topicOperator: {}
userOperator: {}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment