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
.
Add the Helm repository:
helm repo add frp https://frp-operator.aureum.cloud
Install the FRP Operator:
helm install my-frp-operator frp/frp-operator --version 1.0.0
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.
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
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
Get ExitServers:
kubectl get exitservers -A
Get Tunnels:
kubectl get tunnels -A