-
Notifications
You must be signed in to change notification settings - Fork 16
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
GKE Autopilot: DataPlane
and ControlPlane
never get marked as ready
#888
Comments
It occurs on a GKE Autopilot cluster. You can use The root cause is mutation of
where those marked with Modified fields
that leads to getting stuck on gateway-operator/controller/dataplane/controller.go Lines 213 to 218 in 52f9b09
because
|
DataPlane
in Konnect never gets marked as readyDataPlane
in Konnect never gets marked as ready
Rationale, it can be resolved by special treatment of fields mentioned in #888 (comment) like adding for i := range existingDeployment.Spec.Template.Spec.Containers {
generatedDeployment.Spec.Template.Spec.Containers[i].SecurityContext = oldExistingDeployment.Spec.Template.Spec.Containers[i].SecurityContext
generatedDeployment.Spec.Template.Spec.Containers[i].Resources = oldExistingDeployment.Spec.Template.Spec.Containers[i].Resources
}
generatedDeployment.Spec.Template.Spec.SecurityContext = oldExistingDeployment.Spec.Template.Spec.SecurityContext
generatedDeployment.Spec.Template.Spec.Tolerations = oldExistingDeployment.Spec.Template.Spec.Tolerations above gateway-operator/controller/controlplane/controller_reconciler_utils.go Lines 216 to 220 in 3607dde
and adding for i := range desired.Spec.Template.Spec.Containers {
desired.Spec.Template.Spec.Containers[i].SecurityContext = existing.Spec.Template.Spec.Containers[i].SecurityContext
desired.Spec.Template.Spec.Containers[i].Resources = existing.Spec.Template.Spec.Containers[i].Resources
}
desired.Spec.Template.Spec.SecurityContext = existing.Spec.Template.Spec.SecurityContext
desired.Spec.Template.Spec.Tolerations = existing.Spec.Template.Spec.Tolerations above gateway-operator/controller/dataplane/owned_deployment.go Lines 305 to 308 in b3e22cc
this will resolve those specific problems in GKE Autopilot, but it is still not a general solution. A robust solution that will not require those changes and protect from further adjustment like the aforementioned in the future is proposed in #500 (comment) and it should be implemented |
DataPlane
in Konnect never gets marked as readyDataPlane
and ControlPlane
never get marked as ready
Current Behavior
When creating a
DataPlane
with aKonnectExtension
all the expected resources are provisioned and properly works, but theDataPlane
CR never gets marked as ready by KGOExpected Behavior
When the
DataPlane
is properly configured and running, it should be marked as Ready by KGOAdditional Information
This issue has been observed in GKE. It should be tested if that happens in Kind or other environments as well.
The text was updated successfully, but these errors were encountered: