cloud-builders icon indicating copy to clipboard operation
cloud-builders copied to clipboard

Support for private clusters in kubectl builder [FR]

Open lopezvit opened this issue 3 years ago • 1 comments

Detailed Feature Information

Which builder is relevant to this request? kubectl

Is your feature request related to a problem? Please describe. After creating a private cluster, you can only go down the route of using private pools to connect to the cluster, but since the option --internal-ip is not available (via environment variables for example) when calling to gcloud container clusters get-credentials, it is impossible to communicate with it.

Describe the solution you'd like Add a new environment variable CLOUDSDK_USE_INTERNAL_IP that, when present and equals to true makes calling to gcloud container clusters get-credentials use the flag --internal-ip

Describe alternatives you've considered Use 2 steps instead, with different images (gcloud container/kubectl run)

lopezvit avatar Oct 27 '21 19:10 lopezvit

I need this, when will this be merged ?

caiocdcs avatar Apr 19 '22 15:04 caiocdcs