Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Wrong private IP assignment in Kubernetes workload #909

Closed
AbdelrahmanElawady opened this issue Mar 5, 2024 · 1 comment
Closed

Wrong private IP assignment in Kubernetes workload #909

AbdelrahmanElawady opened this issue Mar 5, 2024 · 1 comment
Assignees
Labels
grid-cli belongs to grid cli grid-client belongs to grid client type_bug Something isn't working
Milestone

Comments

@AbdelrahmanElawady
Copy link
Collaborator

Description

Deploying Kubernetes using tfcmd with two workers on the same node result in private ips being equal, which should not happen.

Example:

$ tfcmd deploy kubernetes -n kube --ssh ~/.ssh/id_rsa.pub --master-node 14 --workers-number 2 --workers-node 14
11:43AM INF starting peer session=tf-1510734 twin=192
11:43AM INF deploying network
11:43AM INF deploying cluster
11:43AM INF master wireguard ip: 10.20.2.2
11:43AM INF master planetary ip: 300:e9c4:9048:57cf:d73d:eb4c:7a6d:503
11:43AM INF master mycelium ip: 423:16f5:ca74:b600:ff0f:9ee:d57e:827a
11:43AM INF worker1 wireguard ip: 10.20.2.3
11:43AM INF worker0 wireguard ip: 10.20.2.3
11:43AM INF worker1 planetary ip: 300:e9c4:9048:57cf:3c4f:d477:b4a5:890b
11:43AM INF worker0 planetary ip: 300:e9c4:9048:57cf:77ca:5424:21da:4fff
11:43AM INF worker1 mycelium ip: 423:16f5:ca74:b600:ff0f:e02f:1ad7:d74e
11:43AM INF worker0 mycelium ip: 423:16f5:ca74:b600:ff0f:bb5a:6036:56f6
@AbdelrahmanElawady AbdelrahmanElawady added type_bug Something isn't working grid-cli belongs to grid cli labels Mar 5, 2024
@AbdelrahmanElawady AbdelrahmanElawady added this to the 1.0.0 milestone Mar 5, 2024
@AbdelrahmanElawady AbdelrahmanElawady self-assigned this Mar 5, 2024
@rawdaGastan rawdaGastan added the grid-client belongs to grid client label Mar 5, 2024
@rawdaGastan
Copy link
Collaborator

Verification

  • Tried to deploy 5 workers and all generated different IPs
$ tfcmd deploy kubernetes -n kube --ssh ~/.ssh/id_rsa.pub --master-node 11 --workers-number 5 --workers-node 11
12:37PM INF starting peer session=tf-1139863 twin=81
12:37PM INF deploying network
12:37PM INF deploying cluster
12:38PM INF master wireguard ip: 10.20.2.2
12:38PM INF master planetary ip: 302:9e63:7d43:b742:ef79:684:2d24:5893
12:38PM INF master mycelium ip: 412:9ffb:a7c2:1743:ff0f:5dc8:aab6:332d
12:38PM INF worker4 wireguard ip: 10.20.2.7
12:38PM INF worker2 wireguard ip: 10.20.2.5
12:38PM INF worker3 wireguard ip: 10.20.2.6
12:38PM INF worker1 wireguard ip: 10.20.2.4
12:38PM INF worker0 wireguard ip: 10.20.2.3
12:38PM INF worker4 planetary ip: 302:9e63:7d43:b742:5c8c:d07:c8bc:6aca
12:38PM INF worker2 planetary ip: 302:9e63:7d43:b742:8929:dca8:7b31:84c0
12:38PM INF worker3 planetary ip: 302:9e63:7d43:b742:2a5c:2b53:5a65:8845
12:38PM INF worker1 planetary ip: 302:9e63:7d43:b742:4b8d:5c6f:9403:2ef
12:38PM INF worker0 planetary ip: 302:9e63:7d43:b742:2354:d5f7:3cab:9a81
12:38PM INF worker4 mycelium ip: 412:9ffb:a7c2:1743:ff0f:f794:3a73:a31b
12:38PM INF worker2 mycelium ip: 412:9ffb:a7c2:1743:ff0f:5d77:329a:76d1
12:38PM INF worker3 mycelium ip: 412:9ffb:a7c2:1743:ff0f:6871:20c6:7535
12:38PM INF worker1 mycelium ip: 412:9ffb:a7c2:1743:ff0f:2c38:dd1c:18c3
12:38PM INF worker0 mycelium ip: 412:9ffb:a7c2:1743:ff0f:9325:13e5:f291

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
grid-cli belongs to grid cli grid-client belongs to grid client type_bug Something isn't working
Projects
No open projects
Status: Done
Development

No branches or pull requests

2 participants