Service rancher-webhook not found after fresh install

Hello

I am trying to install Rancher 2.5.8 on a AKS cluster. The cluster was being managed by another Rancher deployment on a K3s cluster, and I didn’t unisntall the cattle agent before. The first instalation worked (with the agent still installed) but I noticed that the namespaces where grouped in nameless projects, matching the project groupings on the other Rancher instance.

I’ve tryed to clean all rancher/fleet/cattle resources before installing again (didn’t new about system-tools remove yet), but must have broken something because every single installation after that Rancher fails to startup, with variations on the following error:

2021/06/10 23:54:18 [ERROR] failed to call leader func: failed to add management data: problem reconciling role templates: couldn't create projects-create: Internal error occurred: failed calling webhook "rancherauth.cattle.io": Post "https://rancher-webhook.cattle-system.svc:443/v1/webhook/validation?timeout=10s": service "rancher-webhook" not found

Rancher version: 2.5.8
Helm version: 3.6.0
Kubernetes: 1.20.5 (AKS)

Any help would be very much appreciated!

2 Likes

Hi I am trying to create a user using Rancher UI which is running on rke cluster and It also shows the same error.

Internal error occurred: failed calling webhook “rancherauth.cattle.io”: Post “https://rancher-webhook.cattle-system.svc:443/v1/webhook/validation?timeout=10s”: service “rancher-webhook” not found

Did you get a solution for this?

its so annoying that i am not able to do anything related to rancher due to this.

Error from server (InternalError): Internal error occurred: failed calling webhook "rancher.cattle.io": Post "https://rancher-webhook.cattle-system.svc:443/v1/webhook/mutation?timeout=10s": service "rancher-webhook" not found

Has this issue been resolved?

I am getting the same error.
failed to create fleet-default/test cluster.x-k8s.io/v1alpha4, Kind=Cluster for rke-cluster fleet-default/test: Internal error occurred: failed calling webhook “default.cluster.cluster.x-k8s.io”: Post “hxxps://webhook-service.cattle-system.svc:443/mutate-cluster-x-k8s-io-v1alpha4-cluster?timeout=10s”: service “webhook-service” not found

After upgrading Rancher from 2.6 to 2.6.2 I am getting the same Error.
Additionally the local Cluster is stuck in State “Configuring”

Hope there is a solution soon.