SUSE Support

Here When You Need Us

How to Determine the Rancher Leader, in Rancher v2.x

This document (000020056) is provided subject to the disclaimer at the end of this document.

Situation

Task

During troubleshooting it may be useful to know which of the Rancher server pods, running as part of the rancher Deployment in the cattle-system namespace, is the current leader, and this article details the steps to determine this.

Pre-requisites

Steps

Via the Rancher UI

The cattle-controllers ConfigMap under the kube-system namespace

  1. Navigate to the local cluster in which Rancher is installed.

  2. Click the Projects/Namespaces tab, and select the System project.

  3. Under the Resources tab, select Config.

  4. Locate the cattle-controllers ConfigMap, under the kube-system namespace.

  5. Expand the Labels & Annotations section and note the current leader pod name in the holderIdentity field.

Via kubectl with a script

With the kubeconfig for the Rancher server cluster sourced, the leader can be determined using the following script:

curl https://raw.githubusercontent.com/rancherlabs/support-tools/master/troubleshooting-scripts/determine-leader/rancher2_determine_leader.sh | sh

Further reading

Disclaimer

This Support Knowledgebase provides a valuable tool for SUSE customers and parties interested in our products and solutions to acquire information, ideas and learn from one another. Materials are provided for informational, personal or non-commercial use within your organization and are presented "AS IS" WITHOUT WARRANTY OF ANY KIND.

  • Document ID:000020056
  • Creation Date: 06-May-2021
  • Modified Date:06-May-2021
    • SUSE Rancher

< Back to Support Search

For questions or concerns with the SUSE Knowledgebase please contact: tidfeedback[at]suse.com

SUSE Support Forums

Get your questions answered by experienced Sys Ops or interact with other SUSE community experts.

Support Resources

Learn how to get the most from the technical support you receive with your SUSE Subscription, Premium Support, Academic Program, or Partner Program.

Open an Incident

Open an incident with SUSE Technical Support, manage your subscriptions, download patches, or manage user access.