For every command you enter with kubectl (if you have enough permissions) you can alternatively specify the namespace --namespace=default
<service>.<namespace>.svc.cluster.local
kubectl get nodes -o json | grep "\"address\": \"" | uniq | sort | awk '{print $2}'