I have created custom Google Cloud VPC, then I have created custom Private Network Access Subnet too under that VPC.
1) When I create GKE cluster with Private Subnet, still my Kubernetes nodes assigned with Public IP. Why it is so ? As per Google Document private instance should get Private IP.
2) If I create cluster in Private, can I connect my container application to Google SQL instance ?
3) Is any recommendation to launch GKE cluster should launched in Public Subnet only, not in Private Subnet ?
Thank you very much Tim, for your reply!!
So for now GKE cluster we have to launch in Public Subnet. Right?
Observation : We have launched GKE cluster in Private Subnet, but GKE Cluster is behaving same as if its launch in Public Subnet.
How did you create these private/public subnets? GKE should not allow
you to create a cluster in a Network that doesn't have a default route
to internet. Routes are per-Network, not per-SubNetwork.
On Tue, Jul 18, 2017 at 11:27 PM, nnile...@gmail.com
<cybage.a...@gmail.com> wrote:
> On Tuesday, July 18, 2017 at 8:52:47 PM UTC+5:30, Tim Hockin wrote:
>> GKE relies on public IPs to access the hosted master, for now.
>>
>> On Tue, Jul 18, 2017 at 1:46 AM, nnile...@gmail.com
>> <cybage.a...@gmail.com> wrote:
>> > I'm trying to launch Google Container Engine (GKE) in Private GCP network Subnet.
>> >
>> > I have created custom Google Cloud VPC, then I have created custom Private Network Access Subnet too under that VPC.
>> >
>> > 1) When I create GKE cluster with Private Subnet, still my Kubernetes nodes assigned with Public IP. Why it is so ? As per Google Document private instance should get Private IP.
>> >
>> > 2) If I create cluster in Private, can I connect my container application to Google SQL instance ?
>> >
>> > 3) Is any recommendation to launch GKE cluster should launched in Public Subnet only, not in Private Subnet ?
>> >
>> > --
>> > You received this message because you are subscribed to the Google Groups "Kubernetes user discussion and Q&A" group.
>> > To unsubscribe from this group and stop receiving emails from it, send an email to kubernetes-users+unsubscribe@googlegroups.com.
>> > To post to this group, send email to kubernetes-users@googlegroups.com.
>> > Visit this group at https://groups.google.com/group/kubernetes-users.
>> > For more options, visit https://groups.google.com/d/optout.
>
> Thank you very much Tim, for your reply!!
>
> So for now GKE cluster we have to launch in Public Subnet. Right?
>
> Observation : We have launched GKE cluster in Private Subnet, but GKE Cluster is behaving same as if its launch in Public Subnet.
>
> --
> You received this message because you are subscribed to the Google Groups "Kubernetes user discussion and Q&A" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to kubernetes-users+unsubscribe@googlegroups.com.
> To post to this group, send email to kubernetes-users@googlegroups.com.
> Visit this group at https://groups.google.com/group/kubernetes-users.
> For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to a topic in the Google Groups "Kubernetes user discussion and Q&A" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/kubernetes-users/YK0JNgTIHyI/unsubscribe.
To unsubscribe from this group and all its topics, send an email to kubernetes-users+unsubscribe@googlegroups.com.
To post to this group, send email to kubernetes-users@googlegroups.com.
I would like to give this thread a bump and love to know if there is any update.
It is not uncommon to allow access to a service by whitelisting the public ip. Each kubernetes node having its own public ip makes a mess. Right now, only solution seems to be running a NAT instance[1]. GCP doesn't provide NAT gateway as service either, so one would have to deal with scaling and high availability themselves.
[1] https://cloud.google.com/solutions/using-a-nat-gateway-with-kubernetes-engine
Hi,
GKE now supports private clusters :-)
https://cloudplatform.googleblog.com/2018/03/kubernetes-engine-private-clusters-now.html
Hope that helps!
Hey, this is great news. Thanks for update.
Hi,I am trying to use private cluster. I am able to create private cluster but kubectl commands are not working. I am seeing connection time out error as below -kubectl run nginx --image=nginx --replicas=2error: failed to discover supported resources: Get https://104.154.200.217/api: dial tcp 104.154.200.217:443: i/o timeout
Am I missing something. I am seeing this issue in my SDK as well as Cloud shell.Thanks