Files
infrastructure/kubernetes/gitea/gitea-cloudflare.yml
Alex Mickelson d37726fcc9
Some checks failed
Apply Kuberentes Configs / update-repo (push) Failing after 1s
Apply Kuberentes Configs / update-infrastructure (push) Successful in 3s
Apply Kuberentes Configs / notify-on-failure (push) Has been skipped
cloudflare and ntfy
2026-03-05 09:35:13 -07:00

47 lines
1012 B
YAML

apiVersion: v1
kind: Secret
metadata:
name: cloudflared-gitea-token
namespace: gitea
type: Opaque
stringData:
token: $CLOUDFLARED_GITEA_TOKEN
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: cloudflared-gitea
namespace: gitea
spec:
replicas: 1
selector:
matchLabels:
app: cloudflared-gitea
template:
metadata:
labels:
app: cloudflared-gitea
spec:
containers:
- name: cloudflared
image: cloudflare/cloudflared:latest
imagePullPolicy: Always
args:
- tunnel
- --metrics
- 0.0.0.0:2000
- run
env:
- name: TUNNEL_TOKEN
valueFrom:
secretKeyRef:
name: cloudflared-gitea-token
key: token
livenessProbe:
httpGet:
path: /ready
port: 2000
failureThreshold: 1
initialDelaySeconds: 10
periodSeconds: 10