I had installed Trafik Hub beta on Kubenrets cluster for some time. recently I removed hub-agent by deleting the namespace. Now when I try to update anything for IngressRoute I get following error
error: ingressroutes.traefik.containo.us "app-external" could not be patched: Internal error occurred: failed calling webhook "hub-agent.hub-agent.svc": Post "https://hub-agent-controller.hub-agent.svc:443/?timeout=10s": service "hub-agent-controller" not found
You can run `kubectl replace -f /var/folders/4d/8x1jzt_d3qbdhrv3bdqh8xtw0000gp/T/kubectl-edit-665412160.yaml` to try this update again.
I deleted MutatingWebHook with kubectl delete mutatingwebhookconfigurations hub & namespace hub-agent
% kubectl get ns hub-agent
Error from server (NotFound): namespaces "hub-agent" not found
% kubectl get mutatingwebhookconfigurations hub
Error from server (NotFound): mutatingwebhookconfigurations.admissionregistration.k8s.io "hub" not found
when I try to update IngressRoute I see following
% kubectl -n marketing edit IngressRoute external-1
error: ingressroutes.traefik.containo.us "external-1" could not be patched: Internal error occurred: failed calling webhook "hub-agent.hub-agent.svc": Post "https://hub-agent-controller.hub-agent.svc:443/validation?timeout=10s": service "hub-agent-controller" not found
You can run `kubectl replace -f /var/folders/4d/8x1jzt_d3qbdhrv3bdqh8xtw0000gp/T/kubectl-edit-2566697197.yaml` to try this update again.