Skip to content

mewz-project/waiot-kubelet

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

How to Run

You need following files

  • secrets/client.crt: Client certificate
  • secrets/client.key: Client private key
  • secrets/kubeconfig: Kubeconfig file
  • secrets/config.json: Configuration of the virtual node

You can use this config.json.

{
	"mock-node": {
		"cpu": "2",
		"memory": "4Gi",
		"pods": "10",
		"others": {
			"nvidia.com/gpu": "1"
		},
		"providerID": "mock://test-node",
		"deviceIP": "192.168.1.100"
	}
}

If you use K3s, you can find the client certificate and key in /var/lib/rancher/k3s/agent, each file is named client-kubelet.crt and client-kubelet.key. The kubeconfig file is at /etc/rancher/k3s/k3s.yaml. You need to edit the kubeconfig file to use the correct server address.

Then run:

$ ls secrets
client.crt  client.key  config.json  kubeconfig
$ go run main.go

About

Proxy Kubelet for waiot

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages