Kubervigil is a command-line tool for analyzing the health of Kubernetes resources ,API endpoints and API versions in a given namespace. It provides detailed health reports for different Kubernetes resources and checks the status of API endpoints.
To install Kubervigil, follow these steps:
- Clone the repository:
git clone https://github.com/Parthiba-Hazra/kubervigil.git
Change to the project directory:
cd kubervigil
Build the project:
go build
Move the binary to a directory in your system's PATH:
go install
To use Kubervigil, you need to have a valid kubeconfig file with access to your Kubernetes cluster.
kubervigil check [command]
Check preferred api-versions for all resources.
kubervigil check recomapiv
NOTE: Providing kubeconfig path or namespace is optional if you dont provide config path it will try to get path from ~/.kube/config, and if you dont provide any namespace it will autometically serlect the default namespace.
Check preferred api-version and current api version are same or not for all resources.
kubervigil check compareapiv
Check current api version for all resources.
kubervigil check currentapiv
Check the preferred Kubernetes API versions for resources in a given namespace.
kubervigil check api --config=<path/to/kubeconfig> --ns=<namespace>
Analyze the health of Pods in a given namespace.
kubervigil check pods --config=<path/to/kubeconfig> --ns=<namespace>
Analyze the health of Services in a given namespace.
kubervigil check services --config=<path/to/kubeconfig> --ns=<namespace>
Analyze the health of Deployments in a given namespace.
kubervigil check deployments --config=<path/to/kubeconfig> --ns=<namespace>
Analyze the health of DaemonSets in a given namespace.
kubervigil check daemonsets --config=<path/to/kubeconfig> --ns=<namespace>
Analyze the health of Statefulsets in a given namespace.
kubervigil check statefulsets --config=<path/to/kubeconfig> --ns=<namespace>
Analyze the health of ConfigMaps in a given namespace.
kubervigil check configmaps --config=<path/to/kubeconfig> --ns=<namespace>
Analyze the health of Ingress resources in a given namespace.
kubervigil check ingress --config=<path/to/kubeconfig> --ns=<namespace>
We will be add more helath analysis features. Feel free to contribute..