Skip to content

Upgrade v0.48.0 → v1.1.0

This document describes the upgrade procedure for the Strimzi Kafka Operator from v0.48.0 to v1.1.0.

The upgrade requires intermediate versions because of API and CRD changes introduced in newer Strimzi releases.

Upgrade path:

v0.48.0
|
v
v0.49.1
|
v
v0.50.1
|
v
v0.51.0
|
v
v1.0.0
|
v
v1.0.1
|
v
v1.1.0

Before starting:

  • Verify the Kafka cluster is healthy.
  • Ensure you have Kubernetes cluster-admin permissions.
  • Ensure Helm is configured with the Strimzi repository.
  • Backup Strimzi resources and CRDs.

Verify Kafka cluster:

Terminal window
kubectl get kafka inma-kafka-cluster -n inma-kafka

Backup current CRDs:

Terminal window
kubectl get crd -l app=strimzi -o yaml > strimzi-crds-backup.yaml

Backup Helm release:

Terminal window
helm list -n inma-kafka

Step 1 - Upgrade Strimzi Operator to v0.49.1

Section titled “Step 1 - Upgrade Strimzi Operator to v0.49.1”

Apply CRDs:

Terminal window
kubectl apply -f https://github.com/strimzi/strimzi-kafka-operator/releases/download/0.49.1/strimzi-crds-0.49.1.yaml

Update Helm repository:

Terminal window
helm repo update

Upgrade operator:

Terminal window
helm upgrade strimzi strimzi/strimzi-kafka-operator \
--version 0.49.1 \
--namespace inma-kafka

Verify:

Terminal window
kubectl get pods -n inma-kafka

Step 2 - Upgrade Strimzi Operator to v0.50.1

Section titled “Step 2 - Upgrade Strimzi Operator to v0.50.1”

Apply CRDs:

Terminal window
kubectl apply -f https://github.com/strimzi/strimzi-kafka-operator/releases/download/0.50.1/strimzi-crds-0.50.1.yaml

Update Helm repository:

Terminal window
helm repo update

Upgrade operator:

Terminal window
helm upgrade strimzi strimzi/strimzi-kafka-operator \
--version 0.50.1 \
--namespace inma-kafka

Verify:

Terminal window
kubectl get pods -n inma-kafka

Step 3 - Upgrade Strimzi Operator to v0.51.0

Section titled “Step 3 - Upgrade Strimzi Operator to v0.51.0”

Apply CRDs:

Terminal window
kubectl apply -f https://github.com/strimzi/strimzi-kafka-operator/releases/download/0.51.0/strimzi-crds-0.51.0.yaml

Update Helm repository:

Terminal window
helm repo update

Upgrade operator:

Terminal window
helm upgrade strimzi strimzi/strimzi-kafka-operator \
--version 0.51.0 \
--namespace inma-kafka

Check CRD storage versions:

Terminal window
kubectl get crd -l app=strimzi \
-o custom-columns="NAME:.metadata.name,STORAGE-VERSIONS:.status.storedVersions"

Detailed check:

Terminal window
kubectl get crd -o json | jq -r '
.items[]
| select(.metadata.name | contains("strimzi"))
| "\(.metadata.name) stored=\(.status.storedVersions) spec=\(.spec.versions[].name)"
'

Pause reconciliation before CRD migration:

Terminal window
kubectl annotate kafka inma-kafka-cluster \
-n inma-kafka \
strimzi.io/pause-reconciliation="true" \
--overwrite

Verify:

Terminal window
kubectl get kafka inma-kafka-cluster -n inma-kafka -o yaml

Create the following file:

strimzi-v1-api-conversion.yaml

Content:

apiVersion: v1
kind: ServiceAccount
metadata:
name: strimzi-v1-api-conversion
namespace: inma-kafka
---
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRole
metadata:
name: strimzi-v1-api-conversion
rules:
- apiGroups:
- kafka.strimzi.io
resources:
- kafkas
- kafkanodepools
- kafkaconnects
- kafkaconnectors
- kafkabridges
- kafkamirrormaker2s
- kafkarebalances
- kafkatopics
- kafkausers
verbs:
- get
- list
- patch
- update
- apiGroups:
- core.strimzi.io
resources:
- strimzipodsets
verbs:
- get
- list
- patch
- update
- apiGroups:
- apiextensions.k8s.io
resources:
- customresourcedefinitions
- customresourcedefinitions/status
verbs:
- get
- list
- patch
- update
---
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRoleBinding
metadata:
name: strimzi-v1-api-conversion
subjects:
- kind: ServiceAccount
name: strimzi-v1-api-conversion
namespace: inma-kafka
roleRef:
kind: ClusterRole
name: strimzi-v1-api-conversion
apiGroup: rbac.authorization.k8s.io
---
apiVersion: batch/v1
kind: Job
metadata:
name: strimzi-v1-api-conversion
namespace: inma-kafka
spec:
template:
spec:
serviceAccountName: strimzi-v1-api-conversion
containers:
- name: strimzi-v1-api-conversion
image: quay.io/strimzi/operator:1.0.1
command:
- /opt/v1-api-conversion/bin/v1-api-conversion.sh
- convert-resource
restartPolicy: OnFailure

Apply:

Terminal window
kubectl apply -f strimzi-v1-api-conversion.yaml

Monitor:

Terminal window
kubectl logs job/strimzi-v1-api-conversion -n inma-kafka

After all resources are converted, change the Job command:

From:

command:
- /opt/v1-api-conversion/bin/v1-api-conversion.sh
- convert-resource

To:

command:
- /opt/v1-api-conversion/bin/v1-api-conversion.sh
- crd-upgrade

Run again:

Terminal window
kubectl apply -f strimzi-v1-api-conversion.yaml

Remove temporary resources:

Terminal window
kubectl delete job strimzi-v1-api-conversion -n inma-kafka
kubectl delete clusterrolebinding strimzi-v1-api-conversion
kubectl delete clusterrole strimzi-v1-api-conversion
kubectl delete serviceaccount strimzi-v1-api-conversion \
-n inma-kafka

Enable reconciliation:

Terminal window
kubectl annotate kafka inma-kafka-cluster \
-n inma-kafka \
strimzi.io/pause-reconciliation- \
--overwrite

Verify:

Terminal window
kubectl get kafka inma-kafka-cluster -n inma-kafka

Check resources:

Terminal window
kubectl get kafkamirrormakers --all-namespaces

If no resources exist:

Terminal window
kubectl delete crd kafkamirrormakers.kafka.strimzi.io

Check resources:

Terminal window
kubectl get kafkaconnects2is --all-namespaces

If no resources exist:

Terminal window
kubectl delete crd kafkaconnects2is.kafka.strimzi.io

Apply CRDs:

Terminal window
kubectl apply -f https://github.com/strimzi/strimzi-kafka-operator/releases/download/1.0.0/strimzi-crds-1.0.0.yaml

Upgrade:

Terminal window
helm repo update
helm upgrade strimzi strimzi/strimzi-kafka-operator \
--version 1.0.0 \
--namespace inma-kafka

Apply CRDs:

Terminal window
kubectl apply -f https://github.com/strimzi/strimzi-kafka-operator/releases/download/1.0.1/strimzi-crds-1.0.1.yaml

Upgrade:

Terminal window
helm repo update
helm upgrade strimzi strimzi/strimzi-kafka-operator \
--version 1.0.1 \
--namespace inma-kafka

Apply CRDs:

Terminal window
kubectl apply -f https://github.com/strimzi/strimzi-kafka-operator/releases/download/1.1.0/strimzi-crds-1.1.0.yaml

Upgrade:

Terminal window
helm repo update
helm upgrade strimzi strimzi/strimzi-kafka-operator \
--version 1.1.0 \
--namespace inma-kafka

Check operator:

Terminal window
kubectl get pods -n inma-kafka

Check Kafka cluster:

Terminal window
kubectl get kafka inma-kafka-cluster \
-n inma-kafka

Check CRD versions:

Terminal window
kubectl get crd -l app=strimzi \
-o custom-columns="NAME:.metadata.name,STORAGE-VERSIONS:.status.storedVersions"

Expected result:

  • Strimzi Operator version: 1.1.0
  • Kafka cluster status: Ready
  • No reconciliation errors
  • Deprecated CRDs removed

Before starting:

  • Keep CRD backups.
  • Keep Helm release history.

Check Helm history:

Terminal window
helm history strimzi -n inma-kafka

Rollback example:

Terminal window
helm rollback strimzi <REVISION> -n inma-kafka

CRD rollback may not be possible after API conversion. Follow Strimzi compatibility guidance before attempting rollback.