2024-08-12 03:42:27 +00:00
|
|
|
apiVersion: apps/v1
|
|
|
|
kind: Deployment
|
|
|
|
metadata:
|
|
|
|
name: cloudflared-deployment
|
|
|
|
namespace: cloudflare
|
|
|
|
labels:
|
|
|
|
app: cloudflared
|
|
|
|
spec:
|
|
|
|
selector:
|
|
|
|
matchLabels:
|
|
|
|
pod: cloudflared
|
|
|
|
replicas: 1
|
|
|
|
template:
|
|
|
|
metadata:
|
|
|
|
creationTimestamp: null
|
|
|
|
labels:
|
|
|
|
pod: cloudflared
|
|
|
|
spec:
|
|
|
|
containers:
|
|
|
|
- name: cloudflared
|
|
|
|
image: cloudflare/cloudflared:latest
|
|
|
|
args:
|
|
|
|
- --token
|
|
|
|
- $(TUNNEL_TOKEN)
|
|
|
|
command:
|
|
|
|
- cloudflared
|
|
|
|
- tunnel
|
|
|
|
- --metrics
|
|
|
|
- 0.0.0.0:2000
|
|
|
|
- run
|
|
|
|
env:
|
|
|
|
- name: TUNNEL_TOKEN
|
|
|
|
valueFrom:
|
|
|
|
secretKeyRef:
|
|
|
|
key: token
|
2024-08-12 17:16:35 +00:00
|
|
|
name: cloudflare-token
|
2024-08-12 03:42:27 +00:00
|
|
|
livenessProbe:
|
|
|
|
httpGet:
|
|
|
|
path: /ready
|
|
|
|
port: 2000
|
|
|
|
failureThreshold: 1
|
|
|
|
initialDelaySeconds: 10
|
|
|
|
periodSeconds: 10
|
2024-08-14 04:14:13 +00:00
|
|
|
---
|
|
|
|
apiVersion: v1
|
|
|
|
kind: ConfigMap
|
|
|
|
metadata:
|
2024-08-14 05:45:29 +00:00
|
|
|
name: cloudflared
|
2024-08-14 05:52:54 +00:00
|
|
|
namespace: cloudflare
|
2024-08-14 04:14:13 +00:00
|
|
|
data:
|
2024-08-14 05:45:29 +00:00
|
|
|
config.yaml: "originRequest:\n noTLSVerify: true \ningress:\n - hostname: kx3dex.radio\n service: https://ingress-nginx-controller.ingress-nginx.svc.cluster.local:443\n"
|