加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
k8s_deploy.yaml 1.91 KB
一键复制 编辑 原始数据 按行查看 历史
okkpp 提交于 2021-03-22 14:44 . upload
apiVersion: v1
kind: ConfigMap
metadata:
name: frp-config
namespace: default
data:
frps.ini: |
[common]
bind_port = 7000
vhost_http_port = 8080
frpc.ini: |
[common]
server_addr = okkpp.io
server_port = 30001
[web]
type = http
local_ip = 10.20.14.26
local_port = 8080
custom_domains = okkpp.io
[http_proxy]
type = tcp
remote_port = 6000
plugin = http_proxy
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: frp-server
namespace: default
spec:
replicas: 1
selector:
matchLabels:
app: frp-server
template:
metadata:
name: frp-server
labels:
app: frp-server
spec:
containers:
- name: frp-server
image: frp:0.36.1
command: ['frps', '-c', 'frps.ini']
imagePullPolicy: IfNotPresent
volumeMounts:
- name: frp-config
mountPath: /frp/frps.ini
subPath: frps.ini
volumes:
- name: frp-config
configMap:
name: frp-config
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: frp-client
namespace: default
spec:
replicas: 1
selector:
matchLabels:
app: frp-client
template:
metadata:
name: frp-client
labels:
app: frp-client
spec:
containers:
- name: frp-client
image: frp:0.36.1
command: ['frpc', '-c', 'frpc.ini']
imagePullPolicy: IfNotPresent
volumeMounts:
- name: frp-config
mountPath: /frp/frpc.ini
subPath: frpc.ini
volumes:
- name: frp-config
configMap:
name: frp-config
---
apiVersion: v1
kind: Service
metadata:
name: frp-server
namespace: default
spec:
type: NodePort
ports:
- name: frp-server
port: 7000
nodePort: 30001
- name: frp-vhost
port: 8080
nodePort: 30002
- name: frp-http-proxy
port: 6000
nodePort: 30003
selector:
app: frp-server
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化