We're a place where coders share, stay up-to-date and grow their careers.
Please how do i get the cluster host name for my application deployed on kubernetes on google cloud
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.
Please how do i get the cluster host name for my application deployed on kubernetes on google cloud
You will need to get an external IP first:
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.