From e40b3bc110790e203c0fdb2def12dc8f5721adb2 Mon Sep 17 00:00:00 2001 From: Shahab Dogar Date: Tue, 1 Oct 2024 16:06:17 +0500 Subject: [PATCH] chore: Cloudflared | remove cloudflare tunnels --- cloudflared/cloudflared.yaml | 70 ------------------------------------ 1 file changed, 70 deletions(-) delete mode 100644 cloudflared/cloudflared.yaml diff --git a/cloudflared/cloudflared.yaml b/cloudflared/cloudflared.yaml deleted file mode 100644 index dee2606..0000000 --- a/cloudflared/cloudflared.yaml +++ /dev/null @@ -1,70 +0,0 @@ ---- -apiVersion: apps/v1 -kind: Deployment -metadata: - name: cloudflared - namespace: cloudflared -spec: - selector: - matchLabels: - app: cloudflared - replicas: 3 - template: - metadata: - labels: - app: cloudflared - spec: - containers: - - name: cloudflared - image: cloudflare/cloudflared - args: - - tunnel - - --config - - /etc/cloudflared/config/config.yaml - - run - livenessProbe: - httpGet: - path: /ready - port: 2000 - failureThreshold: 1 - initialDelaySeconds: 10 - periodSeconds: 10 - volumeMounts: - - name: config - mountPath: /etc/cloudflared/config - readOnly: true - - name: creds - mountPath: /etc/cloudflared/creds - readOnly: true - volumes: - - name: creds - secret: - secretName: tunnel-credentials - - name: config - configMap: - name: cloudflared - items: - - key: config.yaml - path: config.yaml ---- -# This ConfigMap is just a way to define the cloudflared config.yaml file in k8s. -# It's useful to define it in k8s, rather than as a stand-alone .yaml file, because -# this lets you use various k8s templating solutions (e.g. Helm charts) to -# parameterize your config, instead of just using string literals. -apiVersion: v1 -kind: ConfigMap -metadata: - name: cloudflared - namespace: cloudflared -data: - config.yaml: | - tunnel: homelab - credentials-file: /etc/cloudflared/creds/credentials.json - metrics: 0.0.0.0:2000 - no-autoupdate: true - ingress: - - hostname: postgres.dogar.dev - service: tcp://postgres-cluster-rw.postgres-system.svc.cluster.local:5432 - - hostname: git.dogar.dev - service: http://git.dogar.dev - - service: http_status:404