Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Select an option

  • Save amaurybsouza/1be9400274352f155fbaeca5e1d26918 to your computer and use it in GitHub Desktop.

Select an option

Save amaurybsouza/1be9400274352f155fbaeca5e1d26918 to your computer and use it in GitHub Desktop.
kubernetes_cluster_ansible_status
# ansible k8s -m command -a "kubectl get componentstatuses" -i inventory.yml
k8s | CHANGED | rc=0 >>
NAME STATUS MESSAGE ERROR
controller-manager Healthy ok
scheduler Healthy ok
etcd-0 Healthy {"health":"true","reason":""} Warning: v1 ComponentStatus is deprecated in v1.19+
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment