-
Notifications
You must be signed in to change notification settings - Fork 12
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
InitContainer Ordering Issue with CloudSQL Operator 1.6.0 in Istio-Managed Environments #641
Comments
This seems like a good reason to add a configuration parameter to the AuthProxyWorkload CRD to allow you and others to make the proxy run as a I am curious to understand how Istio 1.19.3 and Operator 1.6.0 conspire to create pods that won't start. Would you mind posting the pod declaration for one of these failing pods (redacted, of course)? I wonder if Istio adding its sidecar container to |
Using these annotations on the pod template fixes the issue - |
For a more permanent fix, the csql sidecar containers should run as user |
Expected Behavior
Right order for initContainers / integration with Istio.
Actual Behavior
Description:
During the upgrade of CloudSQL Operator to version 1.6.0, issues were encountered when deploying new instances of the
application. While the existing application instances continued functioning as expected, attempts to start new pods
failed due to critical container startup errors, which would be unacceptable in a production environment.
Details:
After upgrading to version 1.6.0 to utilize the minSigtermDelay parameter, the following problem was observed:
Startup probe failed: Get "http://10.210.0.89:15020/app-health/csql-apps-apps/startupz": dial tcp 10.210.0.89:15020: connect: connection refused
.interactions.
The issue seems tied to Istio sidecar injection. Specifically:
environments.
Resolution Attempt:
Disabling Istio temporarily resolved the problem, allowing the CloudSQL container to start correctly in the new pods.
However, this is not an acceptable solution for production workloads where Istio is required.
Proposed Fix for CloudSQL Operator team:
Reintroduce
user-configurable options for sidecar compatibility (e.g., sidecarType), as seen in earlier commits, to
prevent such failures in Istio environments and ensure robust behavior during deployment in production scenarios.
Steps to Reproduce the Problem
Specifications
The text was updated successfully, but these errors were encountered: