-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Jakub Scholz <[email protected]>
- Loading branch information
Showing
71 changed files
with
2,771 additions
and
243 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
59 changes: 59 additions & 0 deletions
59
examples/cruise-control/kafka-cruise-control-auto-rebalancing.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,59 @@ | ||
apiVersion: kafka.strimzi.io/v1beta2 | ||
kind: Kafka | ||
metadata: | ||
name: my-cluster | ||
spec: | ||
kafka: | ||
version: 3.8.0 | ||
replicas: 3 | ||
listeners: | ||
- name: plain | ||
port: 9092 | ||
type: internal | ||
tls: false | ||
- name: tls | ||
port: 9093 | ||
type: internal | ||
tls: true | ||
config: | ||
offsets.topic.replication.factor: 3 | ||
transaction.state.log.replication.factor: 3 | ||
transaction.state.log.min.isr: 2 | ||
default.replication.factor: 3 | ||
min.insync.replicas: 2 | ||
inter.broker.protocol.version: "3.8" | ||
storage: | ||
type: ephemeral | ||
zookeeper: | ||
replicas: 3 | ||
storage: | ||
type: ephemeral | ||
entityOperator: | ||
topicOperator: {} | ||
userOperator: {} | ||
cruiseControl: | ||
autoRebalance: | ||
- mode: add-brokers | ||
template: | ||
name: my-add-brokers-rebalancing-template | ||
- mode: remove-brokers | ||
template: | ||
name: my-remove-brokers-rebalancing-template | ||
--- | ||
apiVersion: kafka.strimzi.io/v1beta2 | ||
kind: KafkaRebalance | ||
metadata: | ||
name: my-add-brokers-rebalancing-template | ||
annotations: | ||
strimzi.io/rebalance-template: "true" | ||
# no goals specified, using the default goals from the Cruise Control configuration | ||
spec: {} | ||
--- | ||
apiVersion: kafka.strimzi.io/v1beta2 | ||
kind: KafkaRebalance | ||
metadata: | ||
name: my-remove-brokers-rebalancing-template | ||
annotations: | ||
strimzi.io/rebalance-template: "true" | ||
# no goals specified, using the default goals from the Cruise Control configuration | ||
spec: {} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
# The operator will look up the Kafka instance specified and | ||
# create a secret with the details to connect to the listener specified. | ||
# It will also look up the KafkaUser specified and check it has the correct | ||
# authentication mechanism to connect to the listener. If so it will add the | ||
# user credentials to the secret it creates. | ||
# If no listener is specified it will choose one based on the user authentication. | ||
apiVersion: access.strimzi.io/v1alpha1 | ||
kind: KafkaAccess | ||
metadata: | ||
name: my-kafka-access | ||
spec: | ||
kafka: | ||
name: my-cluster | ||
namespace: kafka | ||
listener: tls | ||
user: | ||
kind: KafkaUser | ||
apiGroup: kafka.strimzi.io | ||
name: my-user | ||
namespace: kafka |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
# The operator will look up the Kafka instance specified and | ||
# create a secret with the details to connect to the listener specified. | ||
# If no listener is specified it will choose one, preferring an internal listener. | ||
apiVersion: access.strimzi.io/v1alpha1 | ||
kind: KafkaAccess | ||
metadata: | ||
name: my-kafka-access | ||
spec: | ||
kafka: | ||
name: my-cluster | ||
namespace: kafka | ||
listener: plain |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.