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

Integrate Mycelium with tfcmd #907

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

Integrate Mycelium with tfcmd #907

AbdelrahmanElawady opened this issue Mar 4, 2024 · 1 comment
Assignees
Labels
grid-cli belongs to grid cli type_feature New feature or request
Milestone

Comments

@AbdelrahmanElawady
Copy link
Collaborator

Is your feature request related to a problem? Please describe

There is no way to use Mycelium with vms/kubernetes on tfcmd

Describe the solution you'd like

add a flag for using Mycelium for both workloads

@AbdelrahmanElawady AbdelrahmanElawady added type_feature New feature or request grid-cli belongs to grid cli labels Mar 4, 2024
@AbdelrahmanElawady AbdelrahmanElawady self-assigned this Mar 4, 2024
@AbdelrahmanElawady AbdelrahmanElawady added this to the 1.0.0 milestone Mar 4, 2024
@rawdaGastan
Copy link
Collaborator

Verification

  • Deploying VM with mycelium (enabled by default)
$ tfcmd deploy vm --name examplevm --ssh ~/.ssh/id_rsa.pub --cpu 2 --memory 4 --disk 10
12:03PM INF starting peer session=tf-1134304 twin=81
12:03PM INF deploying network
12:03PM INF deploying vm
12:03PM INF vm planetary ip: 302:9e63:7d43:b742:c3a4:8c79:8e9c:fa56
12:03PM INF vm mycelium ip: 5a6:704d:9d29:6db8:ff0f:a3d:f940:6c0b
  • Tried to ssh using mycelium IP
$ ssh root@5a6:704d:9d29:6db8:ff0f:a3d:f940:6c0b
Welcome to Ubuntu 22.04.1 LTS (GNU/Linux 6.1.21 x86_64)

 * Documentation:  https://help.ubuntu.com
 * Management:     https://landscape.canonical.com
 * Support:        https://ubuntu.com/advantage

This system has been minimized by removing packages and content that are
not required on a system that users do not log into.

To restore this content, you can run the 'unminimize' command.
Last login: Tue Mar  5 10:04:28 2024 from 5af:9f9c:fb8:fd12:8072:3f65:79f8:c157
root@examplevm:~# 
  • Deploying Kubernetes (2 workers) with mycelium (enabled by default)
$ tfcmd deploy kubernetes -n kube --ssh ~/.ssh/id_rsa.pub --master-node 14 --workers-number 2 --workers-node 14
12:06PM INF starting peer session=tf-1135123 twin=81
12:06PM INF deploying network
12:07PM INF deploying cluster
12:07PM INF master wireguard ip: 10.20.2.2
12:07PM INF master planetary ip: 300:e9c4:9048:57cf:abb5:6dcc:3d44:915b
12:07PM INF master mycelium ip: 4f5:89e4:d65c:dba:ff0f:b34a:9262:5a07
12:07PM INF worker1 wireguard ip: 10.20.2.3
12:07PM INF worker0 wireguard ip: 10.20.2.3
12:07PM INF worker1 planetary ip: 300:e9c4:9048:57cf:c79f:13d6:cf60:4851
12:07PM INF worker0 planetary ip: 300:e9c4:9048:57cf:c731:2797:312a:75f8
12:07PM INF worker1 mycelium ip: 4f5:89e4:d65c:dba:ff0f:f478:a928:6de4
12:07PM INF worker0 mycelium ip: 4f5:89e4:d65c:dba:ff0f:bec0:b3bb:59e1
  • Tried to ssh using mycelium IP (master)
$ ssh root@4f5:89e4:d65c:dba:ff0f:b34a:9262:5a07
Welcome to Ubuntu 20.04.5 LTS (GNU/Linux 6.1.21 x86_64)

 * Documentation:  https://help.ubuntu.com
 * Management:     https://landscape.canonical.com
 * Support:        https://ubuntu.com/advantage

This system has been minimized by removing packages and content that are
not required on a system that users do not log into.

To restore this content, you can run the 'unminimize' command.

The programs included with the Ubuntu system are free software;
the exact distribution terms for each program are described in the
individual files in /usr/share/doc/*/copyright.

Ubuntu comes with ABSOLUTELY NO WARRANTY, to the extent permitted by
applicable law.

root@kube:~# kubectl get node
NAME     STATUS    ROLES                        AGE      VERSION
kube        Ready       control-plane,master   3m25s   v1.26.0+k3s1
worker0   Ready       <none>                       2m40s   v1.26.0+k3s1
worker1   Ready       <none>                       3m18s   v1.26.0+k3s1
  • Tried to ssh using mycelium IP (worker1)
$ ssh root@4f5:89e4:d65c:dba:ff0f:f478:a928:6de4
Welcome to Ubuntu 20.04.5 LTS (GNU/Linux 6.1.21 x86_64)

 * Documentation:  https://help.ubuntu.com
 * Management:     https://landscape.canonical.com
 * Support:        https://ubuntu.com/advantage

This system has been minimized by removing packages and content that are
not required on a system that users do not log into.

To restore this content, you can run the 'unminimize' command.

The programs included with the Ubuntu system are free software;
the exact distribution terms for each program are described in the
individual files in /usr/share/doc/*/copyright.

Ubuntu comes with ABSOLUTELY NO WARRANTY, to the extent permitted by
applicable law.

root@worker1:~# 
  • Tried to ssh using mycelium IP (worker0)
$ ssh root@4f5:89e4:d65c:dba:ff0f:bec0:b3bb:59e1
Welcome to Ubuntu 20.04.5 LTS (GNU/Linux 6.1.21 x86_64)

 * Documentation:  https://help.ubuntu.com
 * Management:     https://landscape.canonical.com
 * Support:        https://ubuntu.com/advantage

This system has been minimized by removing packages and content that are
not required on a system that users do not log into.

To restore this content, you can run the 'unminimize' command.

The programs included with the Ubuntu system are free software;
the exact distribution terms for each program are described in the
individual files in /usr/share/doc/*/copyright.

Ubuntu comes with ABSOLUTELY NO WARRANTY, to the extent permitted by
applicable law.

root@worker0:~# 

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 type_feature New feature or request
Projects
No open projects
Status: Done
Development

No branches or pull requests

2 participants