DEV Community


Discussion on: Expose a Kubernetes service on your own custom domain

peterj profile image
Peter Jausovec Author

You will need to get an external IP first:

kubectl get svc --all-namespaces -o jsonpath='{range .items[?(@.spec.type=="LoadBalancer")]}{}:{.status.loadBalancer.ingress[0].ip}{"\n"}{end}'

Once you have the IP, you can go to the website where you registered your domain and create an A record to point to that external IP.