├── README.md ├── Dockerfile └── LICENSE /README.md: -------------------------------------------------------------------------------- 1 | # frps-kubesail 2 | 3 | https://kubesail.com/template/bclswl0827/frps/ 4 | 5 | 在模板最后按照格式追加需要开放的端口。 6 | 7 | Deployments 页面,应用 Frps 的 Network 选项卡中,80 端口(用于网站)类型选择 HTTPS,7000 端口类型选择 TCP,除此之外的端口一律选择 TCP 类型。 8 | 9 | 然后在本地用 Frpc 与 Kubesail 分配的 7000 端口对应的 NAT 地址连接。 10 | 11 | 因为自用,故没有设置连接用的密码(Token)。 12 | -------------------------------------------------------------------------------- /Dockerfile: -------------------------------------------------------------------------------- 1 | FROM alpine:3.5 2 | RUN apk add --no-cache --virtual .build-deps curl ca-certificates \ 3 | && curl -L -o /frp.tar.gz --insecure https://github.com/fatedier/frp/releases/download/v0.31.2/frp_0.31.2_linux_amd64.tar.gz \ 4 | && tar -zxvf /frp.tar.gz frp_0.31.2_linux_amd64/frps \ 5 | && mv frp_0.31.2_linux_amd64/frps /usr/bin/frps \ 6 | && chmod +x /usr/bin/frps \ 7 | && rm -rf /frp* frp* 8 | CMD ["/usr/bin/frps", "--vhost_http_port=80"] 9 | EXPOSE 80 7000 10 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | MIT License 2 | 3 | Copyright (c) 2020 Yuki Kikuchi 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. 22 | --------------------------------------------------------------------------------