|
| 1 | +// This module is included in the following assemblies: |
| 2 | +// |
| 3 | +// assembly-upgrade.adoc |
| 4 | + |
| 5 | +[id='proc-upgrading-the-cluster-operator-0-10-0-to-0-11-0-{context}'] |
| 6 | += Upgrading the Cluster Operator from 0.10.0 to 0.11.0 |
| 7 | + |
| 8 | +This procedure will describe how to upgrade a Cluster Operator deployment from version 0.10.0 to version 0.11.0. |
| 9 | +The availability of Kafka clusters managed by the Cluster Operator is not affected by the upgrade operation. |
| 10 | + |
| 11 | +.Prerequisites |
| 12 | + |
| 13 | +* An existing version 0.10.0 Cluster Operator deployment to be upgraded. |
| 14 | + |
| 15 | +.Procedure |
| 16 | + |
| 17 | +. Backup the existing Cluster Operator resources. |
| 18 | ++ |
| 19 | +ifdef::Kubernetes[] |
| 20 | +On {KubernetesName} use `kubectl get`: |
| 21 | ++ |
| 22 | +---- |
| 23 | +kubectl get all -l app=strimzi > strimzi-backup.yaml |
| 24 | +---- |
| 25 | ++ |
| 26 | +endif::Kubernetes[] |
| 27 | +On {OpenShiftName} use `oc get`: |
| 28 | ++ |
| 29 | +---- |
| 30 | +oc get -l all app=strimzi > strimzi-backup.yaml |
| 31 | +---- |
| 32 | + |
| 33 | +. Update the Cluster Operator. |
| 34 | +You will need to modify the installation files according to the namespace the Cluster Operator is running in. |
| 35 | ++ |
| 36 | +include::frag-cluster-operator-namespace-sed.adoc[] |
| 37 | ++ |
| 38 | +If you modified one or more environment variables in your existing Cluster Operator `Deployment`, edit |
| 39 | +`install/cluster-operator/050-Deployment-cluster-operator.yaml` to reflect the changes that you made. |
| 40 | + |
| 41 | +. When you have an updated configuration you can deploy it along with the rest of the install resources. |
| 42 | ++ |
| 43 | +ifdef::Kubernetes[] |
| 44 | +On {KubernetesName} use `kubectl apply`: |
| 45 | ++ |
| 46 | +---- |
| 47 | +kubectl apply -f install/cluster-operator |
| 48 | +---- |
| 49 | ++ |
| 50 | +endif::Kubernetes[] |
| 51 | +On {OpenShiftName} use `oc apply`: |
| 52 | ++ |
| 53 | +---- |
| 54 | +oc apply -f install/cluster-operator |
| 55 | +---- |
| 56 | ++ |
| 57 | +Wait for the associated rolling updates to complete. |
| 58 | + |
| 59 | +. Update existing resources to cope with deprecated custom resource properties. |
| 60 | ++ |
| 61 | +* If you have `Kafka` resources that specify `Kafka.spec.topicOperator`, rewrite them to use `Kafka.spec.entityOperator.topicOperator` instead. |
0 commit comments