Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Select an option

  • Save amaurybsouza/5328198a338ccf55fee59fefeaf248fa to your computer and use it in GitHub Desktop.

Select an option

Save amaurybsouza/5328198a338ccf55fee59fefeaf248fa to your computer and use it in GitHub Desktop.
kubernetes_cluster_info_ansible
# ansible k8s -m command -a "kubectl cluster-info" -i inventory.yml
k8s | CHANGED | rc=0 >>
Kubernetes control plane is running at https://192.168.1.123:6443
CoreDNS is running at https://192.168.1.123:6443/api/v1/namespaces/kube-system/services/kube-dns:dns/proxy
To further debug and diagnose cluster problems, use 'kubectl cluster-info dump'.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment