mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-02 00:07:50 +00:00
kubeadm: remove bridge-nf-call-iptables and bridge-nf-call-ip6tables preflight checks since not all the network implementations require this setting
This commit is contained in:
parent
003f4c5de4
commit
75238e592d
@ -54,8 +54,6 @@ import (
|
|||||||
)
|
)
|
||||||
|
|
||||||
const (
|
const (
|
||||||
bridgenf = "/proc/sys/net/bridge/bridge-nf-call-iptables"
|
|
||||||
bridgenf6 = "/proc/sys/net/bridge/bridge-nf-call-ip6tables"
|
|
||||||
ipv4Forward = "/proc/sys/net/ipv4/ip_forward"
|
ipv4Forward = "/proc/sys/net/ipv4/ip_forward"
|
||||||
ipv6DefaultForwarding = "/proc/sys/net/ipv6/conf/default/forwarding"
|
ipv6DefaultForwarding = "/proc/sys/net/ipv6/conf/default/forwarding"
|
||||||
externalEtcdRequestTimeout = 10 * time.Second
|
externalEtcdRequestTimeout = 10 * time.Second
|
||||||
|
@ -50,19 +50,17 @@ func addOSValidator(validators []system.Validator, reporter *system.StreamReport
|
|||||||
return validators
|
return validators
|
||||||
}
|
}
|
||||||
|
|
||||||
// addIPv6Checks adds IPv6 related bridgenf and forwarding checks
|
// addIPv6Checks adds IPv6 related checks
|
||||||
func addIPv6Checks(checks []Checker) []Checker {
|
func addIPv6Checks(checks []Checker) []Checker {
|
||||||
checks = append(checks,
|
checks = append(checks,
|
||||||
FileContentCheck{Path: bridgenf6, Content: []byte{'1'}},
|
|
||||||
FileContentCheck{Path: ipv6DefaultForwarding, Content: []byte{'1'}},
|
FileContentCheck{Path: ipv6DefaultForwarding, Content: []byte{'1'}},
|
||||||
)
|
)
|
||||||
return checks
|
return checks
|
||||||
}
|
}
|
||||||
|
|
||||||
// addIPv4Checks adds IPv4 related bridgenf and forwarding checks
|
// addIPv4Checks adds IPv4 related checks
|
||||||
func addIPv4Checks(checks []Checker) []Checker {
|
func addIPv4Checks(checks []Checker) []Checker {
|
||||||
checks = append(checks,
|
checks = append(checks,
|
||||||
FileContentCheck{Path: bridgenf, Content: []byte{'1'}},
|
|
||||||
FileContentCheck{Path: ipv4Forward, Content: []byte{'1'}})
|
FileContentCheck{Path: ipv4Forward, Content: []byte{'1'}})
|
||||||
return checks
|
return checks
|
||||||
}
|
}
|
||||||
|
@ -30,13 +30,13 @@ func addOSValidator(validators []system.Validator, _ *system.StreamReporter) []s
|
|||||||
return validators
|
return validators
|
||||||
}
|
}
|
||||||
|
|
||||||
// addIPv6Checks adds IPv6 related bridgenf and forwarding checks
|
// addIPv6Checks adds IPv6 related checks
|
||||||
// No-op for Darwin (MacOS), Windows.
|
// No-op for Darwin (MacOS), Windows.
|
||||||
func addIPv6Checks(checks []Checker) []Checker {
|
func addIPv6Checks(checks []Checker) []Checker {
|
||||||
return checks
|
return checks
|
||||||
}
|
}
|
||||||
|
|
||||||
// addIPv4Checks adds IPv4 related bridgenf and forwarding checks
|
// addIPv4Checks adds IPv4 related checks
|
||||||
// No-op for Darwin (MacOS), Windows.
|
// No-op for Darwin (MacOS), Windows.
|
||||||
func addIPv4Checks(checks []Checker) []Checker {
|
func addIPv4Checks(checks []Checker) []Checker {
|
||||||
return checks
|
return checks
|
||||||
|
Loading…
Reference in New Issue
Block a user