Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/kitagry/kubectl-glogs
Cloud logging CLI
https://github.com/kitagry/kubectl-glogs
Last synced: 2 months ago
JSON representation
Cloud logging CLI
- Host: GitHub
- URL: https://github.com/kitagry/kubectl-glogs
- Owner: kitagry
- License: apache-2.0
- Created: 2022-10-15T02:57:21.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2023-06-30T04:08:57.000Z (over 1 year ago)
- Last Synced: 2024-06-19T20:52:05.414Z (7 months ago)
- Language: Go
- Homepage:
- Size: 171 KB
- Stars: 5
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# glogs kubectl
A `kubectl` plugin to logging from [GCP Cloud Logging](https://cloud.google.com/logging).
## Quick Start
```bash
git clone https://github.com/kitagry/kubectl-glogs.git
cd kubectl-glogs
make bin
cp ./bin/glogs ~/go/bin/kubectl-glogs
```## Usage
```bash
# Change context to your GKE cluster
kubectl ctx# Change namespace in which you want to see logs.
kubectl ns# All logs in the namespace
kubectl glogs# Look at specified logs
kubectl glogs cronjob CRONJOB_NAME
kubectl glogs deploy DEPLOYMENT_NAME
kubectl glogs jobs JOB_NAME# Open browser
kubectl glogs --web cronjob CRONJOB_NAME
```## TODO
- [ ] krew setting