Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Repeated GET calls to openapi/v2 #1104

Open
deedubs opened this issue Oct 2, 2020 · 2 comments
Open

Repeated GET calls to openapi/v2 #1104

deedubs opened this issue Oct 2, 2020 · 2 comments
Assignees
Labels
area/live bug Something isn't working triaged Issue has been triaged by adding an `area/` label

Comments

@deedubs
Copy link

deedubs commented Oct 2, 2020

kpt version eks version aws cli
0.34.0 v1.17.9 2.0.54

When attempting to use

kpt live diff dist/

After a period of 20-30 seconds my terminal started getting filled with the following:

W1002 12:17:56.500048    7366 exec.go:201] constructing many client instances from the same exec auth config can cause performance problems during cert rotation and can exhaust available network connections; 1141 clients constructed calling "aws"
W1002 12:17:56.696334    7366 exec.go:201] constructing many client instances from the same exec auth config can cause performance problems during cert rotation and can exhaust available network connections; 1142 clients constructed calling "aws"
W1002 12:17:56.898181    7366 exec.go:201] constructing many client instances from the same exec auth config can cause performance problems during cert rotation and can exhaust available network connections; 1143 clients constructed calling "aws"

I added -v10 to my command and notice repeated calls to openapi/v2 before other operations

I1002 13:43:45.345537 31187 round_trippers.go:423] curl -k -v -XGET -H "Accept: application/[email protected]+protobuf" -H "User-Agent: kpt/v0.0.0 (linux/amd64) kubernetes/$Format" 'https:// .gr7.us-west-2.eks.amazonaws.com/openapi/v2?timeout=32s' I1002 13:43:46.574025 31187 round_trippers.go:423] curl -k -v -XGET -H "User-Agent: kpt/v0.0.0 (linux/amd64) kubernetes/$Format" -H "Accept: application/[email protected]+protobuf" 'https:// .gr7.us-west-2.eks.amazonaws.com/openapi/v2?timeout=32s' I1002 13:43:46.827576 31187 round_trippers.go:423] curl -k -v -XGET -H "Accept: application/json" -H "User-Agent: kpt/0.34.0" 'https:// .gr7.us-west-2.eks.amazonaws.com/api/v1/namespaces/demo-project' I1002 13:43:46.940347 31187 round_trippers.go:423] curl -k -v -XGET -H "Accept: application/[email protected]+protobuf" -H "User-Agent: kpt/v0.0.0 (linux/amd64) kubernetes/$Format" 'https:// .gr7.us-west-2.eks.amazonaws.com/openapi/v2?timeout=32s' I1002 13:43:47.283940 31187 round_trippers.go:423] curl -k -v -XGET -H "Accept: application/json" -H "User-Agent: kpt/0.34.0" 'https:// .gr7.us-west-2.eks.amazonaws.com/apis/apiextensions.k8s.io/v1beta1/customresourcedefinitions/alertmanagers.monitoring.coreos.com' I1002 13:43:47.491409 31187 round_trippers.go:423] curl -k -v -XPATCH -H "User-Agent: kpt/0.34.0" -H "Accept: application/json" -H "Content-Type: application/merge-patch+json" 'https:// .gr7.us-west-2.eks.amazonaws.com/apis/apiextensions.k8s.io/v1beta1/customresourcedefinitions/alertmanagers.monitoring.coreos.com?dryRun=All' I1002 13:43:47.683270 31187 round_trippers.go:423] curl -k -v -XGET -H "Accept: application/[email protected]+protobuf" -H "User-Agent: kpt/v0.0.0 (linux/amd64) kubernetes/$Format" 'https:// .gr7.us-west-2.eks.amazonaws.com/openapi/v2?timeout=32s' I1002 13:43:47.883628 31187 round_trippers.go:423] curl -k -v -XGET -H "Accept: application/json" -H "User-Agent: kpt/0.34.0" 'https:// .gr7.us-west-2.eks.amazonaws.com/apis/apiextensions.k8s.io/v1beta1/customresourcedefinitions/podmonitors.monitoring.coreos.com' I1002 13:43:47.962197 31187 round_trippers.go:423] curl -k -v -XPATCH -H "Accept: application/json" -H "Content-Type: application/merge-patch+json" -H "User-Agent: kpt/0.34.0" 'https:// .gr7.us-west-2.eks.amazonaws.com/apis/apiextensions.k8s.io/v1beta1/customresourcedefinitions/podmonitors.monitoring.coreos.com?dryRun=All' I1002 13:43:48.061092 31187 round_trippers.go:423] curl -k -v -XGET -H "Accept: application/[email protected]+protobuf" -H "User-Agent: kpt/v0.0.0 (linux/amd64) kubernetes/$Format" 'https:// .gr7.us-west-2.eks.amazonaws.com/openapi/v2?timeout=32s' I1002 13:43:48.275823 31187 round_trippers.go:423] curl -k -v -XGET -H "Accept: application/json" -H "User-Agent: kpt/0.34.0" 'https:// .gr7.us-west-2.eks.amazonaws.com/apis/apiextensions.k8s.io/v1beta1/customresourcedefinitions/prometheuses.monitoring.coreos.com' I1002 13:43:48.462762 31187 round_trippers.go:423] curl -k -v -XPATCH -H "User-Agent: kpt/0.34.0" -H "Accept: application/json" -H "Content-Type: application/merge-patch+json" 'https:// .gr7.us-west-2.eks.amazonaws.com/apis/apiextensions.k8s.io/v1beta1/customresourcedefinitions/prometheuses.monitoring.coreos.com?dryRun=All' I1002 13:43:48.685127 31187 round_trippers.go:423] curl -k -v -XGET -H "Accept: application/[email protected]+protobuf" -H "User-Agent: kpt/v0.0.0 (linux/amd64) kubernetes/$Format" 'https:// .gr7.us-west-2.eks.amazonaws.com/openapi/v2?timeout=32s' I1002 13:43:48.921316 31187 round_trippers.go:423] curl -k -v -XGET -H "Accept: application/json" -H "User-Agent: kpt/0.34.0" 'https:// .gr7.us-west-2.eks.amazonaws.com/apis/apiextensions.k8s.io/v1beta1/customresourcedefinitions/prometheusrules.monitoring.coreos.com' I1002 13:43:48.994026 31187 round_trippers.go:423] curl -k -v -XPATCH -H "Accept: application/json" -H "Content-Type: application/merge-patch+json" -H "User-Agent: kpt/0.34.0" 'https:// .gr7.us-west-2.eks.amazonaws.com/apis/apiextensions.k8s.io/v1beta1/customresourcedefinitions/prometheusrules.monitoring.coreos.com?dryRun=All' I1002 13:43:49.072096 31187 round_trippers.go:423] curl -k -v -XGET -H "Accept: application/[email protected]+protobuf" -H "User-Agent: kpt/v0.0.0 (linux/amd64) kubernetes/$Format" 'https:// .gr7.us-west-2.eks.amazonaws.com/openapi/v2?timeout=32s' I1002 13:43:49.343813 31187 round_trippers.go:423] curl -k -v -XGET -H "Accept: application/json" -H "User-Agent: kpt/0.34.0" 'https:// .gr7.us-west-2.eks.amazonaws.com/apis/apiextensions.k8s.io/v1beta1/customresourcedefinitions/servicemonitors.monitoring.coreos.com' I1002 13:43:49.430690 31187 round_trippers.go:423] curl -k -v -XPATCH -H "Content-Type: application/merge-patch+json" -H "Accept: application/json" -H "User-Agent: kpt/0.34.0" 'https:// .gr7.us-west-2.eks.amazonaws.com/apis/apiextensions.k8s.io/v1beta1/customresourcedefinitions/servicemonitors.monitoring.coreos.com?dryRun=All' I1002 13:43:49.544808 31187 round_trippers.go:423] curl -k -v -XGET -H "Accept: application/[email protected]+protobuf" -H "User-Agent: kpt/v0.0.0 (linux/amd64) kubernetes/$Format" 'https:// .gr7.us-west-2.eks.amazonaws.com/openapi/v2?timeout=32s' I1002 13:43:49.774542 31187 round_trippers.go:423] curl -k -v -XGET -H "Accept: application/json" -H "User-Agent: kpt/0.34.0" 'https:// .gr7.us-west-2.eks.amazonaws.com/apis/apiextensions.k8s.io/v1beta1/customresourcedefinitions/thanosrulers.monitoring.coreos.com' I1002 13:43:49.924356 31187 round_trippers.go:423] curl -k -v -XPATCH -H "Accept: application/json" -H "Content-Type: application/merge-patch+json" -H "User-Agent: kpt/0.34.0" 'https:// .gr7.us-west-2.eks.amazonaws.com/apis/apiextensions.k8s.io/v1beta1/customresourcedefinitions/thanosrulers.monitoring.coreos.com?dryRun=All' I1002 13:43:50.141174 31187 round_trippers.go:423] curl -k -v -XGET -H "Accept: application/[email protected]+protobuf" -H "User-Agent: kpt/v0.0.0 (linux/amd64) kubernetes/$Format" 'https:// .gr7.us-west-2.eks.amazonaws.com/openapi/v2?timeout=32s' I1002 13:43:50.450550 31187 round_trippers.go:423] curl -k -v -XGET -H "Accept: application/json" -H "User-Agent: kpt/0.34.0" 'https:// .gr7.us-west-2.eks.amazonaws.com/api/v1/namespaces/kube-system/serviceaccounts/metrics-server' I1002 13:43:50.523830 31187 round_trippers.go:423] curl -k -v -XGET -H "Accept: application/[email protected]+protobuf" -H "User-Agent: kpt/v0.0.0 (linux/amd64) kubernetes/$Format" 'https:// .gr7.us-west-2.eks.amazonaws.com/openapi/v2?timeout=32s' I1002 13:43:50.785004 31187 round_trippers.go:423] curl -k -v -XGET -H "Accept: application/json" -H "User-Agent: kpt/0.34.0" 'https:// .gr7.us-west-2.eks.amazonaws.com/api/v1/namespaces/kube-system/serviceaccounts/jaeger-agent' I1002 13:43:50.857716 31187 round_trippers.go:423] curl -k -v -XGET -H "Accept: application/[email protected]+protobuf" -H "User-Agent: kpt/v0.0.0 (linux/amd64) kubernetes/$Format" 'https:// .gr7.us-west-2.eks.amazonaws.com/openapi/v2?timeout=32s' I1002 13:43:51.255442 31187 round_trippers.go:423] curl -k -v -XGET -H "Accept: application/json" -H "User-Agent: kpt/0.34.0" 'https:// .gr7.us-west-2.eks.amazonaws.com/api/v1/namespaces/kube-system/serviceaccounts/jaeger-cassandra-schema' I1002 13:43:51.328856 31187 round_trippers.go:423] curl -k -v -XGET -H "Accept: application/[email protected]+protobuf" -H "User-Agent: kpt/v0.0.0 (linux/amd64) kubernetes/$Format" 'https:// .gr7.us-west-2.eks.amazonaws.com/openapi/v2?timeout=32s' I1002 13:43:51.581229 31187 round_trippers.go:423] curl -k -v -XGET -H "Accept: application/json" -H "User-Agent: kpt/0.34.0" 'https:// .gr7.us-west-2.eks.amazonaws.com/api/v1/namespaces/kube-system/serviceaccounts/jaeger-collector' I1002 13:43:51.656842 31187 round_trippers.go:423] curl -k -v -XGET -H "User-Agent: kpt/v0.0.0 (linux/amd64) kubernetes/$Format" -H "Accept: application/[email protected]+protobuf" 'https:// .gr7.us-west-2.eks.amazonaws.com/openapi/v2?timeout=32s' I1002 13:43:51.899810 31187 round_trippers.go:423] curl -k -v -XGET -H "Accept: application/json" -H "User-Agent: kpt/0.34.0" 'https:// .gr7.us-west-2.eks.amazonaws.com/api/v1/namespaces/kube-system/serviceaccounts/jaeger-query'

/area live

@seans3 seans3 self-assigned this Oct 2, 2020
@seans3 seans3 added area/live bug Something isn't working triaged Issue has been triaged by adding an `area/` label labels Oct 2, 2020
@seans3
Copy link
Contributor

seans3 commented Oct 2, 2020

@deedubs Just to be clear. Did you mention that you get these openapi requests even when using the --k8s-schema-path flags to use a local schema?

@deedubs
Copy link
Author

deedubs commented Oct 2, 2020

Sorry, yes, I forgot this is with --k8s-schema-path ./openapi.json fetched using kpt live fetch-k8s-schema > ./openapi.json

@mortent mortent added this to kpt Jan 21, 2023
@mortent mortent moved this to Backlog in kpt Jan 25, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/live bug Something isn't working triaged Issue has been triaged by adding an `area/` label
Projects
None yet
Development

No branches or pull requests

2 participants