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
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
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
Same problem …
Rancher : v2.6.1
k8s : v1.20.10
docker : v1.20.10
If I try to update the rancher version or if I enter the user administration (new) to apply some change I see the error
Internal error occurred: failed calling webhook “rancherauth.cattle.io”: Post “https: //rancher-webhook.cattle-system.svc: 443 / v1 / webhook / validation? Timeout = 10s”: x509: certificate has expired or is not yet valid: current time 2021-11-12T16: 40: 52Z is after 2021-11-06T14: 53: 19Z
When trying to apply the workaround with Rancher 2.7.1 I get the following error.
Error from server (InternalError): an error on the server ("unable to create impersonator account: ClusterUnavailable 503: waiting for service account token secret to be populated for cluster") has prevented the request from succeeding