-
Notifications
You must be signed in to change notification settings - Fork 6
Error installing on Docker Desktop #39
Comments
Is |
The problem here is that docker-for-desktop uses
Since, duffle mounts this kube config inside a container when it runs the install command, our binary is unable to find a cluster at |
replacing localhost with host.docker.internal in ~/.kube/config fixes the issue, but that breaks kubectl on the host.
|
Adding @glyn because this looks like a generic duffle issue How should duffle installers target the kubernetes running in docker-desktop if the k8s api-server endpoint in .kube/config doesn't resolve from inside the invocation image? |
I'm not sure this is an issue with duffle per se, since duffle has no direct relationship to, or support for, k8s. A solution would be to copy |
Per this duffle doc, kubeconfig credentials appear to be the canonical example for duffle. IMO k8s should be a first-class, batteries-included, no-additional-config-required, target for cnab bundles and tools like duffle. I'd be very surprised if this problem of how to target the kubernetes running in docker-desktop from a duffle invocation image container has not been encountered (and a solution or workaround suggested). |
Raised cnabio/duffle#762 |
There appear to be 2 problems with installing onto k8s in Docker Desktop
docker-desktop
(see add check for docker-desktop node name #37)localhost:6443
endpoint for talking to k8s API from inside the invocation-image container does not appear to work.The text was updated successfully, but these errors were encountered: