Certificates as Kubernetes Secrets in AKS
Sometimes you need to store an SSL certificate as a Kubernetes secret. This document walks through an example of how to secure a third-party S3-compatible objectstore for use with Portworx.
Create the secret
-
Copy your certificate to the location where the
kubectl
is configured for this Kubernetes cluster. Copy thepublic.crt
file to the/opt/certs
folder. -
Create the secret:
kubectl -n kube-system create secret generic px-s3-certs --from-file=/opt/certs/
-
Confirm that the secret was created correctly:
kubectl -n kube-system describe secret px-s3-certs