Cloudflare tunnel for k8s

This commit is contained in:
Ibrahim Mkusa 2025-06-04 22:12:50 -04:00
parent 59cf977fec
commit e85857a329
2 changed files with 49 additions and 0 deletions

View File

@ -24,3 +24,6 @@ kubectl create secret generic pihole-dashboard-password
```
If possible, create a secret resource during setup rather than hardcoding
passwords otherwise there's a good chance of it being committed unawares

View File

@ -0,0 +1,46 @@
apiVersion: apps/v1
kind: Deployment
metadata:
creationTimestamp: null
labels:
app: cloudflare
name: cloudflare
namespace: gitea
spec:
securityContext:
sysctls:
- name: net.ipv4.ping_group_range
value: "65532 65532"
replicas: 2
selector:
matchLabels:
app: cloudflare
strategy: {}
template:
metadata:
creationTimestamp: null
labels:
app: cloudflare
spec:
containers:
- image: cloudflare/cloudflared:latest
name: cloudflared
command:
- cloudflared
- tunnel
- --no-autoupdate
- --metrics
- 0.0.0.0:2000
- run
args:
- --token
- YOUR_TOKEN_HERE_FROM_CLOUDFLARE_GUI
livenessProbe:
httpGet:
path: /ready
port: 2000
failureThreshold: 1
initialDelaySeconds: 10
periodSeconds: 10
resources: {}
status: {}