-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: try ditching cloudflare-operator
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
1 parent
be7e406
commit 954319c
Showing
1 changed file
with
59 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |