Flagger And Consul-K8s Canary Deployment Issue
Describe the bug
Flagger tried to promote the canary version and this is where it failed with this error: “There are multiple Consul services registered for this pod when there must only be one. Check if there are multiple Kubernetes services selecting this pod and add the label consul.hashicorp.com/service-ignore: "true" to all services except the one used by Consul for handling requests.”
To Reproduce
Expected behavior
A clear and concise description of what you expected to happen. Expected the promotion finished.
Additional context
- Flagger version: ghcr.io/fluxcd/flagger:1.32.0
- Kubernetes version: AWS EKS 1.23
- Service Mesh provider: Consul-K8s 1.16.0 With API Gateway
- Ingress provider: Kong
For some reason the step To Reproduce was empty. Here it is: Deployed application version 1.0 Deployed Flagger Canary/metrics targeting version 1.0 app deployment Flagger was able to dynamically create HttpRoute for application version 1.0
Deployed same application with version 1.1 After analysis passed, Flagger tried to promote the canary version and this is where it failed with this error: “There are multiple Consul services registered for this pod when there must only be one. Check if there are multiple Kubernetes services selecting this pod and add the label consul.hashicorp.com/service-ignore: "true" to all services except the one used by Consul for handling requests.”