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

Feature Request: eksctl validate cluster #587

Closed
StevenACoffman opened this issue Feb 27, 2019 · 7 comments
Closed

Feature Request: eksctl validate cluster #587

StevenACoffman opened this issue Feb 27, 2019 · 7 comments
Labels
area/general-cli kind/feature New feature or request priority/backlog Not staffed at the moment. Help wanted. stale

Comments

@StevenACoffman
Copy link
Contributor

StevenACoffman commented Feb 27, 2019

Currently, Kops will validate a cluster and aid troubleshooting and it would be nice if eksctl provided similar functionality for EKS. It's possible we could borrow some of their code even.

Synopsis

This commands validates the following components:

  1. All k8s masters are running and have "Ready" status. [ Not applicable ]
  2. All k8s nodes are running and have "Ready" status.
  3. Component status returns healthy for all components.
  4. All pods in the kube-system namespace are running and healthy.
kops validate cluster [flags]

Syntax

  # Validate a cluster.
  # This command uses the currently selected kops cluster as
  # set by the kubectl config.
  kops validate cluster

Options

  -h, --help            help for cluster
  -o, --output string   Output format. One of json|yaml|table. (default "table")

Example

$ kops validate cluster --state s3://operations.foo.bar
Using cluster from kubectl context: kubernetes.foo.bar

Validating cluster kubernetes.edge.aworks.us

INSTANCE GROUPS
NAME			ROLE	MACHINETYPE	MIN	MAX	SUBNETS
master-us-east-1b	Master	t2.medium	1	1	us-east-1b
master-us-east-1c	Master	t2.medium	1	1	us-east-1c
master-us-east-1d	Master	t2.medium	1	1	us-east-1d
nodes			Node	t2.medium	2	2	us-east-1b,us-east-1c,us-east-1d,us-east-1e

NODE STATUS
NAME	ROLE	READY

VALIDATION ERRORS
KIND	NAME			MESSAGE
Machine	i-00c6a0621a5d8cb27	machine "i-00c6a0621a5d8cb27" has not yet joined cluster
Machine	i-083789489a702bc52	machine "i-083789489a702bc52" has not yet joined cluster
Machine	i-087baaf52f370f95f	machine "i-087baaf52f370f95f" has not yet joined cluster
Machine	i-0b8fd5008e3e11d58	machine "i-0b8fd5008e3e11d58" has not yet joined cluster
Machine	i-0db4c6b21240085fe	machine "i-0db4c6b21240085fe" has not yet joined cluster

Validation Failed
@StevenACoffman StevenACoffman changed the title eks validate cluster Feature Request: eks validate cluster Feb 27, 2019
@StevenACoffman StevenACoffman changed the title Feature Request: eks validate cluster Feature Request: eksctl validate cluster Feb 27, 2019
@errordeveloper
Copy link
Contributor

errordeveloper commented Mar 1, 2019

Thanks for bringing this up, I thought there was an old issue for this, but cannot find it now (maybe it was a TODO comment or something). I think it's a great idea, and 'machine not joined yet' could be of use for sure. I think this become especially important in the context of upgrades and #539.

@errordeveloper
Copy link
Contributor

I believe that #642 will help with this a lot. We might provide this is a part of eksctl get, but we will see how it goes. Additionally to config validation, I think functional tests would be nice also, we can leverage some of the same tests we use in the integration test suite.

@errordeveloper
Copy link
Contributor

Old umbrella issue that was meant to cover this is #155.

@martina-if martina-if added the priority/backlog Not staffed at the moment. Help wanted. label Sep 11, 2020
@github-actions
Copy link
Contributor

This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 5 days.

@github-actions github-actions bot added the stale label Jan 27, 2021
@StevenACoffman
Copy link
Contributor Author

Still an issue.

@github-actions github-actions bot removed the stale label Jan 28, 2021
@github-actions
Copy link
Contributor

This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 5 days.

@github-actions github-actions bot added the stale label Feb 28, 2021
@github-actions
Copy link
Contributor

github-actions bot commented Mar 5, 2021

This issue was closed because it has been stalled for 5 days with no activity.

@github-actions github-actions bot closed this as completed Mar 5, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/general-cli kind/feature New feature or request priority/backlog Not staffed at the moment. Help wanted. stale
Projects
None yet
Development

No branches or pull requests

3 participants