Skip to content

Commit

Permalink
Force use of iptables-legacy
Browse files Browse the repository at this point in the history
kube-proxy and Calico are still using the legacy implementation, so we want our custom rules
to go into the same tables.

See:
  * https://docs.fedoraproject.org/en-US/fedora-coreos/major-changes/#_moving_to_iptables_nft
  * coreos/fedora-coreos-tracker#676
  * coreos/fedora-coreos-config#1324
  • Loading branch information
elemental-lf committed Sep 2, 2022
1 parent 10fdb2b commit d5363e6
Show file tree
Hide file tree
Showing 2 changed files with 54 additions and 0 deletions.
27 changes: 27 additions & 0 deletions bare-metal/fedora-coreos/kubernetes/butane/controller.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -375,6 +375,33 @@ storage:
[Install]
WantedBy=multi-user.target
- path: /etc/coreos/iptables-legacy.stamp
mode: 0644
links:
- path: /etc/alternatives/iptables
target: /usr/sbin/iptables-legacy
overwrite: true
hard: false
- path: /etc/alternatives/iptables-restore
target: /usr/sbin/iptables-legacy-restore
overwrite: true
hard: false
- path: /etc/alternatives/iptables-save
target: /usr/sbin/iptables-legacy-save
overwrite: true
hard: false
- path: /etc/alternatives/ip6tables
target: /usr/sbin/ip6tables-legacy
overwrite: true
hard: false
- path: /etc/alternatives/ip6tables-restore
target: /usr/sbin/ip6tables-legacy-restore
overwrite: true
hard: false
- path: /etc/alternatives/ip6tables-save
target: /usr/sbin/ip6tables-legacy-save
overwrite: true
hard: false
passwd:
users:
- name: core
Expand Down
27 changes: 27 additions & 0 deletions bare-metal/fedora-coreos/kubernetes/butane/worker.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -257,6 +257,33 @@ storage:
[Install]
WantedBy=multi-user.target
- path: /etc/coreos/iptables-legacy.stamp
mode: 0644
links:
- path: /etc/alternatives/iptables
target: /usr/sbin/iptables-legacy
overwrite: true
hard: false
- path: /etc/alternatives/iptables-restore
target: /usr/sbin/iptables-legacy-restore
overwrite: true
hard: false
- path: /etc/alternatives/iptables-save
target: /usr/sbin/iptables-legacy-save
overwrite: true
hard: false
- path: /etc/alternatives/ip6tables
target: /usr/sbin/ip6tables-legacy
overwrite: true
hard: false
- path: /etc/alternatives/ip6tables-restore
target: /usr/sbin/ip6tables-legacy-restore
overwrite: true
hard: false
- path: /etc/alternatives/ip6tables-save
target: /usr/sbin/ip6tables-legacy-save
overwrite: true
hard: false
passwd:
users:
- name: core
Expand Down

0 comments on commit d5363e6

Please sign in to comment.