For the complete documentation index, see llms.txt. This page is also available as Markdown.

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.

# 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

Last updated