redaction (#1)
Add the redacted source file for demo purposes Reviewed-on: https://source.michaeldileo.org/michael_dileo/Keybard-Vagabond-Demo/pulls/1 Co-authored-by: Michael DiLeo <michael_dileo@proton.me> Co-committed-by: Michael DiLeo <michael_dileo@proton.me>
This commit was merged in pull request #1.
This commit is contained in:
56
manifests/infrastructure/cloudflared/tunnel.yaml
Normal file
56
manifests/infrastructure/cloudflared/tunnel.yaml
Normal file
@@ -0,0 +1,56 @@
|
||||
apiVersion: apps/v1
|
||||
kind: Deployment
|
||||
metadata:
|
||||
name: cloudflared-deployment
|
||||
namespace: cloudflared-system
|
||||
spec:
|
||||
replicas: 2
|
||||
selector:
|
||||
matchLabels:
|
||||
pod: cloudflared
|
||||
template:
|
||||
metadata:
|
||||
labels:
|
||||
pod: cloudflared
|
||||
spec:
|
||||
securityContext:
|
||||
sysctls:
|
||||
# Allows ICMP traffic (ping, traceroute) to resources behind cloudflared.
|
||||
- name: net.ipv4.ping_group_range
|
||||
value: "65532 65532"
|
||||
containers:
|
||||
- image: cloudflare/cloudflared:latest
|
||||
name: cloudflared
|
||||
resources:
|
||||
requests:
|
||||
cpu: 50m
|
||||
memory: 64Mi
|
||||
limits:
|
||||
cpu: 200m
|
||||
memory: 256Mi
|
||||
env:
|
||||
# Defines an environment variable for the tunnel token.
|
||||
- name: TUNNEL_TOKEN
|
||||
valueFrom:
|
||||
secretKeyRef:
|
||||
name: cloudflared-credentials
|
||||
key: tunnel-token
|
||||
command:
|
||||
# Configures tunnel run parameters
|
||||
- cloudflared
|
||||
- tunnel
|
||||
- --no-autoupdate
|
||||
- --loglevel
|
||||
- debug
|
||||
- --metrics
|
||||
- 0.0.0.0:2000
|
||||
- run
|
||||
livenessProbe:
|
||||
httpGet:
|
||||
# Cloudflared has a /ready endpoint which returns 200 if and only if
|
||||
# it has an active connection to Cloudflare's network.
|
||||
path: /ready
|
||||
port: 2000
|
||||
failureThreshold: 1
|
||||
initialDelaySeconds: 10
|
||||
periodSeconds: 10
|
||||
Reference in New Issue
Block a user