How to Deploy a Connector on GCP | Twingate

How to Deploy a Connector on GCP

Overview

There are several options available for deploying Connectors on Google Cloud Platform depending on your particular environment and needs.

Check your subnet configuration

The subnet you deploy a Connector in requires outbound Internet access, both to download the Connector container image and to connect to Twingate. Check our Best Practices for Connectors guide for more information.

Cloud NAT port allocation

If your Connector VM uses Cloud NAT for outbound internet access and shares the NAT gateway with other services such as analytics or batch workloads that make high volumes of parallel outbound connections, review the min_ports_per_vm setting on your NAT gateway. GCP’s default is tuned for large fleets and may be insufficient in smaller deployments. See Tune NAT configuration in the GCP docs for details.

Peer-to-peer connections help you to provide a better experience for your users and to stay within the Fair Use Policy for bandwidth consumption. Learn how to support peer-to-peer connections.

Compute Engine Deployment

If you are deploying a custom virtual machine, you can follow the general Linux Connector deployment instructions for full details.

In summary:

Please see our Connector Best Practices overview for general recommendations as well as hardware recommendations for Google Cloud.

Automated Compute Engine Deployment

We offer an automated method of deploying a Compute Engine instance with the Connector pre-installed. Use the steps below to create and configure a Compute Engine instance.

Google Kubernetes Engine (GKE) Deployment

Connectors can also be deployed on a GKE cluster using the official Twingate Helm chart. If you intend use Twingate for K8s, you may also want to look at our Kubernetes Best Practices Guide.

Infrastructure as Code Deployment

Deployment automation is available using Terraform, Pulumi, or the Twingate API.

Access and refresh tokens, which are required for Connector deployment, are specific to an individual Connector and cannot be shared between multiple Connectors.

Updating the Connector

Connectors running on GCP run as a systemd service. Updates can be done manually by using the Linux package manager, or automatically by setting up a scheduled task to check for updates. We recommend staggering updates across multiple Connectors to avoid downtime. For more details check our Systemd Connector Update Guide.

Last updated 5 months ago.