gefyrahq / gefyra

Blazingly-fast :rocket:, rock-solid, local application development :arrow_right: with Kubernetes.
https://gefyra.dev
Apache License 2.0
692 stars 28 forks source link

[ERROR] Could not create a valid configuration: Command 'getent hosts host.docker.internal' in image 'alpine' returned non-zero exit status 2: b'' #399

Closed anovv closed 1 year ago

anovv commented 1 year ago

What happened?

I have a minikube cluster running in colima container on Mac M2

Starting gefyra:

gefyra up --context minikube-1

gives

[ERROR] Could not create a valid configuration: Command 'getent hosts host.docker.internal' in image 'alpine' returned non-zero exit status 2: b''

and

[CRITICAL] There was an error running Gefyra: 'ClientConfiguration' object has no attribute 'CARGO_ENDPOINT'

What do I do?

What did you expect to happen?

I expected gefyra to run

Please provide the output of gefyra check.

[ERROR] Could not create a valid configuration: Command 'getent hosts host.docker.internal' in image 'alpine' returned non-zero exit status 2: b''
[ERROR] Could not create a valid configuration: Command 'getent hosts host.docker.internal' in image 'alpine' returned non-zero exit status 2: b''
[INFO] Checking Docker client.
[INFO] Docker client: Ok
[INFO] Checking availability of Gefyra Cargo image...
[ERROR] Docker does not seem to be not working for Gefyra
[INFO] Checking Kubernetes connection.
[INFO] Kubernetes: Ok

How can we reproduce it (as minimally and precisely as possible)?

gefyra up --context minikube-1 with minikube on colima

What Kubernetes setup are you working with?

minikube on colima

OS version

No response

Anything else we need to know?

No response

anovv commented 1 year ago

Fixed by restarting colima with --network-address

colima start --network-address