Skip to content

Commit

Permalink
Merge pull request #47 from uhthomas/46
Browse files Browse the repository at this point in the history
fix(charts/cloudflare-tunnel-remote): remove invalid secret ref key
  • Loading branch information
larcher authored Aug 29, 2023
2 parents 2cc8c21 + c53b4b3 commit ca82061
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 8 deletions.
16 changes: 9 additions & 7 deletions charts/cloudflare-tunnel-remote/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,21 +23,23 @@ spec:
spec:
serviceAccountName: {{ include "cloudflare-tunnel-remote.fullname" . }}
containers:
- image: "{{ .Values.image.repository }}:{{ .Values.image.tag | default "latest" }}"
- name: cloudflared
image: "{{ .Values.image.repository }}:{{ .Values.image.tag | default "latest" }}"
imagePullPolicy: {{ .Values.image.pullPolicy }}
name: cloudflared
command:
- cloudflared
- tunnel
# In a k8s environment, the metrics server needs to listen outside the pod it runs on.
# In a k8s environment, the metrics server needs to listen outside the pod it runs on.
# The address 0.0.0.0:2000 allows any pod in the namespace.
- --metrics
- 0.0.0.0:2000
- run
envFrom:
- secretRef:
name: {{ include "cloudflare-tunnel-remote.fullname" . }}
key: TUNNEL_TOKEN
env:
- name: TUNNEL_TOKEN
valueFrom:
secretKeyRef:
name: {{ include "cloudflare-tunnel-remote.fullname" . }}
key: tunnelToken
livenessProbe:
httpGet:
# Cloudflared has a /ready endpoint which returns 200 if and only if
Expand Down
2 changes: 1 addition & 1 deletion charts/cloudflare-tunnel-remote/templates/secret.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,4 @@ metadata:
labels:
{{- include "cloudflare-tunnel-remote.labels" . | nindent 4 }}
stringData:
TUNNEL_TOKEN: {{ .Values.cloudflare.tunnel_token }}
tunnelToken: {{ .Values.cloudflare.tunnel_token }}

0 comments on commit ca82061

Please sign in to comment.