imagePullSecretes¶
imagePullSecrets
value in Kubedeploy should contain a list of Secret objects that contains necessary configuration for pulling container images from private registries.
See the official documentation on this feature.
By default no imagePullSecretes
are defined in Kubedeploy.
Define extraSecrets and imagePullSecrets
We will use Kubedeploys extraSecrets value for defining Secret object later used in imagePullSecretes
.
- define nameOverride for easier secret reference
- secret name deployed with extraSecrets is prefixed with
kubedeploy.fullname
templated. - create extra secret named imagepullsecret
- content should be replaced with content from
~/.docker/config.json
file
Note
Secret objects deployed with extraSecrets are prefixed with deployment full name.
Tip
When deploying multiple applications from same private image registry, it is recommended to create Secret object by hand and then reference it in Kubedeploy.
Example
Create a secret
Create my-registry-creds secret | |
---|---|
Reference the manually created secret
values.yaml | |
---|---|
See also: