i have a k8s deployment with 1 replica
when i deleted k8s pods, in consul UI is it showing 2 running instance. ( 1 is new and 2nd is deleted pod)
When I deregister 2nd pod in consul ( using consul services deregister --id cmdline) then it is not showing in consul UI.
is there anyway or any configuration to auto deregister service instance for the above issue.
consul-k8s-control-plane:0.42.0
consul-version:1.11.4