<p>So I've been looking into simplifying some of our project solutions and by the look of it, google cloud functions has the potential to simplify some of our current structure. The main thing I'm curious about is if GCF is able to connect to internal nodes in a Kubernetes cluster hosted in google cloud?</p>

<p>I'm quite the rookie on this so any input is greatly appreciated.</p>

Coss
<p>Google Cloud has a beta (as of this writing) feature called <a href="https://cloud.google.com/vpc/docs/configure-serverless-vpc-access" rel="nofollow noreferrer">Serverless VPC Access</a> that allows you to connect your serverless features (Cloud Functions, App Engine Standard) to the VPC network where your GKE cluster is.  This would allow you to access private IPs of your VPC network from Cloud Functions.</p>

<p>You can <a href="https://cloud.google.com/functions/docs/connecting-vpc" rel="nofollow noreferrer">read the full setup instructions</a> but the basic steps are:</p>

<ul>
<li>Create a Serverless VPC Access Connector (under the "VPC Network -> Serverless VPC Access" menu in the console)</li>
<li>Grant the cloud function's service account any permissions it will need.  Specifically, it will at least need "Project > Viewer" and "Compute Engine > Compute Network User".</li>
<li>Configure the function to use the connector.  (In the console, this is done in the advanced settings's "VPC Connector" field).</li>
</ul>
