<p>I'm developing a Go executable on Ubuntu and running a kubernetes cluster in minikube.  The pod+container that's running in minikube is based on Ubuntu, and I just want to replace the executable in the container.  More or less bypassing the need to remake the container because executable is the only thing that needs to change.  When my changes are 'ready' I plan to remake the image the container is based on, etc., but that's down the road.</p>

<p>I'm looking to iterate a bit quicker really.</p>

<p>Is this possible?  Is there a better way?</p>

lucidquiet
<p>For development purposes ONLY (quite hacky solution), you can have your Ubuntu-Go container running <code>tail -f /dev/null</code> to keep it from finishing, and use a <code>hostPath</code> to mount the path containing your executable to your container. You can run your Go application by running a <code>kubectl exec</code> and any changes you make to your application on your host will be reflected in the container. You can restart the application, again with <code>kubectl exec</code> whenever the executable is updated.</p>
<p><a href="https://github.com/kubernetes/minikube/blob/master/docs/host_folder_mount.md" rel="nofollow noreferrer">Here</a> is a good readme on how to use minikube's hostPath.</p>
<p>REMEMBER IN PRODUCTION to rebuild your container with the correct binary, define the correct entrypoint, and fix your deployment/pod definition to exclude the hostPath.</p>
