Skip to content

Instantly share code, notes, and snippets.

@weltonrodrigo
Created March 10, 2022 02:26
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save weltonrodrigo/b37eff977d3c34c4ce67a43d6755d349 to your computer and use it in GitHub Desktop.
Save weltonrodrigo/b37eff977d3c34c4ce67a43d6755d349 to your computer and use it in GitHub Desktop.
Docker registry pull secret kustomization madness

When creating an imagePullSecret with kustomize secretGenerator, you need to set type to kubernetes.io/dockerconfigjson, not Opaque.

Like:

secretGenerator:
- files:
  - .dockerconfigjson
  name: docker-pull-secret
  type: kubernetes.io/dockerconfigjson
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment