-
Notifications
You must be signed in to change notification settings - Fork 3.8k
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
[aws-eks] restore_patch fails in KubernetesPatch #10801
Comments
@melodyyangaws Do you mean that the Are you able to workaround this issue by using an |
@iliapolo yes, it will fail when stack rollback to |
@melodyyangaws Great! In general, requiring a I'm going to close this out in the meantime and if we accumulate more use-cases that justify making |
|
Patch restore fails if switch from LoadBalancer service to ClusterIP. This is a known issue in Kubernetes: kubernetes/kubernetes#33766 . Is it possible to make the restore_patch an optional parameter?
Use Case
The following code usually works, however, if anything goes wrong, CDK will try to revert the service back to ClusterIP and throws an error:
spec.ports[0].nodePort: Invalid value: 30179: may not be used when
typeis 'ClusterIP'
.If someone intentionally change the type from external to internal balancing, ie. apply_patch -> ClusterIP, restore_patch -> LoadBalancer, the CDK deployment will fail.
Proposed Solution
The workaround is to manually delete the service or uninstall the entire application. Maybe make the restore_patch optional, or add some validation checks in the aws_eks module.
Other
kubernetes/kubernetes#33766
This is a 🚀 Feature Request
The text was updated successfully, but these errors were encountered: