File tree Expand file tree Collapse file tree
client/internal/bootstrap Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -60,6 +60,12 @@ func getServiceClient(token string, cfg *Config) (akssecuretlsbootstrapv1.Secure
6060 retry .WithCodes (codes .Aborted , codes .Unavailable ),
6161 retry .WithMax (30 ),
6262 )),
63+ // forcefully disable usage of HTTP proxy, this is needed since on AKS nodes where the client
64+ // will be running, the no_proxy environment variable will only contain the FQDN of the apiserver
65+ // rather than its IP address. Without this dialer option, only having the FQDN within no_proxy isn't
66+ // enough to have the client bypass any proxies when communicating with the cluster's apiserver.
67+ // see: https://github.com/grpc/grpc-go/issues/3401 for more details.
68+ grpc .WithNoProxy (),
6369 )
6470 if err != nil {
6571 return nil , nil , fmt .Errorf ("failed to dial client connection with context: %w" , err )
You can’t perform that action at this time.
0 commit comments