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 *

five × 1 =

Related Post

Configuration Management with Ansible – Pilot

## Getting Started with Ansible: Repository Best Practices and Security Essentials Welcome to the first…

AH00526: Syntax error on line 5 of /etc/httpd/conf.d/ssl.conf

Today I ran into an odd error on my foreman server. I had enabled auto-updates…

ConfDroid Puppet Modules – Postgresql

## ConfDroid PostgreSQL Module – Standalone Database Management Made Simple with Puppet We’re thrilled to…
Social Media Auto Publish Powered By : XYZScripts.com