mirror of
https://github.com/k3s-io/kubernetes.git
synced 2026-07-17 02:06:23 +00:00
If you can't set hashsize on nf_conntrack don't fail
This commit is contained in:
committed by
rafaelbreno[commit]
parent
7c5c8ff497
commit
c0ce46d08d
@@ -159,7 +159,10 @@ func (rct realConntrackConfigurer) SetMax(ctx context.Context, max int) error {
|
||||
}
|
||||
|
||||
logger.Info("Setting conntrack hashsize", "conntrackHashsize", max/4)
|
||||
return writeIntStringFile("/sys/module/nf_conntrack/parameters/hashsize", max/4)
|
||||
if err := writeIntStringFile("/sys/module/nf_conntrack/parameters/hashsize", max/4); err != nil {
|
||||
logger.Error(err, "failed to set conntrack hashsize", "conntrackHashsize", max/4)
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (rct realConntrackConfigurer) SetTCPEstablishedTimeout(ctx context.Context, seconds int) error {
|
||||
|
||||
Reference in New Issue
Block a user