-
Notifications
You must be signed in to change notification settings - Fork 20
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
isMonitorVPAReady fails if VPA has recommendations for more containers than defined in a "Tortoise" #413
Comments
VPA should include the recommendation for the injected container, right? |
Yes, in our case, VPA includes recommendations for istio-proxy container. But in the tortoise definition we can't have istio-proxy because it's not on the deployment. And additionally, we don't want to scale the istio-proxy container. We want Tortoise to care only about our applications' container. |
Do you use
You can explicitly disable the autoscaling for the istio container via |
We annotate the Namespace, not the Deployment, nor the Pods.
I'm aware of that, but the ValidationWebhook rejects the Tortoise definition because the Deployment doesn't have a istio-proxy container defined. More specifically, new Tortoises with defined istio-proxy are rejected. We can create a new one without including istio-proxy, and it will never get ready. the we can modify existing Tortoises to include istio-proxy with autoscaling Off, and it immeadiately gets ready. |
I see.. So, we have to check Namespace too here - That's the core issue we have to solve.
Yeah, that is the workaround for now. We don't validate the containers that the deployment has vs the ones that the tortoise has in an update validation. |
I see. And I wouldn't have to define a container in Tortoise to set it to Off anyways, and leverage the default behavior defined in the user manual
|
The Validation webhook check, I see it as a separate Issue, and I believe there is already some work to check the Pods and not the Deployments for that, right? |
Okay, +1 to change
Yup, we can regard it as a separate issue. |
PR sent #415 |
Tortoise should check if containerInVPA is a SuperSet of containerInTortoise.
tortoise/pkg/vpa/service.go
Line 169 in eb8e267
Currently if containers are injected to the pod, Tortoise never sets the VPA as ready as both sets are different, even though VPA has recommendations for all Tortoise defined containers.
The text was updated successfully, but these errors were encountered: