Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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 4 years ago)
- Default Branch: master
- Last Pushed: 2020-12-05T13:19:28.000Z (about 4 years ago)
- Last Synced: 2024-06-21T02:05:01.649Z (8 months ago)
- Topics: deployment, hacktoberfest, kubectl-plugin, kubernetes
- Language: Go
- Homepage:
- Size: 103 KB
- Stars: 4
- Watchers: 3
- 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 statusUsage:
kubectl check [flags...]Resources:
- daemonset, ds
- deployment, deploy, dp
- statefulset, stsFlags:
--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 terminalUse "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
```