Skip to content

Instantly share code, notes, and snippets.

@asizikov
Last active April 13, 2021 08:24
Show Gist options
  • Save asizikov/d620e31e9cac51187ccc73ddd8189e3d to your computer and use it in GitHub Desktop.
Save asizikov/d620e31e9cac51187ccc73ddd8189e3d to your computer and use it in GitHub Desktop.
kind: Secret
type: kubernetes.io/dockerconfigjson
apiVersion: v1
metadata:
name: dockerconfigjson-github-com
labels:
app: app-name
data:
.dockerconfigjson: eyJhdXRocyI6eyJnaGNyLmlvIjp7ImF1dGgiOiJkWE5sY201aGJXVTZNVEl6TVRJellXUnpabUZ6WkdZeE1qTXhNak09In19fQ==
@kvanderkamp
Copy link

Do not put credentials inside a public gist.

@asizikov
Copy link
Author

@kvanderkamp , Good advice in general, however this one is a gist used for this blog-post: https://blog.cloud-eng.nl/2020/10/08/using-github-registry-with-k8s/ where I literally put a username and password in plane text before base64-ing them 🙂.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment