kubelogin icon indicating copy to clipboard operation
kubelogin copied to clipboard

client instance warnings when describe non-existent pod

Open mmb opened this issue 3 years ago • 0 comments

Describe the issue

If you describe a non-existent pod when using kubelogin it shows warnings:

W0521 10:28:30.795744   51175 exec.go:282] constructing many client instances from the same exec auth config can cause performance problems during cert rotation and can exhaust available network connections; 1402 clients constructed calling "kubectl"
W0521 10:28:30.795964   51175 exec.go:282] constructing many client instances from the same exec auth config can cause performance problems during cert rotation and can exhaust available network connections; 1403 clients constructed calling "kubectl"
W0521 10:28:30.796178   51175 exec.go:282] constructing many client instances from the same exec auth config can cause performance problems during cert rotation and can exhaust available network connections; 1404 clients constructed calling "kubectl"

This is not a real use case but why are so many clients being created?

To reproduce

kubectl describe pod does-not-exist

Your environment

  • OS: macOS
  • kubelogin version: e.g. v1.23.1
  • kubectl version: e.g. v1.20.1
  • OpenID Connect provider: internal

mmb avatar May 21 '21 17:05 mmb