So I had an issue with metrics server with lots of certificate issues in the pod logs :
E0310 08:57:05.306951 1 authentication.go:64] Unable to authenticate the request due to an error: [x509: certificate signed by unknown authority (possibly because of "crypto/rsa: verification error" while trying to verify candidate authority certificate "kube-apiserver-requestheader-ca"), x509: certificate signed by unknown authority]
I ended up removing the api service with :
kubectl -n=kube-system delete apiservice v1beta1.metrics.k8s.io
So everything was fine and I could continue working on what I was working on. But now I would like to fix this, and I can’t figure out how to redeploy the api service for
Anyone experienced something like that before ?