update Cloudflare dashboard token as optional (#1417)
Co-authored-by: Devin Buhl <onedr0p@users.noreply.github.com>
This commit is contained in:
1 parent
953ff569f8
commit
6fd11c398d
3 files changed
+5
-1
No files matched your search
@@ -44,11 +44,13 @@ spec:
|
||||
secretKeyRef:
|
||||
name: cloudflared-secret
|
||||
key: TUNNEL_ID
|
||||
#% if bootstrap_cloudflare.tunnel.token %#
|
||||
TUNNEL_TOKEN:
|
||||
valueFrom:
|
||||
secretKeyRef:
|
||||
name: cloudflared-secret
|
||||
key: TUNNEL_TOKEN
|
||||
#% endif %#
|
||||
args:
|
||||
- tunnel
|
||||
- --config
|
||||
|
||||
@@ -5,7 +5,9 @@ metadata:
|
||||
name: cloudflared-secret
|
||||
stringData:
|
||||
TUNNEL_ID: "#{ bootstrap_cloudflare.tunnel.id }#"
|
||||
#% if bootstrap_cloudflare.tunnel.token %#
|
||||
TUNNEL_TOKEN: "#{ bootstrap_cloudflare.tunnel.token }#"
|
||||
#% endif %#
|
||||
credentials.json: |
|
||||
{
|
||||
"AccountTag": "#{ bootstrap_cloudflare.tunnel.account_id }#",
|
||||
|
||||
+1
-1
@@ -206,7 +206,7 @@ bootstrap_cloudflare:
|
||||
account_id: ""
|
||||
# (Required: CLI) Cloudflared Tunnel Secret: (cat ~/.cloudflared/*.json | jq -r .TunnelSecret)
|
||||
secret: ""
|
||||
# (Required: Dashboard) Cloudflared Tunnel Token
|
||||
# (Optional: Dashboard) Cloudflared Tunnel Token managed via the Cloudflare dashboard, Dashboard take higher priority over locally managed tunnel
|
||||
token: ""
|
||||
# (Required) Provide WAN access to the cluster ingresses for external ingress classes
|
||||
# The Load balancer IP for external ingress, choose an available IP
|
||||
|
||||
Reference in new issue
Block a user