From a4d44738f0d069b8b67006a3bcd5f12e9b240cc8 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 96b4f42487f..e2a1e910b2b 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{