Skip to content

Commit

Permalink
Enable IPv6 forwarding in default OSPs (#299)
Browse files Browse the repository at this point in the history
Signed-off-by: Waleed Malik <[email protected]>
Co-authored-by: Waleed Malik <[email protected]>
  • Loading branch information
kubermatic-bot and ahmedwaleedmalik authored Jul 12, 2023
1 parent 6de7eff commit a9afdac
Show file tree
Hide file tree
Showing 11 changed files with 74 additions and 27 deletions.
9 changes: 8 additions & 1 deletion deploy/osps/default/osp-amzn2.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ metadata:
spec:
osName: "amzn2"
osVersion: "2.0"
version: "v1.3.0"
version: "v1.3.1"
provisioningUtility: "cloud-init"
supportedCloudProviders:
- name: "aws"
Expand Down Expand Up @@ -415,6 +415,13 @@ spec:
kernel.panic_on_oops = 1
kernel.panic = 10
net.ipv4.ip_forward = 1
{{- if or (eq .NetworkIPFamily "IPv4+IPv6") (eq .NetworkIPFamily "IPv6+IPv4") (eq .NetworkIPFamily "IPv6") }}
net.ipv6.conf.all.forwarding = 1
# Configure Linux to accept router advertisements to ensure the default
# IPv6 route is not removed from the routing table when the Docker service starts.
# For more information: https://github.com/docker/for-linux/issues/844
net.ipv6.conf.all.accept_ra = 2
{{- end }}
vm.overcommit_memory = 1
fs.inotify.max_user_watches = 1048576
fs.inotify.max_user_instances = 8192
Expand Down
9 changes: 8 additions & 1 deletion deploy/osps/default/osp-centos.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ metadata:
spec:
osName: "centos"
osVersion: "7.7"
version: "v1.3.0"
version: "v1.3.1"
provisioningUtility: "cloud-init"
supportedCloudProviders:
- name: "alibaba"
Expand Down Expand Up @@ -437,6 +437,13 @@ spec:
kernel.panic_on_oops = 1
kernel.panic = 10
net.ipv4.ip_forward = 1
{{- if or (eq .NetworkIPFamily "IPv4+IPv6") (eq .NetworkIPFamily "IPv6+IPv4") (eq .NetworkIPFamily "IPv6") }}
net.ipv6.conf.all.forwarding = 1
# Configure Linux to accept router advertisements to ensure the default
# IPv6 route is not removed from the routing table when the Docker service starts.
# For more information: https://github.com/docker/for-linux/issues/844
net.ipv6.conf.all.accept_ra = 2
{{- end }}
vm.overcommit_memory = 1
fs.inotify.max_user_watches = 1048576
fs.inotify.max_user_instances = 8192
Expand Down
9 changes: 8 additions & 1 deletion deploy/osps/default/osp-flatcar-cloud-init.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ spec:
osName: flatcar
## Flatcar Stable (09/11/2021)
osVersion: "2983.2.0"
version: "v1.3.0"
version: "v1.3.1"
provisioningUtility: "cloud-init"
supportedCloudProviders:
- name: "anexia"
Expand Down Expand Up @@ -421,6 +421,13 @@ spec:
kernel.panic_on_oops = 1
kernel.panic = 10
net.ipv4.ip_forward = 1
{{- if or (eq .NetworkIPFamily "IPv4+IPv6") (eq .NetworkIPFamily "IPv6+IPv4") (eq .NetworkIPFamily "IPv6") }}
net.ipv6.conf.all.forwarding = 1
# Configure Linux to accept router advertisements to ensure the default
# IPv6 route is not removed from the routing table when the Docker service starts.
# For more information: https://github.com/docker/for-linux/issues/844
net.ipv6.conf.all.accept_ra = 2
{{- end }}
vm.overcommit_memory = 1
fs.inotify.max_user_watches = 1048576
fs.inotify.max_user_instances = 8192
Expand Down
9 changes: 8 additions & 1 deletion deploy/osps/default/osp-flatcar.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ spec:
osName: flatcar
## Flatcar Stable (09/11/2021)
osVersion: "2983.2.0"
version: "v1.3.0"
version: "v1.3.1"
provisioningUtility: "ignition"
supportedCloudProviders:
- name: "aws"
Expand Down Expand Up @@ -411,6 +411,13 @@ spec:
kernel.panic_on_oops = 1
kernel.panic = 10
net.ipv4.ip_forward = 1
{{- if or (eq .NetworkIPFamily "IPv4+IPv6") (eq .NetworkIPFamily "IPv6+IPv4") (eq .NetworkIPFamily "IPv6") }}
net.ipv6.conf.all.forwarding = 1
# Configure Linux to accept router advertisements to ensure the default
# IPv6 route is not removed from the routing table when the Docker service starts.
# For more information: https://github.com/docker/for-linux/issues/844
net.ipv6.conf.all.accept_ra = 2
{{- end }}
vm.overcommit_memory = 1
fs.inotify.max_user_watches = 1048576
fs.inotify.max_user_instances = 8192
Expand Down
9 changes: 8 additions & 1 deletion deploy/osps/default/osp-rhel.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ metadata:
spec:
osName: "rhel"
osVersion: "8.5"
version: "v1.3.0"
version: "v1.3.1"
provisioningUtility: "cloud-init"
supportedCloudProviders:
- name: "aws"
Expand Down Expand Up @@ -427,6 +427,13 @@ spec:
kernel.panic_on_oops = 1
kernel.panic = 10
net.ipv4.ip_forward = 1
{{- if or (eq .NetworkIPFamily "IPv4+IPv6") (eq .NetworkIPFamily "IPv6+IPv4") (eq .NetworkIPFamily "IPv6") }}
net.ipv6.conf.all.forwarding = 1
# Configure Linux to accept router advertisements to ensure the default
# IPv6 route is not removed from the routing table when the Docker service starts.
# For more information: https://github.com/docker/for-linux/issues/844
net.ipv6.conf.all.accept_ra = 2
{{- end }}
vm.overcommit_memory = 1
fs.inotify.max_user_watches = 1048576
fs.inotify.max_user_instances = 8192
Expand Down
9 changes: 8 additions & 1 deletion deploy/osps/default/osp-rockylinux.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ metadata:
spec:
osName: "rockylinux"
osVersion: "8.6"
version: "v1.3.0"
version: "v1.3.1"
provisioningUtility: "cloud-init"
supportedCloudProviders:
- name: "aws"
Expand Down Expand Up @@ -431,6 +431,13 @@ spec:
kernel.panic_on_oops = 1
kernel.panic = 10
net.ipv4.ip_forward = 1
{{- if or (eq .NetworkIPFamily "IPv4+IPv6") (eq .NetworkIPFamily "IPv6+IPv4") (eq .NetworkIPFamily "IPv6") }}
net.ipv6.conf.all.forwarding = 1
# Configure Linux to accept router advertisements to ensure the default
# IPv6 route is not removed from the routing table when the Docker service starts.
# For more information: https://github.com/docker/for-linux/issues/844
net.ipv6.conf.all.accept_ra = 2
{{- end }}
vm.overcommit_memory = 1
fs.inotify.max_user_watches = 1048576
fs.inotify.max_user_instances = 8192
Expand Down
9 changes: 8 additions & 1 deletion deploy/osps/default/osp-ubuntu.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ metadata:
spec:
osName: "ubuntu"
osVersion: "20.04"
version: "v1.3.0"
version: "v1.3.1"
provisioningUtility: "cloud-init"
supportedCloudProviders:
- name: "alibaba"
Expand Down Expand Up @@ -451,6 +451,13 @@ spec:
kernel.panic_on_oops = 1
kernel.panic = 10
net.ipv4.ip_forward = 1
{{- if or (eq .NetworkIPFamily "IPv4+IPv6") (eq .NetworkIPFamily "IPv6+IPv4") (eq .NetworkIPFamily "IPv6") }}
net.ipv6.conf.all.forwarding = 1
# Configure Linux to accept router advertisements to ensure the default
# IPv6 route is not removed from the routing table when the Docker service starts.
# For more information: https://github.com/docker/for-linux/issues/844
net.ipv6.conf.all.accept_ra = 2
{{- end }}
vm.overcommit_memory = 1
fs.inotify.max_user_watches = 1048576
fs.inotify.max_user_instances = 8192
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -229,15 +229,14 @@ spec:
permissions: 755
- content:
inline:
data: |
net.bridge.bridge-nf-call-ip6tables = 1
net.bridge.bridge-nf-call-iptables = 1
kernel.panic_on_oops = 1
kernel.panic = 10
net.ipv4.ip_forward = 1
vm.overcommit_memory = 1
fs.inotify.max_user_watches = 1048576
fs.inotify.max_user_instances = 8192
data: "net.bridge.bridge-nf-call-ip6tables = 1\nnet.bridge.bridge-nf-call-iptables
= 1\nkernel.panic_on_oops = 1\nkernel.panic = 10\nnet.ipv4.ip_forward
= 1\nnet.ipv6.conf.all.forwarding = 1\n# Configure Linux to accept router
advertisements to ensure the default\n# IPv6 route is not removed from
the routing table when the Docker service starts.\n# For more information:
https://github.com/docker/for-linux/issues/844\nnet.ipv6.conf.all.accept_ra\t\t=
2\nvm.overcommit_memory = 1\nfs.inotify.max_user_watches = 1048576\nfs.inotify.max_user_instances
= 8192\n"
encoding: b64
path: /etc/sysctl.d/k8s.conf
permissions: 644
Expand Down
17 changes: 8 additions & 9 deletions pkg/controllers/osc/testdata/osc-ubuntu-aws-dualstack.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -229,15 +229,14 @@ spec:
permissions: 755
- content:
inline:
data: |
net.bridge.bridge-nf-call-ip6tables = 1
net.bridge.bridge-nf-call-iptables = 1
kernel.panic_on_oops = 1
kernel.panic = 10
net.ipv4.ip_forward = 1
vm.overcommit_memory = 1
fs.inotify.max_user_watches = 1048576
fs.inotify.max_user_instances = 8192
data: "net.bridge.bridge-nf-call-ip6tables = 1\nnet.bridge.bridge-nf-call-iptables
= 1\nkernel.panic_on_oops = 1\nkernel.panic = 10\nnet.ipv4.ip_forward
= 1\nnet.ipv6.conf.all.forwarding = 1\n# Configure Linux to accept router
advertisements to ensure the default\n# IPv6 route is not removed from
the routing table when the Docker service starts.\n# For more information:
https://github.com/docker/for-linux/issues/844\nnet.ipv6.conf.all.accept_ra\t\t=
2\nvm.overcommit_memory = 1\nfs.inotify.max_user_watches = 1048576\nfs.inotify.max_user_instances
= 8192\n"
encoding: b64
path: /etc/sysctl.d/k8s.conf
permissions: 644
Expand Down

Large diffs are not rendered by default.

Large diffs are not rendered by default.

0 comments on commit a9afdac

Please sign in to comment.