Add ImagePullSecrets for DigitalOcean deployments

Add imagePullSecrets to ensure authentication for the DO registry

Profile pictureToni Petrina
Published on 2023-11-271 min read
  • #kubernetes
  • #digitalocean

After deploying to DigitalOcean, suddenly my containers wouldn't start due to 401 errors from DigitalOcean. The cluster never had issues before so I had to manually add it.

spec:
  template:
    spec:
      imagePullSecrets:
        - name: secret-name-injected-usually-name-of-registry

Change code theme: