frpc-ingress

by SpringHack

Helm chartv0.4.1App 0.4.1

Frp client ingress define and opertator

About this chart

frpc-ingress

frp client crd for kubernetes

Usage

  • Server: setup frps on any server in anyway as your wish, eg:
[common]
bind_port = 7000
token = 12345678
  • Client(Kubernetes)

Install

helm repo add infinity-server https://infinity-server.github.io/dockerset
helm repo update
helm upgrade --install frpc-ingress infinity-server/frpc-ingress 

Deploy

# common config
---
apiVersion: crds.dosk.host/v1alpha1
kind: FRPCIngress
metadata:
  name: common
spec:
  kind: Config
  config:
    - server_port = 7000        # frps server port
    - server_addr = 1.1.1.1     # frps server address
    - token = 12345678          # some other configs you need
# rule example, a service is required
---
apiVersion: v1
kind: Service
metadata:
  name: demo-service
  labels:
    app: demo-service
spec:
  ports:
    - port: 53
      name: dns
      protocol: UDP
    - port: 8000
      name: http
      protocol: TCP
  selector:
    app: demo-service

---
apiVersion: crds.dosk.host/v1alpha1
kind: FRPCIngress
metadata:
  name: demo-service-dns-ingress
spec:
  kind: Rule
  service:
    name: demo-service
    port: 53
    protocol: UDP
    remotePort: 53

---
apiVersion: crds.dosk.host/v1alpha1
kind: FRPCIngress
metadata:
  name: demo-service-http-ingress
spec:
  kind: Rule
  service:
    name: demo-service
    port: 8000
    protocol: TCP
    remotePort: 8000
    # extraConfig:
    #   - foo = baz

Deploy frpc-ingress with OpenTenant

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