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
Support native blue/green deployments #33462
Comments
@F21 would you mind give a more deep explanation? how would you expect this? |
Let's say we have an app deployed as version 1. If we ask kubernetes to perform a rolling update to version 2, my understanding is that v2 would be able to serve traffic before all of v1 is removed. That means that we will have a small window where v1 and v2 are both serving traffic. With blue/green deployments, let's say we initially deployed v1 (blue). We then ask kubernetes to deploy v2 (green). However, v2 does not serve any traffic yet and kubernetes does not perform a rolling update. Instead, it leaves v1 alone and lets it continue serving, and deploys all instances of v2. It then uses health checks to check if all of v2 is healthy, and when it is ready, it cuts over all traffic to v2. At this point, it then deletes all instances of v1. |
That would be a nice feature indeed. cc @kubernetes/deployment |
It would be easier to add another strategy natively once we have custom strategies and people cannot come up with custom BG easily on their own. #14510 |
@Kargakis does this suggest that BG is a strategy now is supported ? or it is still underway feature ? |
For inspiration, we started to build our own BG deployment setup which is integrated into our bamboo deployment process. Feel free to have a look at https://github.com/pasientskyhosting/kubernetes-blue-green-deploy Please be aware this is still in beta. |
Issues go stale after 90d of inactivity. Prevent issues from auto-closing with an If this issue is safe to close now please do so with Send feedback to sig-testing, kubernetes/test-infra and/or |
Stale issues rot after 30d of inactivity. If this issue is safe to close now please do so with Send feedback to sig-testing, kubernetes/test-infra and/or |
This is the domain of higher-level deployment pipelines and service meshes. It's not a deployment strategy that can be implemented in our workload APIs alone. We're aware of the use case, but I'm going to close this as being out of scope here. |
It would be really cool if kubernetes can have blue/green deployments built-in in addition to the rolling updates currently available.
This would allow for the ability to atomically update an app without the risk of clients connecting to the app seeing different versions.
The text was updated successfully, but these errors were encountered: