mirror of
https://github.com/k3s-io/kubernetes.git
synced 2026-07-17 11:28:58 +00:00
If you can't set hashsize on nf_conntrack don't fail
This commit is contained in:
committed by
rafaelbreno[commit]
parent
13c9864c69
commit
e8ee71066e
@@ -83,7 +83,10 @@ func (rct realConntracker) 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 realConntracker) SetTCPEstablishedTimeout(ctx context.Context, seconds int) error {
|
||||
|
||||
Reference in New Issue
Block a user