feat(cloudflared): add Cloudflare Tunnel deployment (token-based, cfddns-style)

This commit is contained in:
forust committed 2026-09-17 19:09:02 +02:00
1 parent 1e66b5f344
commit 47d788ca13
4 files changed
+52

No files matched your search

+1
View File
@@ -0,0 +1 @@
secret.yaml
View File
Whitespace-only changes.
+44
View File
@@ -0,0 +1,44 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: cloudflared
labels:
app: cloudflared
spec:
replicas: 1
selector:
matchLabels:
app: cloudflared
template:
metadata:
labels:
app: cloudflared
spec:
containers:
- name: cloudflared
image: cloudflare/cloudflared:2026.1.1
imagePullPolicy: IfNotPresent
args:
- tunnel
- --no-autoupdate
- run
env:
- name: TUNNEL_TOKEN
valueFrom:
secretKeyRef:
name: cloudflared-secrets
key: TUNNEL_TOKEN
resources:
requests:
memory: "32Mi"
cpu: "30m"
limits:
memory: "128Mi"
cpu: "200m"
livenessProbe:
exec:
command:
- cloudflared
- --version
initialDelaySeconds: 30
periodSeconds: 60
+7
View File
@@ -0,0 +1,7 @@
apiVersion: v1
kind: Secret
metadata:
name: cloudflared-secrets
type: Opaque
stringData:
TUNNEL_TOKEN: your_tunnel_token_here