I’m not sure about the format of my image pull secret in Kubernetes Advanced Options.
When I “Create a new secret” I use a random secret name (or does the secret name has to be something specific?). Then I encode my docker hub username and password in base64 (username:password) as my “image pull secret data”. Is this the right approach?I get the following error message: “Error creating set”.
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
Accepted Answer
To create a docker secret, you can follow the example here:
Below the kubectl description there’s an example of how to reference it in your pod/deployment.
And now for a shameless plug: If you’re looking to use Amazon for your registry, I wrote a little tool that makes the integration easy: https://github.com/nabsul/k8s-ecr-login-renew
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.