I get this error when trying to create a simple ingress in a RKE2 cluster set up with rancher:
Internal error occurred: failed calling webhook "validate.nginx.ingress.kubernetes.io": Post "https://rke2-ingress-nginx-controller-admission.kube-system.svc:443/networking/v1/ingresses?timeout=10s": x509: certificate is valid for dockervm.mshome.net, not rke2-ingress-nginx-controller-admission.kube-system.svc
dockervm.mshome.net
is obviously my vm for which I created self signed certificates.