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 *

2 × two =

Related Post

ConfDroid Web Services – Here we come!

Time moves quickly, and it's hard to believe the year is already halfway over. At…

Migrating my private cloud to Kubernetes – Introduction

Are you interested in migrating to Kubernetes? Well, I am let me tell ya'll about…

Publishing Pipeline – inline Mermaid code

Enhancing Blog Posts with Mermaid Diagrams: Why They’re a Game-Changer (and How to Make Them…