After running cloudflared tunnel, cloudflared is not able to create a DNS records for the new service which is present inside the config.yaml. Can someone please guide me if i am missing something?
after running cloudflared tunnel --config config.yaml run. It runs a tunnel successfully but couldn’t create DNS records so xyz.atyourstation.in is not accessible.
Did you create a tunnel via cloudflared tunnel create yourTunnel and specify the tunnel ID inside YML file? It looks like you only specify Ingress rule in the YML file.
Also, you need to do this after creating a tunnel:
This is my actual file.
[root@atyourstation .cloudflared]# cat config.yaml
tunnel: atyourstation
credentials-file: /root/.cloudflared/5d2f5b3f-373d-4377-a140-705220b9a025.json
You are correct earlier i didn’t run dns route command. But i ran it now and it has created a CNAME record for me with my tunnelid.cfargotunnel.com. But now should i just run cloudflared tunnel --config config.yaml run and my traffic from xyz.atyourstation.in should be routed to my local service i.e. http://localhost:8002 ?
and if i have 100 services do i need to create 100 CNAME or i can just create it for root domain (atyourstation.in) and value of tunnelid.cfargotunnel.com?
My end goal is to create 100’s of services in the config.yaml and route the traffic according to their domain name.
if domain name user is trying to access is abc.atyourstation.in → http://localhost:8001
if domain name user is trying to access is xyz.atyourstation.in → http://localhost:8002
etc…
and i assumed that cloudflared will create AAA entry for me.
Whoa!! It started working. Then i think i was missing the creation of CNAME part (cloudflared tunnel dns route) which should route me to my tunnelId.cfargotunnel.com.