Closed yanqianglu closed 2 months ago
Hi @yanqianglu - if your cluster does not have an IP address or connector, then it's not accessible from the Internet, therefore GitHub Actions runners would not be able to connect to it. You need to use a Connect Gateway.
Hi @yanqianglu - if your cluster does not have an IP address or connector, then it's not accessible from the Internet, therefore GitHub Actions runners would not be able to connect to it. You need to use a Connect Gateway.
Hi, my cluster is not managed by fleet and it's not a GKE enterprise version neither so probably can't use Connect Gateway. Is there any other way to connect to a private cluster?
Another question related to that, according to https://github.com/google-github-actions/get-gke-credentials/blob/77f2de852b126198c28497b5ce36f09cab2a4816/src/main.ts#L52, it seems like the use_internal_ip and connect gateway are exclusive to each other, so I'm wondering what's the correct setup to use use_internal_ip?
Correct, they are mutually exclusive. Either:
Private GKE clusters are not exposed to the Internet, so you need to establish a presence on the VPC network in order to connect.
TL;DR
I've set use_internal_ip for my private GKE cluster but keep getting timeout when executing kubectl command.
Expected behavior
Should see nodes being listed out
Observed behavior
After disable authorized networks and removed use_internal_ip, it works.
Action YAML
Log output
No response
Additional information
No response