Skip to content

Commit

Permalink
feat: try ditching cloudflare-operator
Browse files Browse the repository at this point in the history
It would appear that the cloudflare-operator is a bit out of date and
does not support the current version of cloudflare tunnels (eg.
zero-trust).

adyanth/cloudflare-operator#67 (comment)
  • Loading branch information
johnallen3d committed Aug 14, 2024
1 parent be7e406 commit 954319c
Showing 1 changed file with 59 additions and 13 deletions.
72 changes: 59 additions & 13 deletions resources/cloudflare-tunnels/superset-k3s-dev.yaml
Original file line number Diff line number Diff line change
@@ -1,15 +1,61 @@
apiVersion: networking.cfargotunnel.com/v1alpha1
kind: ClusterTunnel
# apiVersion: networking.cfargotunnel.com/v1alpha1
# kind: ClusterTunnel
# metadata:
# name: superset-k3s-dev-tunnel
# spec:
# existingTunnel:
# name: superset-k3s-dev
# size: 2
# cloudflare:
# email: [email protected]
# domain: jallen7usa.com
# secret: clourdflare-credentials
# # accountId and accountName cannot be both empty. If both are provided, Account ID is used if valid, else falls back to Account Name.
# accountName:
# accountId: c60a9b2426e2d250307a67e4937bb55c

---
# https://developers.cloudflare.com/cloudflare-one/connections/connect-networks/deploy-tunnels/deployment-guides/kubernetes/#routing-with-cloudflare-tunnel
apiVersion: apps/v1
kind: Deployment
metadata:
name: superset-k3s-dev-tunnel
labels:
app: cloudflared
name: cloudflared-deployment
namespace: default
spec:
existingTunnel:
name: superset-k3s-dev
size: 2
cloudflare:
email: [email protected]
domain: jallen7usa.com
secret: clourdflare-credentials
# accountId and accountName cannot be both empty. If both are provided, Account ID is used if valid, else falls back to Account Name.
accountName:
accountId: c60a9b2426e2d250307a67e4937bb55c
replicas: 2
selector:
matchLabels:
pod: cloudflared
template:
metadata:
creationTimestamp: null
labels:
pod: cloudflared
spec:
containers:
- command:
- cloudflared
- tunnel
- --metrics
- 0.0.0.0:2000
- run
args:
- --token
- $(CLOUDFLARE_TUNNEL_CREDENTIAL)
image: cloudflare/cloudflared:latest
name: cloudflared
livenessProbe:
httpGet:
path: /ready
port: 2000
failureThreshold: 1
initialDelaySeconds: 10
periodSeconds: 10
env:
- name: CLOUDFLARE_TUNNEL_CREDENTIAL
valueFrom:
secretKeyRef:
name: cloudflare-credentials
key: CLOUDFLARE_TUNNEL_CREDENTIAL_SECRET

0 comments on commit 954319c

Please sign in to comment.