2026-02-11 12:12:39 +02:00
|
|
|
---
|
|
|
|
|
apiVersion: apps/v1
|
2026-02-11 17:26:30 +02:00
|
|
|
kind: DaemonSet
|
2026-02-11 12:12:39 +02:00
|
|
|
metadata:
|
|
|
|
|
name: mtproxy
|
|
|
|
|
labels:
|
|
|
|
|
app: mtproxy
|
|
|
|
|
spec:
|
|
|
|
|
selector:
|
|
|
|
|
matchLabels:
|
|
|
|
|
app: mtproxy
|
2026-02-11 17:26:30 +02:00
|
|
|
updateStrategy:
|
|
|
|
|
type: RollingUpdate
|
2026-02-11 12:12:39 +02:00
|
|
|
template:
|
|
|
|
|
metadata:
|
|
|
|
|
labels:
|
|
|
|
|
app: mtproxy
|
|
|
|
|
spec:
|
|
|
|
|
affinity:
|
|
|
|
|
nodeAffinity:
|
|
|
|
|
requiredDuringSchedulingIgnoredDuringExecution:
|
|
|
|
|
nodeSelectorTerms:
|
|
|
|
|
- matchExpressions:
|
2026-02-11 20:33:08 +02:00
|
|
|
- key: mtproxy
|
2026-02-11 12:12:39 +02:00
|
|
|
operator: Exists
|
2026-02-11 21:02:27 +02:00
|
|
|
hostNetwork: true
|
|
|
|
|
dnsPolicy: ClusterFirstWithHostNet
|
2026-02-11 12:12:39 +02:00
|
|
|
containers:
|
|
|
|
|
- name: mtproxy
|
2026-02-11 20:55:07 +02:00
|
|
|
image: ultradesu/mtproxy:v0.02
|
2026-02-11 12:12:39 +02:00
|
|
|
imagePullPolicy: Always
|
|
|
|
|
ports:
|
|
|
|
|
- name: proxy
|
2026-02-11 20:55:07 +02:00
|
|
|
containerPort: 30443
|
2026-02-11 12:12:39 +02:00
|
|
|
protocol: TCP
|
2026-02-11 21:08:37 +02:00
|
|
|
command:
|
|
|
|
|
- /bin/sh
|
|
|
|
|
- -c
|
|
|
|
|
- >-
|
|
|
|
|
mtproto-proxy
|
|
|
|
|
-u nobody
|
|
|
|
|
-p 8888
|
2026-02-11 21:22:13 +02:00
|
|
|
-H $(PORT)
|
2026-02-11 21:08:37 +02:00
|
|
|
-M 1
|
|
|
|
|
-S $(SECRET)
|
|
|
|
|
--aes-pwd /etc/mtproxy/proxy-secret
|
|
|
|
|
/etc/mtproxy/proxy-multi.conf
|
2026-02-11 12:12:39 +02:00
|
|
|
env:
|
|
|
|
|
- name: SECRET
|
2026-02-11 21:22:13 +02:00
|
|
|
valueFrom:
|
|
|
|
|
secretKeyRef:
|
|
|
|
|
name: tgproxy-secret
|
|
|
|
|
key: SECRET
|
|
|
|
|
- name: PORT
|
|
|
|
|
valueFrom:
|
|
|
|
|
secretKeyRef:
|
|
|
|
|
name: tgproxy-secret
|
|
|
|
|
key: PORT
|
2026-02-11 12:12:39 +02:00
|
|
|
volumeMounts:
|
|
|
|
|
- name: data
|
|
|
|
|
mountPath: /data
|
2026-02-11 20:59:00 +02:00
|
|
|
#resources:
|
|
|
|
|
# requests:
|
|
|
|
|
# memory: "128Mi"
|
|
|
|
|
# cpu: "100m"
|
|
|
|
|
# limits:
|
|
|
|
|
# memory: "256Mi"
|
|
|
|
|
# cpu: "500m"
|
2026-02-11 12:12:39 +02:00
|
|
|
volumes:
|
|
|
|
|
- name: data
|
2026-02-11 17:26:30 +02:00
|
|
|
emptyDir: {}
|