virtual-kubelet icon indicating copy to clipboard operation
virtual-kubelet copied to clipboard

I try to run virtual-kubelet in aws ec2, but i get no such file error

Open shengjiangfeng opened this issue 1 year ago • 1 comments


Environment summary

aws ec2 Provider (e.g. ACI, AWS Fargate) aws Version (e.g. 0.1, 0.2-beta) v1.10.0-16-gce8a0ee8 K8s Master Info (e.g. AKS, ACS, Bare Metal, EKS) eks i use ./virtual-kubelet --provider aws --provider-config fargate.toml to install virtual-kubelet to aws ec2, but i got error.

image

shengjiangfeng avatar Jan 17 '24 01:01 shengjiangfeng

I ran into this, too, and stepped through the binary to understand what it's trying to do. The files it's trying to open here are for the PKI - you need to set APISERVER_CERT_LOCATION, APISERVER_CA_CERT_LOCATION and APISERVER_KEY_LOCATION. I believe the docs on the website are somewhat outdated.

https://github.com/virtual-kubelet/virtual-kubelet/blob/d41d02609f8ed3f606da0ddfc36b074554826436/cmd/virtual-kubelet/internal/commands/root/http.go#L35-L37

burgerdev avatar Feb 12 '24 07:02 burgerdev