Kubernetes/File/Yaml/frps.yaml

29 lines
570 B
YAML
Raw Normal View History

2024-08-07 10:54:39 +00:00
apiVersion: apps/v1
kind: Deployment
metadata:
name: frps
namespace: vpn
labels:
app: frps
spec:
replicas: 1
selector:
matchLabels:
app: frps
template:
metadata:
labels:
app: frps
spec:
hostNetwork: true
containers:
- name: frpc
image: registry.cn-hangzhou.aliyuncs.com/offends/frp:frps
imagePullPolicy: Always
volumeMounts:
- name: frps-config
mountPath: /frp/frps.ini
volumes:
- name: frps-config
hostPath:
path: /opt/vpn/frps.ini