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

$ 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

Leave a Reply

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

3 − three =

Related Post

Grafana SSO with Keycloak (The Easy Way)

Why This Matters Grafana ships with excellent OAuth support, yet many setups struggle due to…

Kubernetes – create a configuration backup with kubectl

This article intends to explain how to create a configuration backup of an helm installed…

Databases – Postgresql – Pilot

## Exploring PostgreSQL: A Reliable Choice for Modern Data Management In the ever-evolving world of…
Social Media Auto Publish Powered By : XYZScripts.com