We have added readiness probe and the container is in unready state until it is fully loaded but in case of horizontal autoscaling a new pod which is in unready state starts getting traffic due to which request are failing. We are using nginx ingress controller for loadbalancing and service type is of ClusterIPenter image description here
We tried adding readiness probes , probe is working and making sure that container is not ready state but somehow it is getting trafficenter image description here