How to use kubernetes sealed secrets with helm templates #649
Unanswered
encryptblockr
asked this question in
Q&A
Replies: 2 comments
-
can someone please help? |
Beta Was this translation helpful? Give feedback.
0 replies
-
Two changes are required: apiVersion: bitnami.com/v1alpha1
kind: SealedSecret
metadata:
name: {{ .Release.Name }}
namespace: {{ .Release.Namespace }}
spec:
encryptedData:
ENV1: {{ .Values.secrets.ENV1 }}
template:
metadata:
name: {{ .Release.Name}}
namespace: {{ .Release.Namespace }}
type: Opaque
in secrets:
ENV1: # very long encrypted value from kubeseal
I suggest to checkout the usage section without helm first https://github.com/bitnami-labs/sealed-secrets#usage |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I just came across the sealed secrets tool https://github.com/bitnami-labs/sealed-secrets for encrypting secrets in kubernetes with added benefits of being able to commit those to git
I am a bit disappointed that such a great tool did not address helm templates by default or as part of the official documentation. I mean for a tool like that, i am not sure if the developers thought of the different ways people use secrets in which helm charts is a great way where we use values template files for different environment.
Anyways here is my setup
here are the values template files for DEV and PROD for example
Here is how i deploy the application
I am trying to use sealed secrets with this scenario but not able to figure out how to without changing my whole structure completely.
Beta Was this translation helpful? Give feedback.
All reactions