I am trying to get netclient to run on a kubernete...
# client
h
I am trying to get netclient to run on a kubernetes cluster. I have read the docs here: https://k8s.netmaker.org/ And have also looked at the examples in the git repository here: https://github.com/gravitl/netmak8s Nothing appears to work as expected. Are the instructions out of date? For example: the netclient:v0.9.3 container image used in the examples appears not to support the current Token format. When using with a token from a 0.16.2 installation the command complaints the no server is defined. When I switch to the netclient:latest image I get an image that requires kernel wireguard. It does not (as indicated in the docs) use userspace wireguard. There exists a netmaker-userpace image, but there is no documentation on how to use that one. I tried starting it, and it appears to run (nodes appear on the netmaker dashboard) but still cannot communicate.
Now I can see the node on my netmaker server. but cannot ping it. In the container log I see the following: [`netclient] joining network [netclient] 2022-11-06 13:47:19 running userspace WireGuard with wireguard-go [netclient] 2022-11-06 13:47:19 joining wengen at api.nm.kri.st:443 [netclient] 2022-11-06 13:47:20 network: wengen node billiewlkrist is using port 51821 [netclient] 2022-11-06 13:47:20 error setting route for netmaker: exit status 2 [netclient] 2022-11-06 13:47:20 error installing: 404 Not Found [netclient] 2022-11-06 13:47:20 error running command: wg-quick down /etc/netclient/config/nm-wengen.conf [netclient] 2022-11-06 13:47:20 wg-quick:
Copy code
/etc/netclient/config/nm-wengen.conf' does not exist 
[netclient] 2022-11-06 13:47:20 removed systemd remnants if any existed 
[netclient] Starting netclient daemon
[netclient] 2022-11-06 13:47:20 running userspace WireGuard with  wireguard-go 
[netclient] 2022-11-06 13:47:20 [daemon.go-47] Daemon(): netclient daemon started -- version: dev 
[netclient] 2022-11-06 13:47:20 [mqpublish.go-26] Checkin(): starting checkin goroutine 
[netclient] 2022-11-06 13:48:20 [mqpublish.go-42] checkin(): checkin with server(s) for all networks 
[netclient] 2022-11-06 13:49:20 [mqpublish.go-42] checkin(): checkin with server(s) for all networks
What do these error messages mean?
b
can i know what's your use case wrt kubernetes? i might be able to guide you in a better way
h
What I am trying to do is make a service on my openshift cluster available via the netmaker network. I want to follow the instrcutions on k8s.netmaker.org
I want to do a containerized client install.
Problem is that the normal docker image requires wg support in the linux kernel.
This does not work on openshift.
So I need to somehow use a docker image with userspace support.
So I found that there were a netclient-go and netclient-userspace container images. And thus I tried these. But they do not work either.
So I am trying different use cases. Getting the worker node on the network is one, but just networking a single pod (using a sidecar) is another. But that requires the the dockerised netclient works.
Next thing I tried was building the container image myself. But that does not work either...I get compilation errors there.
So any help would be appreciated here.
6 Views