Skip to content

Commit

Permalink
Change paths after zookeeper -> kraft migration (#381)
Browse files Browse the repository at this point in the history
Signed-off-by: Jakub Stejskal <[email protected]>
  • Loading branch information
Frawless authored Sep 6, 2024
1 parent 95f1c35 commit dc20834
Show file tree
Hide file tree
Showing 3 changed files with 52 additions and 30 deletions.
78 changes: 50 additions & 28 deletions install/roles/automation-hub/templates/strimzi/kafka/00-kafka.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,14 +22,38 @@ spec:
limits:
memory: 1Gi
cpu: "1"
template:
clusterCaCert:
metadata:
annotations:
replicator.v1.mittwald.de/replicate-to-matching: "strimzi.io/sync-secrets=true"
pod:
affinity:
nodeAffinity:
requiredDuringSchedulingIgnoredDuringExecution:
nodeSelectorTerms:
- matchExpressions:
- key: nodetype
operator: In
values:
- worker
topologySpreadConstraints:
# Deploy Kafka pods with spread with difference max 1 pod
- maxSkew: 4
# All nodes with same key are considered as one group, so we should pick a key, which has different values on the nodes
topologyKey: kubernetes.io/hostname
whenUnsatisfiable: DoNotSchedule
labelSelector:
matchLabels:
# label on Kafka pods
strimzi.io/name: event-bus-kafka
---
apiVersion: kafka.strimzi.io/v1beta2
kind: KafkaNodePool
metadata:
name: broker
labels:
strimzi.io/cluster: event-bus
mode: kraft
spec:
replicas: 5
roles:
Expand All @@ -48,6 +72,31 @@ spec:
limits:
memory: 2Gi
cpu: "1"
template:
clusterCaCert:
metadata:
annotations:
replicator.v1.mittwald.de/replicate-to-matching: "strimzi.io/sync-secrets=true"
pod:
affinity:
nodeAffinity:
requiredDuringSchedulingIgnoredDuringExecution:
nodeSelectorTerms:
- matchExpressions:
- key: nodetype
operator: In
values:
- worker
topologySpreadConstraints:
# Deploy Kafka pods with spread with difference max 1 pod
- maxSkew: 4
# All nodes with same key are considered as one group, so we should pick a key, which has different values on the nodes
topologyKey: kubernetes.io/hostname
whenUnsatisfiable: DoNotSchedule
labelSelector:
matchLabels:
# label on Kafka pods
strimzi.io/name: event-bus-kafka
---
apiVersion: kafka.strimzi.io/v1beta2
kind: Kafka
Expand Down Expand Up @@ -99,33 +148,6 @@ spec:
configMapKeyRef:
key: event-bus-kafka-jmx-exporter-configuration.yaml
name: event-bus-kafka-jmx-exporter-configuration
template:
clusterCaCert:
metadata:
annotations:
replicator.v1.mittwald.de/replicate-to-matching: "strimzi.io/sync-secrets=true"
podDisruptionBudget:
maxUnavailable: 0
pod:
affinity:
nodeAffinity:
requiredDuringSchedulingIgnoredDuringExecution:
nodeSelectorTerms:
- matchExpressions:
- key: nodetype
operator: In
values:
- worker
topologySpreadConstraints:
# Deploy Kafka pods with spread with difference max 1 pod
- maxSkew: 4
# All nodes with same key are considered as one group, so we should pick a key, which has different values on the nodes
topologyKey: kubernetes.io/hostname
whenUnsatisfiable: DoNotSchedule
labelSelector:
matchLabels:
# label on Kafka pods
strimzi.io/name: event-bus-kafka
entityOperator:
template:
pod:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ data:
set -x
set -e
wget https://raw.githubusercontent.com/skodjob/deployment-hub/main/strimzi/zookeeper-mode/cluster-operator/060-Deployment-strimzi-cluster-operator.yaml -O "${WORKSPACE}"/deployment-operator.yaml
wget https://raw.githubusercontent.com/skodjob/deployment-hub/main/strimzi/main/cluster-operator/060-Deployment-strimzi-cluster-operator.yaml -O "${WORKSPACE}"/deployment-operator.yaml
DIGEST_OPERATOR=$(skopeo inspect docker://quay.io/strimzi/operator:latest | jq -r '.Digest' )
if ! grep "${DIGEST_OPERATOR}" "${WORKSPACE}"/deployment-operator.yaml; then
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ spec:
- name: SHARED_YAML_BUNDLE_FILES
value: "./strimzi/cluster-operator-common/"
- name: YAML_BUNDLE_PATHS
value: "./strimzi/zookeeper-mode/cluster-operator/,./strimzi/kraft-mode/cluster-operator"
value: "./strimzi/main/cluster-operator/,./strimzi/mirror/cluster-operator"
- name: TARGET_ORG_REPO
value: "quay.io/strimzi"
- name: BRANCH
Expand Down

0 comments on commit dc20834

Please sign in to comment.