39 lines
1.0 KiB
YAML
39 lines
1.0 KiB
YAML
{{- include "bjw-s.common.loader.init" . }}
|
|
|
|
{{- define "cloudflared.hardcodedValues" -}}
|
|
{{ if not .Values.global.nameOverride }}
|
|
global:
|
|
nameOverride: {{ .Values.name }}
|
|
{{ end }}
|
|
controllers:
|
|
main:
|
|
type: deployment
|
|
strategy: Recreate
|
|
containers:
|
|
main:
|
|
image:
|
|
repository: cloudflare/cloudflared
|
|
tag: "2024.5.0"
|
|
pullPolicy: IfNotPresent
|
|
args:
|
|
- tunnel
|
|
- --no-autoupdate
|
|
- --protocol http2
|
|
- run
|
|
- --token
|
|
- $(CF_MANAGED_TUNNEL_TOKEN)
|
|
env:
|
|
- name: CF_MANAGED_TUNNEL_TOKEN
|
|
valueFrom:
|
|
secretKeyRef:
|
|
name: {{ .Values.existingSecretName }}
|
|
key: {{ .Values.existingSecretKey }}
|
|
resources:
|
|
requests:
|
|
cpu: 100m
|
|
memory: 128Mi
|
|
{{- end -}}
|
|
{{- $_ := mergeOverwrite .Values (include "cloudflared.hardcodedValues" . | fromYaml) -}}
|
|
|
|
{{/* Render the templates */}}
|
|
{{ include "bjw-s.common.loader.generate" . }} |