Files
homelab/k8s/apps/mtproxy/deployment.yaml
AB 0498d09aa4
All checks were successful
Update Kubernetes Services Wiki / Generate and Update K8s Wiki (push) Successful in 8s
Check with kubeconform / lint (push) Successful in 6s
Auto-update README / Generate README and Create MR (push) Successful in 6s
Added hostNetwork mtproxy
2026-02-11 21:08:37 +02:00

64 lines
1.5 KiB
YAML

---
apiVersion: apps/v1
kind: DaemonSet
metadata:
name: mtproxy
labels:
app: mtproxy
spec:
selector:
matchLabels:
app: mtproxy
updateStrategy:
type: RollingUpdate
template:
metadata:
labels:
app: mtproxy
spec:
affinity:
nodeAffinity:
requiredDuringSchedulingIgnoredDuringExecution:
nodeSelectorTerms:
- matchExpressions:
- key: mtproxy
operator: Exists
hostNetwork: true
dnsPolicy: ClusterFirstWithHostNet
containers:
- name: mtproxy
image: ultradesu/mtproxy:v0.02
imagePullPolicy: Always
ports:
- name: proxy
containerPort: 30443
protocol: TCP
command:
- /bin/sh
- -c
- >-
mtproto-proxy
-u nobody
-p 8888
-H 30443
-M 1
-S $(SECRET)
--aes-pwd /etc/mtproxy/proxy-secret
/etc/mtproxy/proxy-multi.conf
env:
- name: SECRET
value: "4ef8819478eb9c8928ab741300235a8e"
volumeMounts:
- name: data
mountPath: /data
#resources:
# requests:
# memory: "128Mi"
# cpu: "100m"
# limits:
# memory: "256Mi"
# cpu: "500m"
volumes:
- name: data
emptyDir: {}