Add required firewall configuration in post-networking RPM stage#832
Add required firewall configuration in post-networking RPM stage#832ggiguash wants to merge 1 commit intoopenshift:mainfrom
Conversation
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: ggiguash The full list of commands accepted by this bot can be found here. The pull request process is described here DetailsNeeds approval from an approver in each of these files:
Approvers can indicate their approval by writing |
| systemctl is-active --quiet NetworkManager && systemctl restart --quiet NetworkManager || true | ||
| systemctl enable --now --quiet openvswitch || true | ||
| # configure the firewall rules for pods to intercommunicate | ||
| systemctl is-active --quiet firewalld || firewall-offline-cmd -q --zone=trusted --add-source=10.42.0.0/16 |
There was a problem hiding this comment.
Should we expect customized cluster IP range?
There was a problem hiding this comment.
Can we extract this information from somewhere?
|
/hold |
|
@ggiguash, so far we've deliberately avoided making firewall and similar security-impacting changes to the OS "under the hood" by the RPM installation scripts (or MicroShift FTM). The reason is we thought it a best-practice that sys admins should consciously and selectively open up their systems. To @zshi-redhat's point: The problem is the I understand the intention is to eliminate a common source of error; would it maybe make more sense to add some form of validation at MicroShift startup instead? Like "ERROR: You've configured a ClusterCIDR of 10.42.0.0/16, but didn't open the firewall ports." |
|
@ggiguash: all tests passed! Full PR test history. Your PR dashboard. DetailsInstructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here. |
Test when firewalld is DOWN (sudo -i)
Test when firewalld is UP (sudo -i)
Closes USHIFT-245