mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-30 06:54:01 +00:00
Merge pull request #123464 from SataQiu/remove-bridge-nf-call-iptables-check
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:
commit
1b07df8845
@ -54,8 +54,6 @@ import (
|
||||
)
|
||||
|
||||
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"
|
||||
ipv6DefaultForwarding = "/proc/sys/net/ipv6/conf/default/forwarding"
|
||||
externalEtcdRequestTimeout = 10 * time.Second
|
||||
|
@ -50,19 +50,17 @@ func addOSValidator(validators []system.Validator, reporter *system.StreamReport
|
||||
return validators
|
||||
}
|
||||
|
||||
// addIPv6Checks adds IPv6 related bridgenf and forwarding checks
|
||||
// addIPv6Checks adds IPv6 related checks
|
||||
func addIPv6Checks(checks []Checker) []Checker {
|
||||
checks = append(checks,
|
||||
FileContentCheck{Path: bridgenf6, Content: []byte{'1'}},
|
||||
FileContentCheck{Path: ipv6DefaultForwarding, Content: []byte{'1'}},
|
||||
)
|
||||
return checks
|
||||
}
|
||||
|
||||
// addIPv4Checks adds IPv4 related bridgenf and forwarding checks
|
||||
// addIPv4Checks adds IPv4 related checks
|
||||
func addIPv4Checks(checks []Checker) []Checker {
|
||||
checks = append(checks,
|
||||
FileContentCheck{Path: bridgenf, Content: []byte{'1'}},
|
||||
FileContentCheck{Path: ipv4Forward, Content: []byte{'1'}})
|
||||
return checks
|
||||
}
|
||||
|
@ -30,13 +30,13 @@ func addOSValidator(validators []system.Validator, _ *system.StreamReporter) []s
|
||||
return validators
|
||||
}
|
||||
|
||||
// addIPv6Checks adds IPv6 related bridgenf and forwarding checks
|
||||
// addIPv6Checks adds IPv6 related checks
|
||||
// No-op for Darwin (MacOS), Windows.
|
||||
func addIPv6Checks(checks []Checker) []Checker {
|
||||
return checks
|
||||
}
|
||||
|
||||
// addIPv4Checks adds IPv4 related bridgenf and forwarding checks
|
||||
// addIPv4Checks adds IPv4 related checks
|
||||
// No-op for Darwin (MacOS), Windows.
|
||||
func addIPv4Checks(checks []Checker) []Checker {
|
||||
return checks
|
||||
|
Loading…
Reference in New Issue
Block a user