Created
November 29, 2021 19:00
-
-
Save ThomasBuchinger/16f34521f56e44b72647fb75dcabf348 to your computer and use it in GitHub Desktop.
Kubernetes Secret from Jinja2-Template
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
apiVersion: v1 | |
kind: Secret | |
metadata: | |
name: regcred | |
data: | |
.dockerconfigjson: {{ ('{"auths":{"https://registry.gitlab.com":{"username":"'+ var_api_user +'","password":"'+ var_api_token +'","auth":"'+ ((var_api_user +':'+ var_api_token) | b64encode) +'"}}}') | b64encode }} | |
type: kubernetes.io/dockerconfigjson |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment