- Snippet Path
Create secret to use custom docker registries
- Authors
- ← Back to snippet list

- Name
- Aryan Ebrahimpour
- GitHub
- @avestura
- Snippet
Replace these values:
SOMESECRETwith e.g.someSecretNameSERVERwith e.g.mygitlab.local:5050SOMEONEwith e.g.johnSOMETHINGwith e.g.myapikeySOMEMAILwith e.g.semanticrelease@gitlab.local
bash
kubectl create secret docker-registry SOMESECRET --docker-server=SERVER --docker-username=SOMEONE --docker-password=SOMETHING --docker-email=SOMEMAIL