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:
|
secretKeyRef:
|
||||||
name: cloudflared-secret
|
name: cloudflared-secret
|
||||||
key: TUNNEL_ID
|
key: TUNNEL_ID
|
||||||
|
#% if bootstrap_cloudflare.tunnel.token %#
|
||||||
TUNNEL_TOKEN:
|
TUNNEL_TOKEN:
|
||||||
valueFrom:
|
valueFrom:
|
||||||
secretKeyRef:
|
secretKeyRef:
|
||||||
name: cloudflared-secret
|
name: cloudflared-secret
|
||||||
key: TUNNEL_TOKEN
|
key: TUNNEL_TOKEN
|
||||||
|
#% endif %#
|
||||||
args:
|
args:
|
||||||
- tunnel
|
- tunnel
|
||||||
- --config
|
- --config
|
||||||
|
|||||||
@@ -5,7 +5,9 @@ metadata:
|
|||||||
name: cloudflared-secret
|
name: cloudflared-secret
|
||||||
stringData:
|
stringData:
|
||||||
TUNNEL_ID: "#{ bootstrap_cloudflare.tunnel.id }#"
|
TUNNEL_ID: "#{ bootstrap_cloudflare.tunnel.id }#"
|
||||||
|
#% if bootstrap_cloudflare.tunnel.token %#
|
||||||
TUNNEL_TOKEN: "#{ bootstrap_cloudflare.tunnel.token }#"
|
TUNNEL_TOKEN: "#{ bootstrap_cloudflare.tunnel.token }#"
|
||||||
|
#% endif %#
|
||||||
credentials.json: |
|
credentials.json: |
|
||||||
{
|
{
|
||||||
"AccountTag": "#{ bootstrap_cloudflare.tunnel.account_id }#",
|
"AccountTag": "#{ bootstrap_cloudflare.tunnel.account_id }#",
|
||||||
|
|||||||
+1
-1
@@ -206,7 +206,7 @@ bootstrap_cloudflare:
|
|||||||
account_id: ""
|
account_id: ""
|
||||||
# (Required: CLI) Cloudflared Tunnel Secret: (cat ~/.cloudflared/*.json | jq -r .TunnelSecret)
|
# (Required: CLI) Cloudflared Tunnel Secret: (cat ~/.cloudflared/*.json | jq -r .TunnelSecret)
|
||||||
secret: ""
|
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: ""
|
token: ""
|
||||||
# (Required) Provide WAN access to the cluster ingresses for external ingress classes
|
# (Required) Provide WAN access to the cluster ingresses for external ingress classes
|
||||||
# The Load balancer IP for external ingress, choose an available IP
|
# The Load balancer IP for external ingress, choose an available IP
|
||||||
|
|||||||
Reference in new issue
Block a user