frpc ingress implementation for k8s

Original link: https://www.dosk.win/2022/08/29/shi-yong-yu-k8s-de-frpc-ingress-shi-xian/

Usage

  • I built a helm repo for quick deployment, the steps are as follows
 helm repo add infinity-server https://infinity-server.github.io/dockerset helm repo update helm upgrade --install frpc-ingress infinity-server/frpc-ingress
  • Now just wait for everything to run, you need to configure two crd :
  1. For remote server information, there can only be one Config configuration, and other information can be supplemented as appropriate.
 apiVersion : crds.dosk.host/v1alpha1 kind : FRPCIngress metadata : name : common spec : kind : Config config : - server_port = 7000 # frps 服务器端口- server_addr = 1.1.1.1 # frps 服务器地址# - foo = baz
  1. Rule configuration needs to be used with Service . If you have other information, you can supplement extraConfig field:
 --- 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

This article is reprinted from: https://www.dosk.win/2022/08/29/shi-yong-yu-k8s-de-frpc-ingress-shi-xian/
This site is for inclusion only, and the copyright belongs to the original author.

Leave a Comment