Skip to content

Instantly share code, notes, and snippets.

@Oats87
Created December 13, 2019 18:09
Show Gist options
  • Save Oats87/37f592f2180626d6e12f1724773af5e7 to your computer and use it in GitHub Desktop.
Save Oats87/37f592f2180626d6e12f1724773af5e7 to your computer and use it in GitHub Desktop.
kubectl get configmap -n kube-system cattle-controllers -o json | jq -r '.metadata.annotations["control-plane.alpha.kubernetes.io/leader"]' | jq -r ".holderIdentity"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment