# How To Identify the Active Master Node in Platform9 Managed Kubernetes Cluster

## Problem

Identify the active Master node in a Platform9 Managed Kubernetes cluster.

## Environment

* Platform9 Managed Kubernetes - All Versions

## Answer

1. Using the **kube-scheduler** or **kube-controller-manager** endpoints, identify the active Master node by referring to the **holderIdentity**.

{% tabs %}
{% tab title="None" %}

```none
# kubectl get endpoints kube-scheduler -n kube-system -o yaml

apiVersion: v1
kind: Endpoints
metadata:
annotations:
control-plane.alpha.kubernetes.io/leader: '{"holderIdentity":"master3_e848b2f6-471e-11ea-866a-fa163efa580e","leaseDurationSeconds":15,"acquireTime":"2020-02-05T06:25:26Z","renewTime":"2020-02-07T02:07:22Z","leaderTransitions":17}'
creationTimestamp: 2019-12-22T07:44:06Z
name: kube-scheduler
namespace: kube-system
resourceVersion: "7427816"
selfLink: /api/v1/namespaces/kube-system/endpoints/kube-scheduler
uid: d515ac87-248e-11ea-924f-fa163eef3a4b
```

{% endtab %}
{% endtabs %}

{% tabs %}
{% tab title="None" %}

```none
# kubectl get endpoints kube-controller-manager -n kube-system -o yaml

apiVersion: v1
kind: Endpoints
metadata:
annotations:
control-plane.alpha.kubernetes.io/leader: '{"holderIdentity":"master3_e94b43cd-471e-11ea-adca-fa163efa580e","leaseDurationSeconds":15,"acquireTime":"2020-02-05T06:25:37Z","renewTime":"2020-02-07T02:08:03Z","leaderTransitions":17}'
creationTimestamp: 2019-12-22T07:44:08Z
name: kube-controller-manager
namespace: kube-system
resourceVersion: "7427889"
selfLink: /api/v1/namespaces/kube-system/endpoints/kube-controller-manager
uid: d6373c89-248e-11ea-924f-fa163eef3a4b
```

{% endtab %}
{% endtabs %}


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://platform9.com/kb/pmk/how-to/how-to-identify-the-active-master-node-in-platform9-managed-kub.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
