Document how to add an image pull secret in Helm
Provide an example of how to take an image registry, user name, and password and prepare a Secret that can be used by a pod to pull a protected container image.
pull/3033/head
Michael Venezia7 years agocommitted bySteven E. Harris
The above will render the template when .Values.foo is defined, but will fail
The above will render the template when .Values.foo is defined, but will fail
to render and exit when .Values.foo is undefined.
to render and exit when .Values.foo is undefined.
## Creating Image Pull Secrets
Image pull secrets are essentially a combination of _registry_, _username_, and _password_. You may need them in an application you are deploying, but to create them requires running _base64_ a couple of times. We can write a helper template to compose the Docker configuration file for use as the Secret's payload. Here is an example:
First, assume that the credentials are defined in the `values.yaml` file like so: