I have installed Kubernetes 1.12 using kubeadm.
Is there a way to get advertise-address of kubernetes api-server from a pod?
Generally you don't need that. From pods Kubernetes API is always available using URL https://kubernetes.default