Skip to content
This repository has been archived by the owner on May 3, 2023. It is now read-only.

Helm Chart for registry-creds for auto patch docker pull secrets into serviceaccounts

Notifications You must be signed in to change notification settings

iits-consulting/registry-creds-chart

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 

Repository files navigation

This project is based on https://github.com/alexellis/registry-creds

Usage

Create dockerconfigjson

kubectl create secret docker-registry regcred --docker-server=https://index.docker.io/v1/ [email protected] --docker-password=my-password [email protected] --dry-run=client -o yaml

Output looks like this then

apiVersion: v1
data:
  .dockerconfigjson: eyJhdXRocyI6eyJodHRwczovL2luZGV4LmRvY2tlci5pby92MS8iOnsidXNlcm5hbWUiOiJ2aWN0b3IuZ2V0ekBpaXRzLWNvbnN1bHRpbmcuZGUiLCJwYXNzd29yZCI6Im15LXBhc3N3b3JkIiwiZW1haWwiOiJ2aWN0b3IuZ2V0ekBpaXRzLWNvbnN1bHRpbmcuZGUiLCJhdXRoIjoiZG1samRHOXlMbWRsZEhwQWFXbDBjeTFqYjI1emRXeDBhVzVuTG1SbE9tMTVMWEJoYzNOM2IzSmsifX19
kind: Secret
metadata:
  creationTimestamp: null
  name: regcred
type: kubernetes.io/dockerconfigjson

Copy dockerconfigjson and perform this commands

helm repo add registry-creds-chart https://iits-consulting.github.io/registry-creds-chart/
helm search repo registry-creds
helm install registry-creds registry-creds-chart/registry-creds --set defaultClusterPullSecret.dockerConfigJsonBase64Encoded="eyJhdXRocyI6eyJodHRwczovL2luZGV4LmRvY2tlci5pby92MS8iOnsidXNlcm5hbWUiOiJ2aWN0b3IuZ2V0ekBpaXRzLWNvbnN1bHRpbmcuZGUiLCJwYXNzd29yZCI6Im15LXBhc3N3b3JkIiwiZW1haWwiOiJ2aWN0b3IuZ2V0ekBpaXRzLWNvbnN1bHRpbmcuZGUiLCJhdXRoIjoiZG1samRHOXlMbWRsZEhwQWFXbDBjeTFqYjI1emRXeDBhVzVuTG1SbE9tMTVMWEJoYzNOM2IzSmsifX19"

About

Helm Chart for registry-creds for auto patch docker pull secrets into serviceaccounts

Resources

Stars

Watchers

Forks

Packages

No packages published