Compare commits

..

8 Commits

Author SHA1 Message Date
Gitea Actions Bot
2a688206a3 Auto-update README with current k8s applications
All checks were successful
Terraform / Terraform (pull_request) Successful in 20s
Generated by CI/CD workflow on 2026-02-11 23:01:30

This PR updates the README.md file with the current list of applications found in the k8s/ directory structure.
2026-02-11 23:01:30 +00:00
AB
f9dd26ce2c Added RBAC mtproxy
All checks were successful
Update Kubernetes Services Wiki / Generate and Update K8s Wiki (push) Successful in 8s
Check with kubeconform / lint (push) Successful in 7s
Auto-update README / Generate README and Create MR (push) Successful in 12s
2026-02-12 01:01:01 +02:00
AB
5fd202a796 Added RBAC mtproxy
All checks were successful
Update Kubernetes Services Wiki / Generate and Update K8s Wiki (push) Successful in 9s
Check with kubeconform / lint (push) Successful in 6s
Auto-update README / Generate README and Create MR (push) Successful in 13s
2026-02-12 00:51:21 +02:00
AB
95630f19b0 Merge branch 'main' of ssh://gt.hexor.cy:30022/ab/homelab
All checks were successful
Update Kubernetes Services Wiki / Generate and Update K8s Wiki (push) Successful in 7s
Check with kubeconform / lint (push) Successful in 6s
Auto-update README / Generate README and Create MR (push) Successful in 7s
2026-02-12 00:43:24 +02:00
AB
eecc469ad9 Added RBAC mtproxy 2026-02-12 00:43:12 +02:00
ab
aaff1061cf Update terraform/authentik/proxy-apps.tfvars
All checks were successful
Terraform / Terraform (push) Successful in 21s
Update Kubernetes Services Wiki / Generate and Update K8s Wiki (push) Successful in 6s
2026-02-11 19:51:07 +00:00
AB from home.homenet
057c301eba Added secrets
All checks were successful
Update Kubernetes Services Wiki / Generate and Update K8s Wiki (push) Successful in 7s
Check with kubeconform / lint (push) Successful in 7s
Auto-update README / Generate README and Create MR (push) Successful in 6s
2026-02-11 21:49:12 +02:00
AB
ba6180a83d Added RBAC mtproxy
All checks were successful
Update Kubernetes Services Wiki / Generate and Update K8s Wiki (push) Successful in 7s
Check with kubeconform / lint (push) Successful in 4s
Auto-update README / Generate README and Create MR (push) Successful in 7s
2026-02-11 21:38:38 +02:00
7 changed files with 121 additions and 18 deletions

View File

@@ -1,12 +1,32 @@
FROM debian:bookworm-slim AS builder FROM --platform=$BUILDPLATFORM debian:bookworm-slim AS builder
ARG TARGETARCH
RUN apt-get update && apt-get install -y \ RUN apt-get update && apt-get install -y \
git curl build-essential libssl-dev zlib1g-dev \ git curl make gcc libssl-dev zlib1g-dev \
&& rm -rf /var/lib/apt/lists/* && rm -rf /var/lib/apt/lists/*
RUN if [ "$(dpkg --print-architecture)" != "$TARGETARCH" ]; then \
dpkg --add-architecture $TARGETARCH && \
apt-get update && \
case "$TARGETARCH" in \
arm64) apt-get install -y gcc-aarch64-linux-gnu libssl-dev:arm64 zlib1g-dev:arm64 ;; \
amd64) apt-get install -y gcc-x86-64-linux-gnu libssl-dev:amd64 zlib1g-dev:amd64 ;; \
esac && \
rm -rf /var/lib/apt/lists/*; \
fi
RUN git clone https://github.com/TelegramMessenger/MTProxy.git /src RUN git clone https://github.com/TelegramMessenger/MTProxy.git /src
WORKDIR /src WORKDIR /src
RUN make -j$(nproc)
RUN NATIVE=$(dpkg --print-architecture) && \
if [ "$NATIVE" != "$TARGETARCH" ]; then \
case "$TARGETARCH" in \
arm64) export CC=aarch64-linux-gnu-gcc ;; \
amd64) export CC=x86_64-linux-gnu-gcc ;; \
esac; \
fi && \
make -j$(nproc)
FROM debian:bookworm-slim FROM debian:bookworm-slim

View File

@@ -67,7 +67,8 @@ spec:
echo "Done" echo "Done"
containers: containers:
- name: mtproxy - name: mtproxy
image: ultradesu/mtproxy:v0.02 image: telegrammessenger/proxy:latest
# image: ultradesu/mtproxy:v0.02
imagePullPolicy: Always imagePullPolicy: Always
ports: ports:
- name: proxy - name: proxy
@@ -77,14 +78,16 @@ spec:
- /bin/sh - /bin/sh
- -c - -c
- >- - >-
curl -s https://core.telegram.org/getProxySecret -o proxy-secret && \
curl -s https://core.telegram.org/getProxyConfig -o proxy-multi.conf && \
mtproto-proxy mtproto-proxy
-u nobody -u nobody
-p 8888 -p 8888
-H $(PORT) -H $(PORT)
-M 1 -M 1
-S $(SECRET) -S $(SECRET)
--aes-pwd /etc/mtproxy/proxy-secret --aes-pwd proxy-secret
/etc/mtproxy/proxy-multi.conf proxy-multi.conf
env: env:
- name: SECRET - name: SECRET
valueFrom: valueFrom:

View File

@@ -12,7 +12,7 @@ spec:
data: data:
SECRET: |- SECRET: |-
{{ .secret }} {{ .secret }}
PORT: 30443 PORT: "30443"
data: data:
- secretKey: secret - secretKey: secret
sourceRef: sourceRef:

View File

@@ -6,5 +6,6 @@ resources:
- ./rbac.yaml - ./rbac.yaml
- ./daemonset.yaml - ./daemonset.yaml
- ./external-secrets.yaml - ./external-secrets.yaml
- ./service.yaml
- ./secret-reader.yaml
# - ./storage.yaml # - ./storage.yaml
# - ./service.yaml

View File

@@ -0,0 +1,63 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: secret-reader
labels:
app: secret-reader
spec:
replicas: 1
selector:
matchLabels:
app: secret-reader
template:
metadata:
labels:
app: secret-reader
spec:
serviceAccountName: mtproxy
nodeSelector:
kubernetes.io/os: linux
containers:
- name: secret-reader
image: ultradesu/k8s-secrets:0.2.1
imagePullPolicy: Always
args:
- "--secrets"
- "mtproxy-links"
- "--namespace"
- "mtproxy"
- "--port"
- "3000"
ports:
- containerPort: 3000
name: http
env:
- name: RUST_LOG
value: "info"
resources:
requests:
memory: "64Mi"
cpu: "50m"
limits:
memory: "128Mi"
cpu: "150m"
livenessProbe:
httpGet:
path: /health
port: http
initialDelaySeconds: 10
periodSeconds: 10
readinessProbe:
httpGet:
path: /health
port: http
initialDelaySeconds: 5
periodSeconds: 5
securityContext:
runAsNonRoot: true
runAsUser: 1000
allowPrivilegeEscalation: false
readOnlyRootFilesystem: true
capabilities:
drop:
- ALL

View File

@@ -2,15 +2,15 @@
apiVersion: v1 apiVersion: v1
kind: Service kind: Service
metadata: metadata:
name: mtproxy name: secret-reader
labels:
app: secret-reader
spec: spec:
type: LoadBalancer type: ClusterIP
selector: selector:
app: mtproxy app: secret-reader
ports: ports:
- name: proxy - port: 80
port: 30443 targetPort: 3000
targetPort: 30443 protocol: TCP
protocol: TCP name: http
nodePort: 30443

View File

@@ -60,7 +60,23 @@ EOT
create_group = true create_group = true
access_groups = ["admins"] access_groups = ["admins"]
} }
"mtproxy-links" = {
name = "mtproxy-links"
slug = "mtproxy-links"
group = "Core"
external_host = "https://proxy.hexor.cy"
internal_host = "http://secret-reader.mtproxy.svc:80"
internal_host_ssl_validation = false
meta_description = ""
skip_path_regex = <<-EOT
/webhook
EOT
meta_icon = "https://img.icons8.com/ios-filled/50/password.png"
mode = "proxy"
outpost = "kubernetes-outpost"
create_group = true
access_groups = ["admins"]
}
# Tools applications # Tools applications
"vpn" = { "vpn" = {
name = "VPN" name = "VPN"