pythondjangodockerkubernetesdevspace

Devspace deploy error: pullSecrets[0].registry: cannot be empty


I'm studying how to deploy a django application with kubernetes, I found this tutorial, which explains about the Devspace tool, so that following the tutorial just like it returns me a message that I can't solve. the message is this: enter image description here

returns only this [fatal] pullSecrets[0].registry: cannot be empty

Can someone help me ?


Solution

  • DevSpace maintainer here. Check your devspace.yaml and you'll see that there is a pullSecrets section defined and the first entry in this section has registry either not defined or empty string.

    To fix this, you can either remove the entire pullSecrets or provide a valid registry hostname + username and password. For the username and especially for the password, you should use variables such as ${REGISTRY_PASSWORD} and then set them via environment variables in your terminal or let DevSpace set them via devspace set var REGISTRY_PASSWORD=xxx etc.