-
Notifications
You must be signed in to change notification settings - Fork 1.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
kubelet may detect GCE when running kind on GCE #426
Comments
/assign we should probably try to properly set cloud provider to none by default AND/OR always mount a special product_name by default. current workaround: # create a fake entry with our own "product name" to
# mount at /sys/class/dmi/id/product_name
echo "kind" >./product_name
# create a kind cluster config equivalent to the current
# default, but additionally mounting the above file
cat <<EOF >"./kind-config.yaml"
kind: Cluster
apiVersion: kind.sigs.k8s.io/v1alpha3
nodes:
- role: control-plane
extraMounts:
- containerPath: /sys/class/dmi/id/product_name
hostPath: ${PWD}/product_name
EOF
# when creating a cluster be sure to use
# this config with `--config=./kind-config.yaml`
kind create cluster --config=./kind-config.yaml
... |
This seems to be one of the blockers for #182. |
kind/pkg/cluster/nodes/node.go Line 221 in 161151a
However, seems that kubernetes only uses the @BenTheElder I´m not familiar with the credential provider feature, is it possible to disable it? |
Ben´s idea works |
fixed by #461 |
What happened: kubelet appears to have read
/sys/class/dmi/id/product_name
when running kind on GCE and detected "Google Compute Engine", it appears to fail if it can't talk to the metadata server.What you expected to happen: Kubernetes should not "be in cloud mode" so to speak.
How to reproduce it (as minimally and precisely as possible): run a kind cluster on GCE
Anything else we need to know?:
Environment:
kind version
): 0.2.1kubectl version
): 1.13.4docker info
):/etc/os-release
):The text was updated successfully, but these errors were encountered: