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

Provisioner should be setup to NAT for the workers #31

Closed
mmlb opened this issue Dec 10, 2020 · 10 comments
Closed

Provisioner should be setup to NAT for the workers #31

mmlb opened this issue Dec 10, 2020 · 10 comments
Assignees

Comments

@mmlb
Copy link
Contributor

mmlb commented Dec 10, 2020

I'm not sure why we didn't do this from the beginning and I can't really think of a good reason to make the default setup not have internet access via the provisioner. If we enable routing and NAT'ing we'd be able to drop the local registry and the need to sync/re-tag images from the setup, and the workflows will be able to use the internet access to fetch from.

@mrmrcoleman
Copy link

mrmrcoleman commented Dec 10, 2020

Agree. I use this:

sudo iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE
sudo iptables -A FORWARD -i eth1 -j ACCEPT
sudo iptables -A FORWARD -i eth0 -j ACCEPT

Taken from this: https://kinvolk.io/blog/2020/10/provisioning-flatcar-container-linux-with-tinkerbell/

@gianarb
Copy link
Contributor

gianarb commented Dec 11, 2020

We assumed it was made in this way with reasons, glad there are no good reasons for those extra steps.

@gianarb
Copy link
Contributor

gianarb commented Dec 29, 2020

Anyway, great news. @Cbkhare can you have a look?

  • Enable NAT for Terraform and Vagrant (you can check this running a workflow that uses https://hub.docker.com/_/hello-world directly from the Docker Hub.
  • Update documentation removing what is not needed anymore

I think we are not ready to remove the registry yet. I want to speak about it during a contributor meeting. But this issue can be closed as soon as the NAT is in place 👍

@Cbkhare
Copy link
Contributor

Cbkhare commented Jan 4, 2021

nat changes added via tinkerbell/tink#410

@gianarb
Copy link
Contributor

gianarb commented Jan 7, 2021

@Cbkhare this has to be ported to this repository. The setup.sh scripts are independent

@Cbkhare
Copy link
Contributor

Cbkhare commented Jan 7, 2021

@gianarb yes, I have discussed with @mmlb . I will raise a PR for this repo as well.

@Cbkhare
Copy link
Contributor

Cbkhare commented Jan 7, 2021

PR for sandbox repo. #33

mergify bot added a commit that referenced this issue Jan 7, 2021
## Description

Provisioner NAT setup for workers 

## Why is this needed

internet access on workers 
#31 


Fixes: #

## How Has This Been Tested?

- workflow executed successfully.
- ping from workers works correctly.

PR in reference with tinkerbell/tink#410
@Cbkhare
Copy link
Contributor

Cbkhare commented Jan 11, 2021

PR for documentation tinkerbell/tinkerbell-docs#55

@Cbkhare
Copy link
Contributor

Cbkhare commented Jan 11, 2021

All Pr merged.

@gianarb gianarb closed this as completed Jan 11, 2021
@gianarb
Copy link
Contributor

gianarb commented Jan 11, 2021

Thanks @Cbkhare ! well done!

ttwd80 pushed a commit to ttwd80/tinkerbell-playground that referenced this issue Sep 7, 2024
## Description

Provisioner NAT setup for workers 

## Why is this needed

internet access on workers 
tinkerbell#31 


Fixes: #

## How Has This Been Tested?

- workflow executed successfully.
- ping from workers works correctly.

PR in reference with tinkerbell/tink#410
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants