<p>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</p>

<pre><code>kubectl -n mynamespace get csr
</code></pre>

<p>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.</p>

<p>Is this an expected behavior? where does the certificate go?</p>

<p>Please help. :(</p>

<p>This is an expected behavior for security reasons. You should download the certificate using below command and keep it safe.</p>

<pre><code>kubectl get csr my-svc.my-namespace -o jsonpath='{.status.certificate}' \
    | base64 --decode &gt; server.crt
</code></pre>

<p><a href="https://kubernetes.io/docs/tasks/tls/managing-tls-in-a-cluster/#download-the-certificate-and-use-it" rel="nofollow noreferrer">https://kubernetes.io/docs/tasks/tls/managing-tls-in-a-cluster/#download-the-certificate-and-use-it</a></p>
