mirror of
https://github.com/fatedier/frp.git
synced 2026-05-15 08:05:49 -06:00
[GH-ISSUE #3280] [Feature Request] tls supports write cert in the config file directly #2630
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#2630
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 @graydovee on GitHub (Jan 31, 2023).
Original GitHub issue: https://github.com/fatedier/frp/issues/3280
Describe the feature request
我在家搭了一个kubernets集群,所以没有公网ip。但想能公网访问我的服务,所以想基于frp开发一个ingress controller 。目前的原理是watch ingress资源,并通过frpc的web接口更新配置文件。
现在在支持tls的时候遇到了一个问题,kubernetes ingress的tls信息是以secrets的方式声明的,无法动态挂载文件到frpc容器中,所以希望证书能直接以base64编码的方式填写在frpc.ini中
Describe alternatives you've considered
No response
Affected area
@graydovee commented on GitHub (Jan 31, 2023):
我现在改了一版测下来基本可用,没问题的话我可以提个pr
@fatedier commented on GitHub (Jan 31, 2023):
https://kubernetes.io/docs/concepts/configuration/secret/#using-secrets-as-files-from-a-pod
@graydovee commented on GitHub (Jan 31, 2023):
@fatedier
我目前的想法是fpc作为daemonset,起固定数量作为集群出口, 但pod在创建之后无法新增secrets挂载,新申明的ingress除非frpc pod重建,否则无法在frpc上挂载新的secrets。
当然还有个方案是为每个ingress单独创建frpc的pod, 不但会浪费pod, 而且由于挂载不能跨namespace, 这么做的话会在用户的namespace起pod,这有时候会和用户namespace的node权限冲突。
我也想过加个sidercar用于同步secrets信息,但这总感觉太重了
想下来感觉还是frpc支持最简洁
@fatedier commented on GitHub (Feb 1, 2023):
通用的问题应该尽量在通用的层面解决,不倾向于定制化这样的内容。今天这个服务会遇到这个问题,那么以后其他服务也可能会遇到类似的问题。
@graydovee commented on GitHub (Feb 1, 2023):
的确,frp主要是用作内网穿透,强行用作网关还有很多问题的。我想办法在外面套层其他网关或者二开吧