From f2e8923285009ac9b793e7156ec6c130e6008aab Mon Sep 17 00:00:00 2001 From: Ultradesu Date: Mon, 6 Apr 2026 12:01:49 +0100 Subject: [PATCH] Added telemt --- k8s/apps/mtproxy/telemt-daemonset.yaml | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/k8s/apps/mtproxy/telemt-daemonset.yaml b/k8s/apps/mtproxy/telemt-daemonset.yaml index e0eb4c4..3b58e16 100644 --- a/k8s/apps/mtproxy/telemt-daemonset.yaml +++ b/k8s/apps/mtproxy/telemt-daemonset.yaml @@ -56,8 +56,8 @@ spec: exit 1 fi # Build dd-prefixed secret for TLS mode: dd + secret + hex(tls_domain) - DOMAIN_HEX=$(echo -n 'ya.ru' | xxd -p | tr -d '\n') - DD_SECRET="dd${SECRET}${DOMAIN_HEX}" + # "ya.ru" = 79612e7275 + DD_SECRET="dd${SECRET}79612e7275" LINK="tg://proxy?server=${SERVER}&port=${TELEMT_PORT}&secret=${DD_SECRET}" echo "Registering telemt: ${SERVER} -> ${LINK}" if kubectl get secret telemt-links -n "${NAMESPACE}" &>/dev/null; then @@ -90,6 +90,8 @@ spec: mountPath: /run/telemt/config.toml subPath: config.toml readOnly: true + - name: etcdir + mountPath: /etc/telemt securityContext: readOnlyRootFilesystem: true allowPrivilegeEscalation: false @@ -107,3 +109,7 @@ spec: emptyDir: medium: Memory sizeLimit: 1Mi + - name: etcdir + emptyDir: + medium: Memory + sizeLimit: 1Mi