Closed ziyanjiang98 closed 3 months ago
you probably want to set config.Proxy = http.ProxyURL(parsedURL)
instead of constructing your own transport instance
Hi @liggitt , thanks for responding!
I do find the Proxy
field in the latest package, but unfortunately there is no such field in k8s.io/client-go v0.15.11. Wondering if there is a workaround for the old version? Or if the proxy setting is only available for the latest version.
it was added in v0.19.x
Sounds good! Will try to upgrade the package version in our repo. Thanks for the help!
The Kubernetes project currently lacks enough contributors to adequately respond to all issues.
This bot triages un-triaged issues according to the following rules:
lifecycle/stale
is appliedlifecycle/stale
was applied, lifecycle/rotten
is appliedlifecycle/rotten
was applied, the issue is closedYou can:
/remove-lifecycle stale
/close
Please send feedback to sig-contributor-experience at kubernetes/community.
/lifecycle stale
The Kubernetes project currently lacks enough active contributors to adequately respond to all issues.
This bot triages un-triaged issues according to the following rules:
lifecycle/stale
is appliedlifecycle/stale
was applied, lifecycle/rotten
is appliedlifecycle/rotten
was applied, the issue is closedYou can:
/remove-lifecycle rotten
/close
Please send feedback to sig-contributor-experience at kubernetes/community.
/lifecycle rotten
The Kubernetes project currently lacks enough active contributors to adequately respond to all issues and PRs.
This bot triages issues according to the following rules:
lifecycle/stale
is appliedlifecycle/stale
was applied, lifecycle/rotten
is appliedlifecycle/rotten
was applied, the issue is closedYou can:
/reopen
/remove-lifecycle rotten
Please send feedback to sig-contributor-experience at kubernetes/community.
/close not-planned
@k8s-triage-robot: Closing this issue, marking it as "Not Planned".
Package name: k8s.io/client-go v0.15.11
Issue: Due to the network structure, I need to add a proxy-url so that the HTTP requests from the client-go can be sent out to my clusters's IP address.
However, I met errors when using the following code
Then I got the following error:
Create kube client fails: using a custom transport with TLS certificate options or the insecure flag is not allowed
Wondering if there is a way that I can fix it?