This message was deleted.
# k3s
a
This message was deleted.
c
should be, K3s is Kubernetes. Have you tried?
l
yup did:
kubectl --raw="/configz"
and I get:
Error from server (NotFound): the server could not find the requested resource
.
And
kubectl --raw="/readyz"
works
c
that’s not the resource
l
aaah it’s on nodes
c
/configz is on the kubelet, not the apiserver. and as you can see in the code you linked, it’s using the node proxy api to get at it through the apiserver
Copy code
resp, err := clientset.CoreV1().RESTClient().Get().Resource("nodes").
		Name(nodeName).Suffix("proxy", "configz").DoRaw(context.TODO())
Copy code
kubectl get --raw /api/v1/nodes/k3s-server-1/proxy/configz
l
aaah it’s complaining that the actual node is not found .. when executing that …
I’m using the node name
c
is your node named k3s-server-1 like mine is?
l
it’s named knl-gcp-test1-worker-35 in this case
c
it should be the node name as it shows up in
kubectl get node
not necessarily the hostname or fqdn
l
aaah sorry … multiple clusters … was in the wrong context. The command works! Thank you. Appreciated. Getting just a tad more informed here.
👍 1
Much appreciated! And thank you for the work you do on K3s.