-
Notifications
You must be signed in to change notification settings - Fork 87
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
Use same IP address for both boots and nginx #43
Conversation
Hello! Thank you for this work, can you rebase, please? Thanks |
506745f
to
f115b77
Compare
Done |
Ops, I am sorry |
I am not sure how this will impact users that are running Nginx and I am not sure if we have to mark it as breaking change or not. I will have a look tomorrow 👍 |
Signed-off-by: Michael Richard <[email protected]>
f115b77
to
c7b8426
Compare
Now it's fixed! |
It's probably fair to consider it as a breaking change, even though it won't break anything in a majority of cases. Upgrading will fail if:
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I tried the migration and yes, a docker-compose rm, up does the magic! Thanks
Signed-off-by: Michael Richard <[email protected]> ## Description This configures NGINX to listen on port 8080 and lets go the need to configure a second IP address on the host dedicated to NGINX. ## Why is this needed Setting up a second IP address to host NGINX on the same host is not always easy, especially when running tinkerbell on network devices like switches. The second IP address adds a useless level of complexity. In the future, all the code required to identify the host operating system and configure the IP address could even be removed and left as a prerequisite, since the host is likely to have an IP address already configured. ## How Has This Been Tested? The untouched vagrant_test.go test ran sucessfully. ## How are existing users impacted? What migration steps/scripts do we need? Simply re-applying the docker-compose.yml should be sufficient (untested). Additional firewall rules to allow traffic on port 8080 could be required depending on user's network configuration. ## Checklist: I have: - [ ] updated the documentation and/or roadmap (if required) - [ ] added unit or e2e tests - [ ] provided instructions on how to upgrade
Signed-off-by: Michael Richard [email protected]
Description
This configures NGINX to listen on port 8080 and lets go the need to configure a second IP address on the host dedicated to NGINX.
Why is this needed
Setting up a second IP address to host NGINX on the same host is not always easy, especially when running tinkerbell on network devices like switches. The second IP address adds a useless level of complexity. In the future, all the code required to identify the host operating system and configure the IP address could even be removed and left as a prerequisite, since the host is likely to have an IP address already configured.
How Has This Been Tested?
The untouched vagrant_test.go test ran sucessfully.
How are existing users impacted? What migration steps/scripts do we need?
Simply re-applying the docker-compose.yml should be sufficient (untested).
Additional firewall rules to allow traffic on port 8080 could be required depending on user's network configuration.
Checklist:
I have: