frp-operator

by Aureum Cloud

Helm chartv1.0.4App v1.0.1Verified publisher

Helm chart for frp Operator

About this chart

frp Operator Helm Chart

The frp Kubernetes Operator automates the deployment of FRP clients (connected to exit servers) and tunnels within your Kubernetes cluster. It watches two custom resources: ExitServer and Tunnel.

Installation

  1. Add the Helm repository:

    helm repo add frp https://frp-operator.aureum.cloud
    helm repo update
    
  2. Install the FRP Operator:

    helm install my-frp-operator frp/frp-operator
    

frp Overview

frp is an open-source reverse proxy that allows you to expose local servers to the internet securely. It supports TCP, UDP, HTTP, and HTTPS.

Configuration Parameters

ParameterDescriptionDefault
replicaCountNumber of replicas to deploy.1
image.repositoryContainer image repository.ghcr.io/aureum-cloud/frp-operator
image.pullPolicyImage pull policy.Always
image.tagContainer image tag."" (default tag)
imagePullSecretsList of image pull secrets.[]
nameOverrideOverride the chart name.""
fullnameOverrideOverride the full chart name.""
serviceAccount.createWhether to create a service account.true
serviceAccount.nameName of the service account.controller-manager
podAnnotationsAnnotations for pods.{}
podLabelsLabels for pods.{}
podSecurityContext.runAsNonRootRun pods as non-root user.true
securityContext.allowPrivilegeEscalationPrevent privilege escalation.false
securityContext.capabilities.dropCapabilities to drop.["ALL"]
service.typeService type.ClusterIP
service.portService port.8443
resources.limits.cpuCPU limit.500m
resources.limits.memoryMemory limit.128Mi
resources.requests.cpuCPU request.10m
resources.requests.memoryMemory request.64Mi
nodeSelectorNode selector for pods.{}
tolerationsTolerations for pod scheduling.[]
affinityAffinity rules for pod scheduling.{}

Resources

ExitServer

Defines a FRP exit server configuration.

Example manifest:

apiVersion: frp.aureum.cloud/v1
kind: ExitServer
metadata:
  name: exit-server
spec:
  host: 12.345.67.89
  port: 7000
  authentication:
    token:
      secretKeyRef:
        name: exit-server-auth
        key: token

Tunnel

Defines a FRP tunnel to expose a service inside your cluster.

Example manifest:

apiVersion: frp.aureum.cloud/v1
kind: Tunnel
metadata:
  name: tunnel
spec:
  exitServer: exit-server
  tcp:
    localPort: 1234
    remotePort: 1234
    serviceRef:
      name: my-service
      namespace: default

Commands

  • Get ExitServers:

    kubectl get exitservers -A
    
  • Get Tunnels:

    kubectl get tunnels -A
    

Deploy frp-operator with OpenTenant

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