frp-operator

command module
v0.2.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 20, 2022 License: MIT Imports: 11 Imported by: 0

README

frp-operator

Expose your service in Kubernetes to the Internet with open source FRP!

made with Go Github main branch build GitHub issues GitHub pull requests

Document

  1. RFC: Fast Reverse Proxy Operator

Installing

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

helm repo add zufardhiyaulhaq https://charts.zufardhiyaulhaq.com/
helm install my-release zufardhiyaulhaq/frp-operator --values values.yaml

Prerequisite

To expose your private Kubernetes service into public network. You need public machine running FRP Server that act as a proxy. Currently the operator doesn't have capability to spine a new machine on cloud providers, but this can be setup in a minute.

  1. Create machine on cloud provider
  2. Download frps [binary[(https://github.com/fatedier/frp)
  3. Create server configuration
vi frps.ini

[common]
bind_address = 0.0.0.0
bind_port = 7000
token = yourtoken
  1. Run FRP server
frps -c ./frps.ini

Usage

  1. Apply some example
kubectl apply -f examples/deployment/
kubectl apply -f examples/client/
  1. Check frpc object
kubectl get client
NAME        AGE
client-01   17m

kubectl get upstream
NAME    AGE
nginx   17m
  1. access the URL
http://178.128.100.87:8080/

Values

Key Type Default Description
operator.image string "zufardhiyaulhaq/frp-operator"
operator.replica int 1
operator.tag string "v0.2.0"
resources.limits.cpu string "200m"
resources.limits.memory string "100Mi"
resources.requests.cpu string "100m"
resources.requests.memory string "20Mi"

see example files here

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
api
v1alpha1
Package v1alpha1 contains API Schema definitions for the frp v1alpha1 API group +kubebuilder:object:generate=true +groupName=frp.zufardhiyaulhaq.com
Package v1alpha1 contains API Schema definitions for the frp v1alpha1 API group +kubebuilder:object:generate=true +groupName=frp.zufardhiyaulhaq.com
pkg

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL