feat(cloudflare-tunnel): add tunnel
This commit is contained in:
parent
28a07ca401
commit
a5f4198f32
8 changed files with 121 additions and 0 deletions
38
apps/cloudflare-tunnel/base/deployment.yaml
Normal file
38
apps/cloudflare-tunnel/base/deployment.yaml
Normal file
|
|
@ -0,0 +1,38 @@
|
|||
apiVersion: apps/v1
|
||||
kind: Deployment
|
||||
metadata:
|
||||
labels:
|
||||
app: cloudflared
|
||||
name: cloudflared-deployment
|
||||
spec:
|
||||
replicas: 2
|
||||
selector:
|
||||
matchLabels:
|
||||
pod: cloudflared
|
||||
template:
|
||||
metadata:
|
||||
creationTimestamp: null
|
||||
labels:
|
||||
pod: cloudflared
|
||||
spec:
|
||||
containers:
|
||||
- command:
|
||||
- cloudflared
|
||||
- tunnel
|
||||
- --no-autoupdate
|
||||
# In a k8s environment, the metrics server needs to listen outside the pod it runs on.
|
||||
# The address 0.0.0.0:2000 allows any pod in the namespace.
|
||||
- --metrics
|
||||
- 0.0.0.0:2000
|
||||
- run
|
||||
image: cloudflare/cloudflared:latest
|
||||
name: cloudflared
|
||||
livenessProbe:
|
||||
httpGet:
|
||||
# Cloudflared has a /ready endpoint which returns 200 if and only if
|
||||
# it has an active connection to the edge.
|
||||
path: /ready
|
||||
port: 2000
|
||||
failureThreshold: 1
|
||||
initialDelaySeconds: 10
|
||||
periodSeconds: 10
|
||||
Loading…
Add table
Add a link
Reference in a new issue