broad-farmer-70498
04/22/2025, 3:03 PMvirtual-kubelet
in conjunction with rke2? There seem to possibly be some specific considerations around certs and 'sessions' between nodes for rke2 that I may need to sort out.broad-farmer-70498
05/13/2025, 12:25 AMbroad-farmer-70498
05/13/2025, 12:30 AMremotedialer
project and how the control plane connects outbound using that. From what I can tell there is an (understandably) expectation that all nodes are running the rke/k3s agent and some sort of custom listener. In the code that uses the remote dialer there do seem to be some switches in there about using the ‘proxy’ or not.
I am wondering if it would be possible to apply a role or label or something of that nature on a per-node basis to force the communication to not use the ‘proxy’ (iirc that’s the term in the code) and to just dial using standard k8s semantics.creamy-pencil-82913
05/13/2025, 12:43 AMcreamy-pencil-82913
05/13/2025, 12:44 AMbroad-farmer-70498
05/13/2025, 12:57 AMbroad-farmer-70498
05/13/2025, 12:57 AMbroad-farmer-70498
05/13/2025, 1:00 AMcreamy-pencil-82913
05/13/2025, 2:43 AMcreamy-pencil-82913
05/13/2025, 2:44 AMbroad-farmer-70498
05/13/2025, 3:14 AMbroad-farmer-70498
05/13/2025, 3:15 AMcreamy-pencil-82913
05/13/2025, 3:15 AMbroad-farmer-70498
05/13/2025, 3:16 AMcreamy-pencil-82913
05/13/2025, 3:16 AMbroad-farmer-70498
05/13/2025, 3:17 AMcreamy-pencil-82913
05/13/2025, 3:17 AMbroad-farmer-70498
05/13/2025, 3:19 AMcreamy-pencil-82913
05/13/2025, 3:20 AMkubectl logs
and kubectl exec
broad-farmer-70498
05/13/2025, 3:20 AMcreamy-pencil-82913
05/13/2025, 3:21 AMcreamy-pencil-82913
05/13/2025, 3:21 AMbroad-farmer-70498
05/13/2025, 3:21 AMbroad-farmer-70498
05/13/2025, 3:23 AMbroad-farmer-70498
05/13/2025, 3:24 AMbroad-farmer-70498
05/13/2025, 3:25 AMAPISERVER_CERT_LOCATION
creamy-pencil-82913
05/13/2025, 3:26 AMcreamy-pencil-82913
05/13/2025, 3:27 AMbroad-farmer-70498
05/13/2025, 3:27 AMcreamy-pencil-82913
05/13/2025, 3:27 AMbroad-farmer-70498
05/13/2025, 3:28 AMbroad-farmer-70498
05/13/2025, 3:29 AMbroad-farmer-70498
05/13/2025, 3:31 AMcreamy-pencil-82913
05/13/2025, 3:44 AMbroad-farmer-70498
05/13/2025, 4:45 AMcat /var/lib/rancher/rke2/server/tls/server-ca.crt
broad-farmer-70498
05/13/2025, 4:48 AMcreamy-pencil-82913
05/13/2025, 4:49 AMcreamy-pencil-82913
05/13/2025, 4:49 AMbroad-farmer-70498
05/13/2025, 4:50 AMbroad-farmer-70498
05/13/2025, 5:25 AMkubectl exec -ti macos -- /bin/zsh
error: Internal error occurred: error sending request: Post "<https://172.26.64.19:10250/exec/default/macos/macos?command=%2Fbin%2Fzsh&input=1&output=1&tty=1>": proxy error from 127.0.0.1:9345 while dialing 172.26.64.19:10250, code 502: 502 Bad Gateway
broad-farmer-70498
05/13/2025, 5:26 AMcreamy-pencil-82913
05/13/2025, 5:58 AMdebug: true
might show some additional info.creamy-pencil-82913
05/13/2025, 5:59 AMegress-selector-mode: disabled
although that may break other thingsbroad-farmer-70498
05/13/2025, 3:04 PMbroad-farmer-70498
05/13/2025, 3:05 PMcreamy-pencil-82913
05/13/2025, 4:22 PMbroad-farmer-70498
05/13/2025, 4:23 PMexec
command I am getting the error above without even seeing any packets come throughcreamy-pencil-82913
05/13/2025, 4:24 PMegress-selector-mode: disabled
?broad-farmer-70498
05/13/2025, 4:24 PMbroad-farmer-70498
05/13/2025, 4:24 PMcreamy-pencil-82913
05/13/2025, 4:44 PMcreamy-pencil-82913
05/13/2025, 4:44 PMkube-apiserver-arg:
- kubelet-preferred-address-types=Hostname,InternalDNS,InternalIP
Right now it’s trying to connect to the kubelet by IP which requires a tunnel session when the egress-selector-mode is not set to disabled.creamy-pencil-82913
05/13/2025, 4:46 PMbroad-farmer-70498
05/13/2025, 5:05 PMbroad-farmer-70498
05/13/2025, 5:05 PMcreamy-pencil-82913
05/13/2025, 5:58 PMbroad-farmer-70498
05/13/2025, 7:10 PMcreamy-pencil-82913
05/13/2025, 7:13 PMcreamy-pencil-82913
05/13/2025, 7:16 PMbroad-farmer-70498
05/13/2025, 7:22 PMbroad-farmer-70498
05/13/2025, 10:57 PMexec
access now 😄broad-farmer-70498
05/13/2025, 10:59 PMcurl
command you mentioned for issuing certs? I'm looking to codify this process and make it a bit more consumable for folks to add a bunch of these mac machines to the cluster.creamy-pencil-82913
05/14/2025, 12:06 AMcurl -vkS -u 'node:token' -H 'rke2-node-name: my-node' -H 'rke2-node-password: my-password' <https://localhost:9345/v1-rke2/serving-kubelet.crt>
creamy-pencil-82913
05/14/2025, 12:07 AMclient-kubelet.crt
broad-farmer-70498
05/14/2025, 2:50 PM