One Solution collect form web for “Source code changes in kubernetes, SaltStack & Docker in production and locally”

Short answer is that you shouldn’t “distribute source code”, you should rather “build and deploy”. In terms of Docker and Kubernetes, you would build by means of building and uploading the container image to the registry and then perform a rolling update with Kubernetes.

It would probably help to take a look at the specific example script, but the gist is in the usage summary in current Kubernetes CLI:

If you intend to try things out in development, and are looking for instant code update, I’m not sure Kubernetes helps much there. It’s been designed for production systems and shadow deploys are not a kind of things one does sanely.