Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save amaurybsouza/c83f7ee999bb076b497894d04e7733dc to your computer and use it in GitHub Desktop.
Save amaurybsouza/c83f7ee999bb076b497894d04e7733dc to your computer and use it in GitHub Desktop.
kubernetes_cluster_ansible_node
# ansible k8s -m shell -a "kubectl get nodes -o wide" -i inventory.yml
k8s | CHANGED | rc=0 >>
NAME STATUS ROLES AGE VERSION INTERNAL-IP EXTERNAL-IP OS-IMAGE KERNEL-VERSION CONTAINER-RUNTIME
kubernetes-cluster Ready control-plane 3d1h v1.24.2 192.168.1.132 <none> CentOS Linux 7 (Core) 3.10.0-1160.66.1.el7.x86_64 containerd://1.6.6
kubernetes-node01 Ready <none> 3d1h v1.24.1 192.168.1.122 <none> CentOS Linux 7 (Core) 3.10.0-1160.66.1.el7.x86_64 containerd://1.6.6
kubernetes-node02 Ready <none> 3d1h v1.24.1 192.168.1.123 <none> CentOS Linux 7 (Core) 3.10.0-1160.66.1.el7.x86_64 containerd://1.6.6
kubernetes-node03 Ready <none> 3d1h v1.24.1 192.168.1.125 <none> CentOS Linux 7 (Core) 3.10.0-1160.66.1.el7.x86_64 containerd://1.6.6
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment