Skip to content

Adding Volume on Deployment yaml file for HTTPS certificate #4578

Closed Answered by jander-msft
berbarroso asked this question in Q&A
Discussion options

You must be logged in to vote

You need to use a Kubernetes Secret to get the certificate into Kubernetes. See how its done for static files in this example: https://kubernetes.io/docs/concepts/configuration/secret/#use-case-pod-with-ssh-keys. Then the secret needs to be mounted using a volume mount.

If you are working in Azure and have a KeyVault that contains your certificate, you can use Azure Key Vault Provider for Secrets Store CSI Driver. This also uses Kubernetes Secrets, but the secret is populated by the driver rather than you manually creating a static secret.

Replies: 3 comments 2 replies

Comment options

You must be logged in to vote
1 reply
@berbarroso
Comment options

Answer selected by berbarroso
Comment options

You must be logged in to vote
1 reply
@berbarroso
Comment options

Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants