-
Notifications
You must be signed in to change notification settings - Fork 54
~/.kube/config for Docker Desktop causes install to fail in invocation image #762
Comments
|
Apparently, docker-app has solved this by rewriting the address. |
@simonferquel or @silvin-lubecki might have a bit more context there - would it be a good idea? |
An alternative would be for Docker Desktop to change so that duffle can use the host's unmodified @simonferquel @silvin-lubecki @chris-crone would you care to comment on the feasibility of that solution? |
docker-app patches |
When using duffle to install software in kubernetes, users expect to pass
~/.kube/config
to duffle as a credential (as described here).Unfortunately, when using docker desktop to run kubernetes,
~/.kube/config
contains this:which fails inside the invocation image.
A workaround is to change
localhost
tohost.docker.internal
, but users really need to treat~/.kube/config
as an opaque credential that they pass to duffle without modification. Also, as noted by @justincormack below,host.docker.internal
won't work in the host, so not only would the user need to modify~/.kube/config
, but they'd also need to maintain two versions (or at least two similar contexts in the same config).Steps to reproduce
~/.kube/config
:examples/hellok8s/myk8s.yaml
has the following contents:The text was updated successfully, but these errors were encountered: