From c4172b09d5a6b4883a2488ca96e31eb7bf10ecde 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 d65e7c29d0f..206e4c93c38 100644 --- a/pkg/proxy/metrics/metrics.go +++ b/pkg/proxy/metrics/metrics.go @@ -337,7 +337,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{