DEV Community

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

Collapse
 
peterj profile image
Peter Jausovec

You will need to get an external IP first:

kubectl get svc --all-namespaces -o jsonpath='{range .items[?(@.spec.type=="LoadBalancer")]}{.metadata.name}:{.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.