Files
cloudflared/manifest/base/deployment.yaml
T
olb042 128727d3a6
Validate manifests / validate (push) Failing after 5s
shutdown
2026-04-20 01:55:50 +01:00

66 lines
1.5 KiB
YAML

apiVersion: apps/v1
kind: Deployment
metadata:
name: cloudflared
namespace: networking
labels:
app: cloudflared
spec:
replicas: 1
selector:
matchLabels:
app: cloudflared
strategy:
type: RollingUpdate
rollingUpdate:
maxSurge: 0
maxUnavailable: 1
template:
metadata:
labels:
app: cloudflared
app.kubernetes.io/name: cloudflared
spec:
containers:
- name: cloudflared
image: cloudflare/cloudflared:latest
imagePullPolicy: Always
args:
- tunnel
- --no-autoupdate
- --metrics
- 0.0.0.0:2000
- run
env:
- name: TUNNEL_TOKEN
valueFrom:
secretKeyRef:
name: cloudflared-secrets
key: tunnel_token
readinessProbe:
httpGet:
path: /ready
port: 2000
initialDelaySeconds: 5
periodSeconds: 5
livenessProbe:
httpGet:
path: /ready
port: 2000
initialDelaySeconds: 10
periodSeconds: 10
resources:
requests:
cpu: 50m
memory: 64Mi
limits:
cpu: 500m
memory: 256Mi
topologySpreadConstraints:
- maxSkew: 1
topologyKey: kubernetes.io/hostname
whenUnsatisfiable: DoNotSchedule
labelSelector:
matchLabels:
app: cloudflared