GoogleContainerTools / GoogleContainerTools/skaffold

exec.go:271] constructing many client instances from the same exec auth config can cause performance problems during cert rotation and can exhaust available network connections; 2886 clients constructed calling xxx

Open
#5,357 7 comments 0 reactions 0 assignees View on GitHub
area/deploy area/logging deploy/kubectl deploy/kubectl1.20 kind/friction priority/p3
Dominant language
Go
Stars
15.9k
Forks
1.7k
Avg merge
3d 9h
Merged PRs (30d)
10

Description

I'm hitting this issue:

https://github.com/kubernetes/client-go/issues/803

with skaffold dev or debug on FILE CHANGE

with 1000's of clients created very quickly when tracking changes on 4 deployments.

### Expected behavior
no warning messages

### Actual behavior
100's or warnings all over the logs. very noisy in the actual deployment logs

```
W0209 17:01:20.115833 36539 exec.go:271] constructing many client instances from the same exec auth config can cause performance problems during cert rotation and can exhaust available network connections; 3347 clients constructed calling "oci"
W0209 17:01:20.115895 36539 exec.go:271] constructing many client instances from the same exec auth config can cause performance problems during cert rotation and can exhaust available network connections; 3348 clients constructed calling "oci"
W0209 17:01:20.115957 36539 exec.go:271] constructing many client instances from the same exec auth config can cause performance problems during cert rotation and can exhaust available network connections; 3349 clients constructed calling "oci"
W0209 17:01:20.116059 36539 exec.go:271] constructing many client instances from the same exec auth config can cause performance problems during cert rotation and can exhaust available network connections; 3350 clients constructed calling "oci"
W0209 17:01:20.116148 36539 exec.go:271] constructing many client instances from the same exec auth config can cause performance problems during cert rotation and can exhaust available network connections; 3351 clients constructed calling "oci"
W0209 17:01:20.116217 36539 exec.go:271] constructing many client instances from the same exec auth config can cause performance problems during cert rotation and can exhaust available network connections; 3352 clients constructed calling "oci"
W0209 17:01:20.116283 36539 exec.go:271] constructing many client instances from the same exec auth config can cause performance problems during cert rotation and can exhaust available network connections; 3353 clients constructed calling "oci"
W0209 17:01:20.116345 36539 exec.go:271] constructing many client instances from the same exec auth config can cause performance problems during cert rotation and can exhaust available network connections; 3354 clients constructed calling "oci"
W0209 17:01:20.116404 36539 exec.go:271] constructing many client instances from the same exec auth config can cause performance problems during cert rotation and can exhaust available network connections; 3355 clients constructed calling "oci"
W0209 17:01:20.116474 36539 exec.go:271] constructing many client instances from the same exec auth config can cause performance problems during cert rotation and can exhaust available network connections; 3356 clients constructed calling "oci"
W0209 17:01:20.116545 36539 exec.go:271] constructing many client instances from the same exec auth config can cause performance problems during cert rotation and can exhaust available network connections; 3357 clients constructed calling "oci"
W0209 17:01:20.116616 36539 exec.go:271] constructing many client instances from the same exec auth config can cause performance problems during cert rotation and can exhaust available network connections; 3358 clients constructed calling "oci"
W0209 17:01:20.116672 36539 exec.go:271] constructing many client instances from the same exec auth config can cause performance problems during cert rotation and can exhaust available network connections; 3359 clients constructed calling "oci"
```
### Information

- Skaffold version: v.1.19.0
- Operating system: OS X Catalina 10.15.7
- Contents of skaffold.yaml:

```yaml
apiVersion: skaffold/v2beta11
kind: Config
metadata:
name: demo
build:
artifacts:
- image: my-registry/demo/consumer
context: src/consumer
docker:
dockerfile: Dockerfile
sync:
manual:
- src: src/**
dest: /src
- image: my-registry/demo/producer
context: src/producer
sync:
manual:
- src: src/**
dest: /src
docker:
dockerfile: Dockerfile
- image: my-registry/demo/web
context: src/web
docker:
dockerfile: Dockerfile
sync:
manual:
- src: src/**
dest: /src
- src: src/static/**
dest: /src/static
- image: my-registry/demo/db-config
context: src/db-config
docker:
dockerfile: Dockerfile
sync:
manual:
- src: src/**
dest: /src
portForward:
- resourceType: deployment
resourceName: dev-producer
port: 5678
localPort: 5678
- resourceType: deployment
resourceName: dev-consumer
port: 5678
localPort: 5679
- resourceType: deployment
resourceName: dev-web
port: 5678
localPort: 5680
# default deploy
deploy:
kustomize:
paths:
- k8s/overlays/development
profiles:
- name: dev
deploy:
kustomize:
paths:
- k8s/overlays/development
build:
artifacts:
- image: my-registry/demo/consumer
context: src/consumer
docker:
dockerfile: Dockerfile
# target: autoreload
sync:
manual:
- src: src/**
dest: /src
- image: my-registry/demo/producer
context: src/producer
sync:
manual:
- src: src/**
dest: /src
docker:
dockerfile: Dockerfile
# target: autoreload
- image: my-registry/demo/web
context: src/web
docker:
dockerfile: Dockerfile
target: autoreload
sync:
manual:
- src: src/**
dest: /src
- src: src/static/**
dest: /src/static
- image: my-registry/demo/db-config
context: src/db-config
docker:
dockerfile: Dockerfile
# target: autoreload
sync:
manual:
- src: src/**
dest: /src

- name: development
deploy:
kustomize:
paths:
- k8s/overlays/development
- name: staging
deploy:
kustomize:
paths:
- k8s/overlays/staging
- name: prod
deploy:
kustomize:
paths:
- k8s/overlays/production

```

### Steps to reproduce the behavior

sorry can't share right now.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.