inlets-operator

by Helm

Helm chartv0.17.20App 1.0

inlets-operator for Kubernetes

About this chart

inlets-operator chart

The easiest way to install the inlets-operator is with arkade, an open-source Kubernetes marketplace, however if you'd like to use Helm, read on for examples you can adapt.

See inlets-operator reference documentation

Pre-reqs

A Kubernetes cluster deployed with x86_64 or arm64 hosts, or a mixture of both.

  • Download Helm, i.e. arkade get helm or brew install helm

  • Add the chart repo

    helm repo add inlets https://inlets.github.io/inlets-operator/
    
  • Create a namespace for the inlets-operator

    kubectl create namespace inlets
    
  • Create a secret for the inlets license key:

    kubectl create secret generic -n inlets \
      inlets-license --from-file license=$HOME/.inlets/LICENSE
    
  • Create your access key secret, then apply one of the following configurations.

  • Create a secret with an API key generated by DigitalOcean

    kubectl create secret generic -n inlets \
    inlets-access-key \
    --from-file inlets-access-key=$HOME/Downloads/do-access-token
    

Deploy an example configuration

Examples for each cloud are found in the reference documentation

Deploy with DigitalOcean in London

helm repo update && \
  helm upgrade inlets-operator --install inlets/inlets-operator \
  --namespace inlets \
  --set region=lon1

Install a local version of the chart for development

Create a custom values.yaml file with a custom image etc values-ae.yaml

pullPolicy: Always
image: ttl.sh/openfaas/inlets-operator:0.16.3-13-g9ff7184

Then run:

helm repo update && \
  helm upgrade inlets-operator --install ./chart/inlets-operator \
  --namespace inlets \
  --set region=lon1 \
  -f ./chart/inlets-operator/values-ae.yaml

Chart parameters

The following table lists the configurable parameters of the inlets-operator chart and their default values, and can be overwritten via the helm --set flag.

ParameterDescriptionDefault value
annotatedOnlyOnly create tunnels for LoadBalancer with a operator.inlets.dev/manage=1 annotationfalse
inletsclient.ImageContainer image for the inlets client when deployed inside K8sSee values.yaml
imageContainer image for the inlets-operatorSee values.yaml
inletsReleaseRelease version of inlets for tunnel server VMs run via systemdSee values.yaml
secretKeyFileIf we are using a provider that requires a secret key as well as an access key, set to /var/secrets/inlets/secret/inlets-secret-key""
affinityNode affinity policy{}
nodeSelectorNode labels for data pod assignment{}
tolerationsNode tolerations[]
resourcesOperator resources requests & limits{"requests":{"cpu": "100m", "memory": "128Mi"}}
accessKeyFileRead the access key for your infrastructure provider from a file (recommended)/var/secrets/inlets/inlets-access-key
subnetIdThe Subnet ID where the exit-server should be placed (EC2)""
vpcIdThe VPC ID to create the exit-server in (EC2)""
planThe plan or size for your cloud instancedifferent defaults, depending of the infrastructure provider
projectIDThe project ID if using gce or equinix-metal as the provider""
regionThe region to provision hosts into""
zoneThe zone where the exit node is to be provisioned (Used when Google Compute Engine is used as provider)us-central1-a
providerYour infrastructure provider - 'digitalocean', 'ec2', 'scaleway', 'equinix-metal', or 'gce'""

Deploy inlets-operator with OpenTenant

Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has inlets-operator 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 chartinlets-operator is pinned at v0.17.20 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