argocd-configs/cloudflare/prod/deployment.yaml

44 lines
897 B
YAML
Raw Permalink Normal View History

2024-05-27 05:59:37 +00:00
apiVersion: apps/v1
kind: Deployment
metadata:
name: cloudflared-deployment
namespace: cloudflare
labels:
app: cloudflared
spec:
selector:
matchLabels:
pod: cloudflared
replicas: 1
template:
metadata:
creationTimestamp: null
labels:
pod: cloudflared
spec:
containers:
- name: cloudflared
image: cloudflare/cloudflared:latest
args:
- --token
- $(TUNNEL_TOKEN)
command:
- cloudflared
- tunnel
- --metrics
- 0.0.0.0:2000
- run
env:
- name: TUNNEL_TOKEN
valueFrom:
secretKeyRef:
key: token
name: cf-secrets
livenessProbe:
httpGet:
path: /ready
port: 2000
failureThreshold: 1
initialDelaySeconds: 10
periodSeconds: 10