GoogleCloudPlatform / GoogleCloudPlatform/cloud-builders

[FR] Enforcedly use internal ip with gke-deploy

Open
#1,023 1 comment 0 reactions 0 assignees View on GitHub
enhancement help wanted
Dominant language
Go
Stars
1.5k
Forks
616
PR merge metrics
No merged PRs in 30d

Description

## 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**

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.