Skip to content

[FR] Enforcedly use internal ip with gke-deploy #1023

@ridhoadya

Description

@ridhoadya

Detailed Feature Information

Which builder is relevant to this request?
gke-deploy

Is your feature request related to a problem? Please describe.
I have a gke cluster with external and internal endpoint enabled, i want gke-deploy enforcedly to use internal ip, i can do it easily in gcr.io/cloud-builders/kubectl by using CLOUDSDK_GET_CREDENTIALS_OPTS=--internal-ip, when i checked the code there is no option for that or might be i miss and the config exist?

Describe the solution you'd like
Add capability to have something like this:

steps:
  - name: "gcr.io/cloud-builders/gke-deploy"
     args:
       - "apply"
       - "--filename=..."
       - "--cluster=..."
       - "--location=..."
     env:
       - "CLOUDSDK_GET_CREDENTIALS_OPTS=--internal-ip"

Describe alternatives you've considered

Additional context

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions