mirror of
https://github.com/fatedier/frp.git
synced 2026-05-15 08:05:49 -06:00
[GH-ISSUE #3444] Trying to setup nginx ingress with FRPS server and connect from FRPC client outside of k8s cluster #2759
Labels
No labels
In Progress
WIP
WaitingForInfo
bug
doc
duplicate
easy
enhancement
future
help wanted
invalid
lifecycle/stale
need-issue-template
need-usage-help
no plan
proposal
pull-request
question
todo
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: github-starred/frp#2759
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @Emon46 on GitHub (May 15, 2023).
Original GitHub issue: https://github.com/fatedier/frp/issues/3444
Bug Description
First of all thanks for building this cool tool!
I am trying to set up the FRPS server with the nginx ingress controller inside eks cluster.
I have deployed an ingress controller which created an NLB for me. and I can expose services in port 80 and 443.
Now I want to set up my FRPS server on top of it.
I have deployed the FRPS server and created a service and created an ingress for FRPS server port.
here is my ingress and service yaml
frpc Version
0.48.0
frps Version
0.48.0
System Architecture
linux/amd64
Configurations
frps.inifrpc.iniLogs
I didn't get any error message in frps server.
In client i can only see it's tried to login but failed.
client logs:
Is the configuration correct? If not is there any work around we can make it to support with nginx controller in EKS cluster
Steps to reproduce
...
Affected area
@fatedier commented on GitHub (May 16, 2023):
Ingress is only for the HTTP protocol. You should expose port 7000 as a TCP port.
@aleksandr-orca commented on GitHub (May 17, 2023):
@Emon46 by any chance did you resolve this issue?
@svyatoslavd-orca commented on GitHub (May 17, 2023):
Hi @fatedier. Thanks for your awesome work and efforts!
Could you please elaborate on 2 things:
@andrey-bondar commented on GitHub (May 18, 2023):
@Emon46 Hi! I use ktunnel for this purpose in K8S. Please take a look
@julianbalog commented on GitHub (May 22, 2023):
I got the
frpsworking behind the nginx ingress controller in Kubernetes. To @fatedier's point, I could only make it work by exposingfrpsas a TCP service endpoint. (See the related concept here.) Here are the relevant configuration stubs to set up anfrps/frpctunnel secured with mTLS (client certificate authentication) in Kubernetes.frps.ini:
Create the kube secret required to mount the certificates into the
frpspod. (You'll need to generate these certs first, following the procedure described here.)frps.yaml
Note the
ConfigMapconfiguration above. We need to add it to theingress-nginx-controller's--tcp-services-configmapargument.Add the
--tcp-services-configmapargument, as follows:frpc.ini
I hope this helps.
@github-actions[bot] commented on GitHub (Jun 22, 2023):
Issues go stale after 30d of inactivity. Stale issues rot after an additional 7d of inactivity and eventually close.
@fatedier commented on GitHub (Jun 28, 2023):
The next version will support websocket over TLS, which will help expose frps in the K8s cluster through TLS + HTTP routing rules.
I have tested it successfully in istio-gateway.
@ajavalekar commented on GitHub (Nov 23, 2023):
Hi @fatedier
Thanks for this great tool! As per your above comment where we can expose through http on using wss, can you provide what should be the frps and frpc configuration to use?
@ajavalekar commented on GitHub (Dec 4, 2023):
Hi @fatedier
Can you please help me with what configuration you used to expose frps in the K8s cluster through TLS + HTTP routing rules? I need to open ssh channels to multiple servers on demand behind an ingress controller and want to do it over http routing instead of tcp. Please can you help on this?