Added telemt
All checks were successful
Update Kubernetes Services Wiki / Generate and Update K8s Wiki (push) Successful in 12s
Check with kubeconform / lint (push) Successful in 13s
Auto-update README / Generate README and Create MR (push) Successful in 8s

This commit is contained in:
Ultradesu
2026-04-06 12:01:49 +01:00
parent b89b5cc6a9
commit f2e8923285

View File

@@ -56,8 +56,8 @@ spec:
exit 1 exit 1
fi fi
# Build dd-prefixed secret for TLS mode: dd + secret + hex(tls_domain) # Build dd-prefixed secret for TLS mode: dd + secret + hex(tls_domain)
DOMAIN_HEX=$(echo -n 'ya.ru' | xxd -p | tr -d '\n') # "ya.ru" = 79612e7275
DD_SECRET="dd${SECRET}${DOMAIN_HEX}" DD_SECRET="dd${SECRET}79612e7275"
LINK="tg://proxy?server=${SERVER}&port=${TELEMT_PORT}&secret=${DD_SECRET}" LINK="tg://proxy?server=${SERVER}&port=${TELEMT_PORT}&secret=${DD_SECRET}"
echo "Registering telemt: ${SERVER} -> ${LINK}" echo "Registering telemt: ${SERVER} -> ${LINK}"
if kubectl get secret telemt-links -n "${NAMESPACE}" &>/dev/null; then if kubectl get secret telemt-links -n "${NAMESPACE}" &>/dev/null; then
@@ -90,6 +90,8 @@ spec:
mountPath: /run/telemt/config.toml mountPath: /run/telemt/config.toml
subPath: config.toml subPath: config.toml
readOnly: true readOnly: true
- name: etcdir
mountPath: /etc/telemt
securityContext: securityContext:
readOnlyRootFilesystem: true readOnlyRootFilesystem: true
allowPrivilegeEscalation: false allowPrivilegeEscalation: false
@@ -107,3 +109,7 @@ spec:
emptyDir: emptyDir:
medium: Memory medium: Memory
sizeLimit: 1Mi sizeLimit: 1Mi
- name: etcdir
emptyDir:
medium: Memory
sizeLimit: 1Mi