kubernetes: kube-apiserver memory leak

What happened?

I have upgraded to kubernetes 1.31.1 using Kubespray, after the update i can observe several issues, if we observe the graph for mem usage its like 45 degrees, from the start rising up untill it crashes, not much can be seen from the logs except some GRCP errors, i doubt this to cause the crashes, but this is everything i have

What did you expect to happen?

Api not leak memory and crashes

How can we reproduce it (as minimally and precisely as possible)?

Not sure

Anything else we need to know?

W1214 15:25:17.351529 1 logging.go:55] [core] [Channel #1029556 SubChannel #1029558]grpc: addrConn.createTransport failed to connect to {Addr: “REDACTED:REDACTED”, ServerName: “REDACTED:REDACTED”, }. Err: connection error: desc = “error reading server preface: read tcp REDACTED:REDACTED->REDACTED:REDACTED: use of closed network connection”

Those erros are filling the logs, nothing else can be observed

Kubernetes version

$ kubectl version 
# paste output here

1.31.1

Cloud provider

OS version

# On Linux:
$ cat /etc/os-release
# Ubuntu 24.04
$ uname -a
# paste output here

# On Windows:
C:\> wmic os get Caption, Version, BuildNumber, OSArchitecture
# paste output here

Install tools

Kubespray

Container runtime (CRI) and version (if applicable)

Containerd

Related plugins (CNI, CSI, …) and versions (if applicable)

Weave

About this issue

  • Original URL
  • State: closed
  • Created 2 years ago
  • Comments: 24 (17 by maintainers)

Most upvoted comments

It is fixed in v1.31.2+

@dims query shows is beta enabled by default, so most probably is enabled

@mrBlackhat you can disable it by using the flag --feature-gates=APIServerTracing=false