Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 8 additions & 3 deletions examples/kafka/default.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,18 +26,23 @@ spec:
default.replication.factor: 1
min.insync.replicas: 1
inter.broker.protocol.version: "3.1"
auto.create.topics.enable: false
storage:
type: ephemeral
type: persistent-claim
size: 200Gi
class: ${DEFAULT_SC}
metricsConfig:
type: jmxPrometheusExporter
valueFrom:
configMapKeyRef:
name: kafka-metrics
key: kafka-metrics-config.yml
zookeeper:
replicas: 1
replicas: 3
storage:
type: ephemeral
type: persistent-claim
size: 20Gi
class: ${DEFAULT_SC}
metricsConfig:
type: jmxPrometheusExporter
valueFrom:
Expand Down
10 changes: 7 additions & 3 deletions examples/kafka/tls.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,17 +27,21 @@ spec:
min.insync.replicas: 1
inter.broker.protocol.version: "3.1"
storage:
type: ephemeral
type: persistent-claim
size: 200Gi
class: ${DEFAULT_SC}
metricsConfig:
type: jmxPrometheusExporter
valueFrom:
configMapKeyRef:
name: kafka-metrics
key: kafka-metrics-config.yml
zookeeper:
replicas: 1
replicas: 3
storage:
type: ephemeral
type: persistent-claim
size: 20Gi
class: ${DEFAULT_SC}
metricsConfig:
type: jmxPrometheusExporter
valueFrom:
Expand Down
6 changes: 6 additions & 0 deletions kafka.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,12 @@ You can use the following command to deploy the strimzi operator :
export NAMESPACE=netobserv
kubectl create -f "https://strimzi.io/install/latest?namespace=$NAMESPACE" -n $NAMESPACE
```
## Update storage class of kafka cluster
```
export DEFAULT_SC=$(kubectl get storageclass -o=jsonpath='{.items[?(@.metadata.annotations.storageclass\.kubernetes\.io/is-default-class=="true")].metadata.name}')
tmpfile=$(mktemp)
envsubst < ./examples/kafka/default.yaml > $tmpfile && mv $tmpfile ./examples/kafka/default.yaml
```

## Creating the default cluster

Expand Down