46 lines
1 KiB
YAML
46 lines
1 KiB
YAML
apiVersion: apps/v1
|
|
kind: Deployment
|
|
metadata:
|
|
name: frps
|
|
labels:
|
|
app.kubernetes.io/name: frps
|
|
spec:
|
|
replicas: 1
|
|
selector:
|
|
matchLabels:
|
|
app.kubernetes.io/name: frps
|
|
template:
|
|
metadata:
|
|
labels:
|
|
app.kubernetes.io/name: frps
|
|
spec:
|
|
serviceAccountName: default
|
|
containers:
|
|
- name: frps
|
|
image: ghcr.io/fatedier/frps:v0.56.0
|
|
imagePullPolicy: IfNotPresent
|
|
args:
|
|
- -c
|
|
- /etc/frps/frps.toml
|
|
envFrom:
|
|
- secretRef:
|
|
name: frps-env
|
|
ports:
|
|
- name: frps
|
|
containerPort: 7000
|
|
protocol: TCP
|
|
- name: webserver
|
|
containerPort: 7500
|
|
protocol: TCP
|
|
- name: http
|
|
containerPort: 8080
|
|
protocol: TCP
|
|
resources: {}
|
|
volumeMounts:
|
|
- name: config
|
|
mountPath: /etc/frps
|
|
volumes:
|
|
- name: config
|
|
configMap:
|
|
name: frps-config
|