Kubernetes certificate always disappear after few hours

Viewed 367

I am new to kubernetes. I created a certificate in kubernetes for my validation webhook. After approving the certificate, and checking if it is still there after few hours, by running

kubectl -n mynamespace get csr

However, it shows no resources found in the namespace. But if the certificate is newly created and run the same command above it shows the certificate.

Is this an expected behavior? where does the certificate go?

Please help. :(

2 Answers

csr is short for Certificate Signing Requests

It dismiss after validated.

If your want to check certificates:

kubectl get cert -A

-A for --all-namespaces

Related