-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathturtlecode-tunnel.yaml
More file actions
29 lines (29 loc) · 924 Bytes
/
Copy pathturtlecode-tunnel.yaml
File metadata and controls
29 lines (29 loc) · 924 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
# Dedicated cloudflared connector for the "turtlecode" tunnel (027dab4a),
# isolated in the turtlecode namespace. Token lives in secret `turtlecode-tunnel`
# (minted from the Cloudflare API; created out-of-band).
apiVersion: apps/v1
kind: Deployment
metadata:
name: cloudflared
namespace: turtlecode
spec:
replicas: 1
selector:
matchLabels: { app: cloudflared }
template:
metadata:
labels: { app: cloudflared }
spec:
containers:
- name: cloudflared
image: cloudflare/cloudflared:latest
args: ["tunnel", "--no-autoupdate", "run", "--token", "$(TUNNEL_TOKEN)"]
env:
- name: TUNNEL_TOKEN
valueFrom:
secretKeyRef:
name: turtlecode-tunnel
key: token
resources:
requests: { cpu: "10m", memory: "32Mi" }
limits: { cpu: "200m", memory: "128Mi" }