Posted On 28.12.2024

converting openSSL x509 into Kubernetes secrets

0 comments
confdroid.com >> blog >> converting openSSL x509 into Kubernetes secrets
$ kubectl create secret tls tls-secret-<secret-name> --key <key-name>.key --cert <certificate-name>.crt

Advertisements
$ kubectl get secrets/tls-secret-<secret-name> -o yaml 

This will give you some output like

apiVersion: v1
data:
    tls.crt: LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS
    tls.key: LS0tLS1CRUdJTiBQUklWQVRFIE

Author Profile

12ww1160DevOps engineer & architect

Advertisements

Leave a Reply

Your email address will not be published. Required fields are marked *

eighteen + 19 =

Related Post

Troubleshooting Puppet 8 with PuppetDB: The val Bug and Other Gotchas

This year I moved all my lab nodes to Rocky 9 and Puppet 8, aside…

Puppet with Foreman – Host Registration

Next Steps: Registering Puppet Agents with Foreman – The Simple, Secure Way In the previous…

WordPress – Caching riddles

When Caching Breaks Your WordPress REST API: A Debugging Story and Why Caching Still Matters…
Social Media Auto Publish Powered By : XYZScripts.com