-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
How deleting a deployment in fabric8 kubernetes-client works? #2209
Comments
|
@rohanKanojia Thanks a lot for your quick response. Do you mean If the deleting deployment is not a one-step operation, then it might be not be executed completely, especially we do this in the deployment itself. |
I think But I would suggest you should set using |
@rohanKanojia So do you mean the deleting deployment only send one http request to K8s apiserver? If not, it might not be executed completely. |
Yes, deletion is just an API request to Kubernetes APIServer |
Thanks a lot. It is really strange that the deployment is not deleted. And the replication has been set to 0 instead. |
Which version are you using? |
The Flink community is using V4.5.2, that is not a one step request |
Umm, that's pretty old version. Could you please try on v4.9.0 or v4.9.1 instead? |
@wangyang0918: I'm not sure if LeaderElection support is there in 4.5.2. I remember you once requested it and our team added it. Are you not using it? |
@rohanKanojia I notice the latest version is v4.10.1, is it safe that we use it in production? |
Got it. Thank you @rohanKanojia! |
Bumping the version to 4.9.1 could fix our problem. @rohanKanojia Thanks a lot for you help. |
In Flink project, we are using the following code to delete a deployment. We start a Flink master deployment in the K8s cluster and it will call the
stopAndCleanupCluster
when all jobs finished. However, we find that it could not work and have a high probability the deployment could not be deleted, instead the replication has decreased to 0.So when delete a deployment via fabric8 kubernetes-client, does it decrease the replication to 0 first? And then delete the deployment and replicationset. Right?
I really appreciate for your help and any suggestion.
The text was updated successfully, but these errors were encountered: