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 *

sixteen + sixteen =

Related Post

Postgresql | Tablespaces on multiple file systems

Postgresql (PG) is a quite powerful open source database systems and widely used as DB…

ConfDroid Puppet Modules – confdroid_resources

confdroid_resources – Puppet Module confdroid_resources is a small, focused Puppet module that automates the installation…

Kubernetes – VM vs Bare Metal

As mentioned here, the series about Kubernetes goes right ahead as planned.While the main topic…