I have a very basic question about ingress routing as my knowledge is minimal and we are using ingress controller. We are using GCK for our services.
- Currently we have a service running on node which is working fine.
- We want to shift this service to new framework, shifting is done. Now come the deployment of new service and how to route traffic gradually to this instance. Are there any rules available to share traffic to different services?
- And can we control the the traffic routing in terms of percentage? Like initially 10% of traffic is routed to new instance, similarly if something goes wrong decrease this percentage to 0.
Please suggest and share the proper configurations or documentation.
You can distribute the traffic based on weights assigned to different service versions. For instance, in Istio, you use the VirtualService to split traffic based on defined weights.
In this sample, 60% of traffic goes to the v1 subset, and 40% goes to v2. Just tweak it based on how you want the traffic to behave. Attached is documentation for Traffic management.[1]
[1] https://istio.io/latest/docs/concepts/traffic-management/