Replies: 3 comments 3 replies
-
It sounds like the agent and server can communicate with each other, but pods on different nodes cannot. What flannel backend are you using? You may have better luck with wireguard compared to vxlan if both nodes are behind different firewalls. |
Beta Was this translation helpful? Give feedback.
-
Yes, I thought so, too. They are behind different firewalls. I did not change anything, so I guess the one that comes with the standard installation? I am pretty new to Also, that is in my
|
Beta Was this translation helpful? Give feedback.
-
You might try wireguard instead so that it can tunnel between the two networks; you'll need to start both nodes with |
Beta Was this translation helpful? Give feedback.
-
Environmental Info:
K3s Version:
k3s version v1.20.6+k3s1 (8d04328)
go version go1.15.10
Node(s) CPU architecture, OS, and Version:
Linux 5.4.0-72-generic #80-Ubuntu SMP Mon Apr 12 17:35:00 UTC 2021 x86_64 x86_64 x86_64 GNU/Linux
Cluster Configuration:
1 server, 1 agent
Describe the bug:
My cluster consists of 1 server and 1 agent, both behind different NATs. The creation of the cluster worked without any problems. Access to all GPUs is also working. I installed
kubeflow
(https://github.com/kubeflow/kubeflow) on top ofk3s
, that also works. However, when creating a Jupyter notebook in the kubeflow dashboard, it only works on the server, i.e. I can create one notebook accessing the GPU of the server, but when creating another one with a GPU (which would need to be executed on the agent, since the server only has 1 GPU), the notebook starts but is not accessible.notebook-4
runs on the server (working fine), andnotebook-3
runs on the agent (not accessible).kubectl describe pod notebook-3-0 -n kubeflow-user-example-com
kubectl logs notebook-3-0 -n kubeflow-user-example-com
Steps To Reproduce:
On the server
export K3S_EXTERNAL_IP=<server_public_ip>
curl -sfL https://get.k3s.io | INSTALL_K3S_EXEC="--write-kubeconfig ~/.kube/config --write-kubeconfig-mode 666 --tls-san $K3S_EXTERNAL_IP --node-external-ip=$K3S_EXTERNAL_IP" sh -
On the agent:
export K3S_TOKEN=<token>
export K3S_URL=https://<server_public_ip>:6443
export INSTALL_K3S_EXEC="--token $K3S_TOKEN --server $K3S_URL"
curl -sfL https://get.k3s.io | sh -
Afterwards, I installed
kubeflow
as described here: https://github.com/kubeflow/manifests#install-with-a-single-commandExpected behavior:
I expected both notebooks to be accessible in the dashboard.
Actual behavior:
The notebook
notebook-3
(on the agent) is not accessible.Additional context / logs:
Logs from
notebook-4
kubectl logs notebook-4-0 -n kubeflow-user-example-com
kubectl describe pod notebook-4-0 -n kubeflow-user-example-com
Beta Was this translation helpful? Give feedback.
All reactions