Open fly78lv opened 4 days ago
"sudo -E make run" is not anything from the project, this is not reproducible.
In-cluster pod credential mounting is not different in kind from upstream kubernetes.
/remove-kind bug /kind support /triage needs-information
What happened:I am attempting to run sudo -E make run in my Ubuntu VM (running on VMware) where I have created two local Kubernetes clusters using kind. However, I encounter an error related to the Kubernetes client configuration.
The error message indicates that the in-cluster configuration cannot be loaded because the KUBERNETES_SERVICE_HOST and KUBERNETES_SERVICE_PORT environment variables are not defined.
What you expected to happen:start successful
How to reproduce it (as minimally and precisely as possible): Create two local clusters using kind. Run make install to create some custom CRDs. I can assure you that this step works without issues. Run make run. My local cluster information is as follows. I believe their APIs have all started successfully. Additionally, when I curl 127.0.0.1:32907, it displays "Client sent an HTTP request to an HTTPS server."
Anything else we need to know?: "I think I've identified the problem. It seems to be related to in-cluster deployment. It needs to be deployed within the local cluster to be used. How should I solve this issue?" Environment:
kind version: (use
kind version
):kind v0.20.0 go1.20.4 linux/amd64
Kubernetes version: (use
kubectl version
):```Client Version: v1.31.2 Kustomize Version: v5.4.2 Server Version: v1.27.3 WARNING: version difference between client (1.31) and server (1.27) exceeds the supported minor version skew of +/-1
Any proxies or other special environment settings?: I have set up a proxy in VMware, pointing it to the WLAN IP of my physical machine, and this part is working normally. I don't think the issue lies here.