From 3537facb3a2d3a1fa2137e251f572c82524ae490 Mon Sep 17 00:00:00 2001 From: galal-hussein Date: Thu, 29 Aug 2024 20:05:47 +0300 Subject: [PATCH] Ignore nfacct init error in kube-proxy Signed-off-by: galal-hussein --- pkg/proxy/metrics/metrics.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pkg/proxy/metrics/metrics.go b/pkg/proxy/metrics/metrics.go index aaf526a1271..d42a371b3fe 100644 --- a/pkg/proxy/metrics/metrics.go +++ b/pkg/proxy/metrics/metrics.go @@ -376,7 +376,8 @@ var _ metrics.StableCollector = &nfacctMetricCollector{} func newNFAcctMetricCollector(counter string, description *metrics.Desc) *nfacctMetricCollector { client, err := nfacct.New() if err != nil { - klog.ErrorS(err, "failed to initialize nfacct client") + // https://github.com/kubernetes/kubernetes/issues/126 + // klog.ErrorS(err, "failed to initialize nfacct client") return nil } return &nfacctMetricCollector{