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