Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Release-1.25] - [RFE] Mechanism to easily determine etcd node health/voter status #8816

Closed
vitorsavian opened this issue Nov 13, 2023 · 1 comment
Assignees

Comments

@vitorsavian
Copy link
Member

Backport fix for [RFE] Mechanism to easily determine etcd node health/voter status

@ShylajaDevadiga
Copy link
Contributor

Validated using commit if on k3s version v1.25.16+k3s-c8165989

Display etcd node health/voter status

> kubectl get node $IP -o=jsonpath='Node Name: {.metadata.name}{"\n"}Conditions:{"\n"}{range .status.conditions[*]}- Type: {.type}{"\n"}  Status: {.status}{"\n"}  LastHeartbeatTime: {.lastHeartbeatTime}{"\n"}  LastTransitionTime: {.lastTransitionTime}{"\n"}  Reason: {.reason}{"\n"}  Message: {.message}{"\n\n"}{end}'
Node Name: ip-172-31-5-65
Conditions:
- Type: MemoryPressure
  Status: False
  LastHeartbeatTime: 2023-11-22T21:36:49Z
  LastTransitionTime: 2023-11-22T20:45:55Z
  Reason: KubeletHasSufficientMemory
  Message: kubelet has sufficient memory available

- Type: DiskPressure
  Status: False
  LastHeartbeatTime: 2023-11-22T21:36:49Z
  LastTransitionTime: 2023-11-22T20:45:55Z
  Reason: KubeletHasNoDiskPressure
  Message: kubelet has no disk pressure

- Type: PIDPressure
  Status: False
  LastHeartbeatTime: 2023-11-22T21:36:49Z
  LastTransitionTime: 2023-11-22T20:45:55Z
  Reason: KubeletHasSufficientPID
  Message: kubelet has sufficient PID available

- Type: Ready
  Status: True
  LastHeartbeatTime: 2023-11-22T21:36:49Z
  LastTransitionTime: 2023-11-22T20:45:56Z
  Reason: KubeletReady
  Message: kubelet is posting ready status. AppArmor enabled

- Type: EtcdIsVoter
  Status: True
  LastHeartbeatTime: 2023-11-22T20:46:14Z
  LastTransitionTime: 2023-11-22T20:46:14Z
  Reason: MemberNotLearner
  Message: Node is a voting member of the etcd cluster

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

No branches or pull requests

2 participants