Is it possible to disable canary service when no rollouts underway? #2435
Unanswered
buddyledungarees
asked this question in
Q&A
Replies: 2 comments 1 reply
-
If no canary is taking place then both stable and canary service should point to the exact same pods. Isn't this the case with Istio as well? So no matter what you access you will get the same application. Why do you want to "disable" the service? Can you explain some more your use case? |
Beta Was this translation helpful? Give feedback.
1 reply
-
We has a similar ask, but for different reasons. We are using Prometheus ServiceMonitor for metrics collection. When there is no rollout in progress, Prometheus scrapes both stable and canary services, rustling in metrics being double counted. This gives us lots of headache in modifying monitoring dashboard and alerts. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I have setup a basic canary deployment test that uses istio traffic routing that looks something like:
Istio virtualservice snippet:
The traffic shifting and canary rollouts work as documented however I wanted to see if I can disable access to the canary endpoint if there's no rollout in progress. It looks like the k8s service selector still matches the promoted pods.
I realize this starts to sound more like a blue/green deployment but just curious if there's any way under a canary strategy to do this? I looked at doing something at the istio level via outlier or circuit breaking but because the k8s service endpoint for the canary service shows valid pods, I don't think it'll work.
Beta Was this translation helpful? Give feedback.
All reactions