Merge pull request #12642 from hakman/ipv6_debian11_accept_ra

Enable Router Advertisements for Debian 11
This commit is contained in:
Kubernetes Prow Robot 2021-10-30 09:53:17 -07:00 committed by GitHub
commit 6be2b41c7d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 0 deletions

View File

@ -151,6 +151,11 @@ func (b *SysctlBuilder) Build(c *fi.ModelBuilderContext) error {
}
if b.Cluster.Spec.IsIPv6Only() {
if b.Distribution == distributions.DistributionDebian11 {
sysctls = append(sysctls,
"# Enable Router Advertisements to get the default IPv6 route",
"net.ipv6.conf.ens5.accept_ra=2")
}
sysctls = append(sysctls,
"# Enable IPv6 forwarding for network plugins that don't do it themselves",
"net.ipv6.conf.all.forwarding=1",