twingate-connector

by Lemontech SA

Helm chartv0.1.0App latestVerified publisher

Twingate Connector helm chart

About this chart

Twingate Connector Helm Chart

Twingate is remote access for the modern world.

Introduction

This chart bootstraps a Twingate Connector deployment on a Kubernetes cluster using the Helm package manager.

Prerequisites

  • Kubernetes 1.12+
  • Helm 2.0+

Installing the Chart

To install the chart with the release name my-release:

$ helm repo add lemontech https://charts.lemontech.engineering/
$ helm upgrade --install my-release lemotnech/twingate-connector -n [namespace] \
    --set connector.network=[network] \
    --set connector.accessToken=[accessToken] \
    --set connector.refreshToken=[refreshToken]

These commands deploy Twingate on the Kubernetes cluster in the default configuration. The Parameters section lists the parameters that can be configured during installation.

Tip: List all releases using helm ls -n [namespace]

Using an Existing Secret for Access/Refresh Tokens

Rather than passing in connector.accessToken and connector.refreshToken, you may provide the name of an existing secret that contains those values via connector.existingSecret.

Example secret:

apiVersion: v1
kind: Secret
metadata:
  name: my-secret
type: Opaque
data:
  TWINGATE_ACCESS_TOKEN: "your access token base64 encoded"
  TWINGATE_REFRESH_TOKEN: "your refresh token base64 encoded"

Uninstalling the Chart

To uninstall/delete the my-release deployment:

$ helm del my-release -n [namespace]

The command removes all the Kubernetes components associated with the chart and deletes the release.

Parameters

The following table lists the configurable parameters of the Twingate chart and their default values.

ParameterDescriptionDefault
connector.networkThe Twingate network name, eg. acme (required)
connector.urlThe Twingate service domaintwingate.com
connector.accessTokenAccess Token (required unless connector.existingSecret is specified)
connector.refreshTokenRefresh Token (required unless connector.existingSecret is specified)
connector.existingSecretThe name of an existing secret to use for the access and refresh tokens
connector.logLevelLog Level - supported : [error, warning, info, debug]error
connector.logAnalyticsReal-time connection logs (see https://www.twingate.com/docs/connector-real-time-logs) - supported : [v1, v2]
connector.dnsServerCustom DNS server
image.registryTwingate image registrydocker.io
image.repositoryTwingate image nametwingate/connector
image.tagTwingate image taglatest
image.pullPolicyTwingate image pull policyAlways
image.pullSecretsSpecify docker-registry secret names as an array[] (does not add image pull secrets to deployed pods)
nameOverrideString to partially override twingate.fullname templatenil
fullnameOverrideString to fully override twingate.fullname templatenil
icmpSupport.enabledEnable the ICMP securityContext. See more in values filefalse
affinityMap of node/pod affinities{} (The value is evaluated as a template)
nodeSelectornode labels for pod assignment{} (The value is evaluated as a template)
tolerationsTolerations for pod assignment[] (The value is evaluated as a template)
resourcesResource requests and limits{} (The value is evaluated as a template)
additionalLabelsAdditional labels for the deployment{} (The value is evaluated as a template)
podAnnotationsMap of annotations to add to pods{}
podDnsPolicyOptional pod DNS policy
podDnsConfigOptional pod DNS configurations
envAdditional environment variables for the deployment{} (The value is evaluated as a template)
hostNetworkEnable/Disable host network for the podfalse (Disabled by default)

Deploy twingate-connector with OpenTenant

Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has twingate-connector on a Hetzner server. Change the host, add apps from the marketplace, then copy the generated files. Providers and prices are samples, and nothing here is sent anywhere.

  1. Pick a serverConnect Hetzner, OVHcloud or AWS. The builder starts on Hetzner, the cheapest sample rate.
  2. Place the charttwingate-connector is pinned at v0.1.0 in opentenant.yaml. Drag more apps from the marketplace onto a rack.
  3. ApplySave opentenant.yaml and main.tf from the console, then run the commands below.
# opentenant.yaml, main.tf and dns.tf come from the builder below
opentenant validate opentenant.yaml
terraform init && terraform apply