2024-01-12 13:34:23 -06:00
|
|
|
---
|
2024-03-19 17:38:08 -05:00
|
|
|
# yaml-language-server: $schema=https://raw.githubusercontent.com/bjw-s/helm-charts/main/charts/other/app-template/schemas/helmrelease-helm-v2beta2.schema.json
|
2024-01-12 13:34:23 -06:00
|
|
|
apiVersion: helm.toolkit.fluxcd.io/v2beta2
|
|
|
|
kind: HelmRelease
|
|
|
|
metadata:
|
|
|
|
name: &app cloudflared
|
|
|
|
spec:
|
|
|
|
interval: 30m
|
|
|
|
chart:
|
|
|
|
spec:
|
|
|
|
chart: app-template
|
2024-03-19 17:20:21 -05:00
|
|
|
version: 3.0.4
|
2024-01-12 13:34:23 -06:00
|
|
|
sourceRef:
|
|
|
|
kind: HelmRepository
|
|
|
|
name: bjw-s
|
|
|
|
namespace: flux-system
|
|
|
|
install:
|
|
|
|
remediation:
|
|
|
|
retries: 3
|
|
|
|
upgrade:
|
|
|
|
cleanupOnFail: true
|
|
|
|
remediation:
|
|
|
|
retries: 3
|
2024-03-19 18:43:34 -05:00
|
|
|
strategy: rollback
|
2024-01-12 13:34:23 -06:00
|
|
|
dependsOn:
|
2024-01-12 15:26:55 -06:00
|
|
|
- name: ingress-nginx
|
2024-01-12 13:34:23 -06:00
|
|
|
namespace: network
|
|
|
|
values:
|
|
|
|
controllers:
|
2024-03-19 17:38:08 -05:00
|
|
|
cloudflared:
|
2024-01-12 13:34:23 -06:00
|
|
|
replicas: 2
|
|
|
|
strategy: RollingUpdate
|
|
|
|
annotations:
|
|
|
|
reloader.stakater.com/auto: "true"
|
|
|
|
containers:
|
2024-03-19 17:38:08 -05:00
|
|
|
app:
|
2024-01-12 13:34:23 -06:00
|
|
|
image:
|
|
|
|
repository: docker.io/cloudflare/cloudflared
|
2024-02-20 12:00:47 -06:00
|
|
|
tag: 2024.2.1@sha256:60e94a8669dccbe461b6913ce33ab759104334220b49042ec03cfca62a2f01e7
|
2024-01-12 13:34:23 -06:00
|
|
|
env:
|
|
|
|
NO_AUTOUPDATE: "true"
|
|
|
|
TUNNEL_CRED_FILE: /etc/cloudflared/creds/credentials.json
|
|
|
|
TUNNEL_METRICS: 0.0.0.0:8080
|
|
|
|
TUNNEL_TRANSPORT_PROTOCOL: quic
|
|
|
|
TUNNEL_POST_QUANTUM: true
|
|
|
|
args:
|
|
|
|
- tunnel
|
|
|
|
- --config
|
|
|
|
- /etc/cloudflared/config/config.yaml
|
|
|
|
- run
|
2024-02-27 12:46:29 -06:00
|
|
|
- "${CLUSTER_SECRET_CLOUDFLARE_TUNNEL_ID}"
|
2024-01-12 13:34:23 -06:00
|
|
|
probes:
|
|
|
|
liveness: &probes
|
|
|
|
enabled: true
|
|
|
|
custom: true
|
|
|
|
spec:
|
|
|
|
httpGet:
|
|
|
|
path: /ready
|
|
|
|
port: &port 8080
|
|
|
|
initialDelaySeconds: 0
|
|
|
|
periodSeconds: 10
|
|
|
|
timeoutSeconds: 1
|
|
|
|
failureThreshold: 3
|
|
|
|
readiness: *probes
|
|
|
|
startup:
|
|
|
|
enabled: false
|
|
|
|
securityContext:
|
|
|
|
allowPrivilegeEscalation: false
|
|
|
|
readOnlyRootFilesystem: true
|
|
|
|
capabilities: { drop: ["ALL"] }
|
|
|
|
resources:
|
|
|
|
requests:
|
|
|
|
cpu: 10m
|
|
|
|
limits:
|
|
|
|
memory: 256Mi
|
|
|
|
pod:
|
|
|
|
securityContext:
|
|
|
|
runAsUser: 568
|
|
|
|
runAsGroup: 568
|
|
|
|
runAsNonRoot: true
|
|
|
|
topologySpreadConstraints:
|
|
|
|
- maxSkew: 1
|
|
|
|
topologyKey: kubernetes.io/hostname
|
|
|
|
whenUnsatisfiable: DoNotSchedule
|
|
|
|
labelSelector:
|
|
|
|
matchLabels:
|
|
|
|
app.kubernetes.io/name: *app
|
|
|
|
service:
|
2024-03-19 17:38:08 -05:00
|
|
|
app:
|
|
|
|
controller: cloudflared
|
2024-01-12 13:34:23 -06:00
|
|
|
ports:
|
|
|
|
http:
|
|
|
|
port: *port
|
|
|
|
serviceMonitor:
|
2024-03-19 17:38:08 -05:00
|
|
|
app:
|
|
|
|
serviceName: cloudflared
|
|
|
|
endpoints:
|
|
|
|
- port: http
|
|
|
|
scheme: http
|
|
|
|
path: /metrics
|
|
|
|
interval: 1m
|
|
|
|
scrapeTimeout: 10s
|
2024-01-12 13:34:23 -06:00
|
|
|
persistence:
|
|
|
|
config:
|
|
|
|
enabled: true
|
|
|
|
type: configMap
|
|
|
|
name: cloudflared-configmap
|
|
|
|
globalMounts:
|
|
|
|
- path: /etc/cloudflared/config/config.yaml
|
|
|
|
subPath: config.yaml
|
|
|
|
readOnly: true
|
|
|
|
creds:
|
|
|
|
type: secret
|
|
|
|
name: cloudflared-tunnel-secret
|
|
|
|
globalMounts:
|
|
|
|
- path: /etc/cloudflared/creds/credentials.json
|
|
|
|
subPath: credentials.json
|
|
|
|
readOnly: true
|