kubectl-glogs

module
v0.2.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 23, 2023 License: Apache-2.0

README

glogs kubectl

A kubectl plugin to logging from GCP Cloud Logging.

Quick Start

git clone https://github.com/kitagry/kubectl-glogs.git
cd kubectl-glogs
make bin
cp ./bin/glogs ~/go/bin/kubectl-glogs

Usage

# 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

Directories

Path Synopsis
cmd
pkg

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL