Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

upgrade strimzi to version 0.20 #17

Closed
wants to merge 2 commits into from

Conversation

runeanielsen
Copy link
Member

Upgrade strimzi to 0.20. The upgrade requires uninstalling the current strimzi operator (which will take down all kafka resources). After install the kafka operator and do a helm upgrade to support the changes in the KafkaCluster custom type.

@runeanielsen
Copy link
Member Author

This is on hold because there are issues with upgrading existing Strimzi 0.19 to 0.20. The reason is because that the new version of Strimzi uses Helm 3.0, and it will therefore delete the existing cluster resulting in maybe data loss and full downtime.

@runeanielsen
Copy link
Member Author

runeanielsen commented Jan 10, 2021

strimzi/strimzi-kafka-operator#3877 reference a way that might solve the issue.

@runeanielsen
Copy link
Member Author

There will still be issues, even with the workaround, since the CRD won't be updated to support the new way to define listeners as shown below. So a way to update the existing CRD needs to be done.

listeners:
  - name: local
    port: 9092
    type: internal
    tls: true
  - name: external1
    port: 9093
    type: loadbalancer
    tls: true
  - name: external2
    port: 9094
    type: nodeport
    tls: true

@runeanielsen runeanielsen self-assigned this Jan 16, 2021
@IlyaNakhaichuk
Copy link

@runeanielsen, maybe there is a solution to update crd, after updating from version 0.19 to 0.20 without data loss?

@runeanielsen
Copy link
Member Author

Hi @IlyaNakhaichuk, this issue is currently on hold, but hopefully there is a way to upgrade the crd without data loss, but I haven't had time to look much into it since we're currently very busy with new features.

Do you have any experience upgrading, from 0.19 to 0.20?

@IlyaNakhaichuk
Copy link

Updated as stated here:strimzi/strimzi-kafka-operator#3877
The operator was updated successfully, data is not lost, but I cannot update listeners, because crd version 0.19 is used.

@runeanielsen
Copy link
Member Author

@IlyaNakhaichuk that is the issue I also had when I tried it, I'll let you know if I figure out a way to handle it when I get the time.

@runeanielsen runeanielsen force-pushed the strimzi-0.20 branch 2 times, most recently from 0d0ef3b to b1313bb Compare April 6, 2021 08:33
@IlyaNakhaichuk
Copy link

Hi @runeanielsen Maybe you already got something when you upgrade from version 19 to version 20 of the strimzi operator?

@runeanielsen
Copy link
Member Author

runeanielsen commented Apr 7, 2021

@IlyaNakhaichuk not yet, haven't had the time. I found this the other day https://github.com/helm/helm-2to3, that would be the first thing I would try when I got the time. I don't know if it will solve the problem, but it is the first thing I will look at when I've the time.

@IlyaNakhaichuk
Copy link

@runeanielsen
Hi.
I tried to use the 2to3 plugin, but something didn't work out to CRD. I originally created a strimzi-operator using helm3, the tiller cluster does not contain, when upgrading secret or cm, it gives the following errors.

When upgrading the operator itself:

helm 2to3 convert -n kafka strimzi-kafka                                                                   
2021/04/19 12:35:23 Release "strimzi-kafka" will be converted from Helm v2 to Helm v3.
2021/04/19 12:35:23 [Helm 3] Release "strimzi-kafka" will be created.
2021/04/19 12:35:23 Found 0 tiller pods
Error: plugin "2to3" exited with error

When upgrading secret:

helm 2to3 convert -n kafka strimzi-kafka --tiller-out-cluster -s secret sh.helm.release.v1.strimzi-kafka.v1                                            
Error: name of release to be converted has to be defined
Error: plugin "2to3" exited with error

or

helm 2to3 convert -n kafka strimzi-kafka -s secret sh.helm.release.v1.strimzi-kafka.v1 
Error: name of release to be converted has to be defined
Error: plugin "2to3" exited with error

Maybe there will be time to do this? I would like to somehow migrate crd from helm2 to helm3, so as not to affect the existing kafka cluster.

@runeanielsen
Copy link
Member Author

@IlyaNakhaichuk I understand your frustration with the upgrade path of helm 2 to 3, but currently this is very low priority for this project, so I don't think I'll have time to look at it for a month or two.

I think your best choice is try to ask in the issue strimzi/strimzi-kafka-operator#3877 if anyone had the same issue as us.

@djok
Copy link

djok commented Apr 19, 2021

Hi,

Is there possible workaround for fresh installation. Downgrade to Helm 2 is not a option due to incompatibility with current versions of Kubernetes.

vbr,

@runeanielsen
Copy link
Member Author

runeanielsen commented Apr 19, 2021

@djok currently we are running on version v1.17.13 of kubernetes, there are plans in the future to handle newer versions of kubernetes when this issue is fixed. If you want to try the project out using clean install you can change the setup.sh file strimzi to version 0.20 - that will support newer versions of kubernetes.

One note is that this project is still under heavy development, so its not really stable enough to be production ready without much struggle.

@djok
Copy link

djok commented Sep 3, 2021

@runeanielsen , can you tell me are you using public Kubernetes provider like GKE, Azure.... or you deploy on internal Kubernetes cluster. I ask this because so far I don't have success with deployment on GKE, and if you use public Kubernetes provider I can try to deploy on it.

@runeanielsen
Copy link
Member Author

@djok we can run on all cloud providers, currently we are running our test setup Hetzner (personally managed) and customer on Azure(AKS). The setup is not "plug and play" and we're not done with the system yet and there might be major breaking changes in the near future, so we're not ready to write a setup guide.

@djok
Copy link

djok commented Sep 3, 2021

@runeanielsen, I will try to setup the project in AKS, can I count on some support during setup process?

@runeanielsen
Copy link
Member Author

@djok its still not production ready, so I cannot help you with the setup - we don't recommend it being used with the current state of the project.

@runeanielsen runeanielsen deleted the strimzi-0.20 branch October 2, 2021 06:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants