https://github.com/ladicle/kubectl-check
Check kubernetes resources.
https://github.com/ladicle/kubectl-check
deployment hacktoberfest kubectl-plugin kubernetes
Last synced: 3 months ago
JSON representation
Check kubernetes resources.
- Host: GitHub
- URL: https://github.com/ladicle/kubectl-check
- Owner: Ladicle
- License: mit
- Created: 2020-09-24T07:28:06.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2025-04-24T01:23:52.000Z (11 months ago)
- Last Synced: 2025-05-04T00:32:12.652Z (11 months ago)
- Topics: deployment, hacktoberfest, kubectl-plugin, kubernetes
- Language: Go
- Homepage:
- Size: 75.2 KB
- Stars: 4
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
- License: LICENSE
Awesome Lists containing this project
README
# kubectl-check
`kubectl-check` is a kubectl plugin that checks Kubernetes resources.
Currently it supports deployment, daemonset and statefulset.
## Installation
```bash
$ brew install Ladicle/brew/kubectl-check
```
## Usage
```bash
$ kubectl check -h
Check Kubernetes resource status
Usage:
kubectl check [flags...]
Resources:
- daemonset, ds
- deployment, deploy, dp
- statefulset, sts
Flags:
--version Version for check
--options Show full options of this command
-h, --help Show this message
-R, --color Enable color output even if stdout is not a terminal
Use "kubectl check --options" for full information about global flags.
Use "kubectl check --help" for more information about each resource.
```
## Getting Started
```bash
$ kubectl create deployment hello --image=not/found
deployment.apps/hello created
$ kubectl check deploy hello
Deployment "default/hello" is not available (0/1):
[ErrImagePull] Pod/hello-7d8df5b78-5zj6x/Container{found}: rpc error: code = Unknown desc = Error response from daemon: pull access denied for not/found, repository does not exist or may require 'docker login': denied: requested access to the resource is denied (restarted x0)
Reason Age From Object Message
------ ---- ---- ------ -------
Failed 4s kubelet, worker2 Pod/hello-7d8df5b78-5zj6x/spec.containers{found} Failed to pull image "not/found": rpc error: code = Unknown desc = Error response from daemon: pull access denied for not/found, repository does not exist or may require 'docker login': denied: requested access to the resource is denied
Failed 4s kubelet, worker2 Pod/hello-7d8df5b78-5zj6x/spec.containers{found} Error: ErrImagePull
Failed 4s kubelet, worker2 Pod/hello-7d8df5b78-5zj6x/spec.containers{found} Error: ImagePullBackOff
```