Help us shape the future of Go! Take the 2026 Go Developer Survey

gk

command module
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Apr 20, 2026 License: MIT Imports: 1 Imported by: 0

README

gk — kubectl and gcloud wrapper

A lightweight interactive CLI for switching Kubernetes contexts, namespaces, and GCP projects without memorising kubectl and gcloud commands.

Prerequisites

  • kubectl — required for all operations
  • gcloud — optional, only needed for --project and --config

Installation

go install github.com/zaikinlv/gk@latest

Or build from source:

git clone https://github.com/zaikinlv/gk
cd gk
go install .

Usage

Command Description
gk Interactive context picker (default — same as gk -k)
gk version Print current version
gk -k / gk --context Interactively pick a kubeconfig context
gk -p / gk --project Interactively pick and set the active GCP project
gk -c / gk --config Pick a GCP project and cluster, import credentials into local kubeconfig
gk -d / gk --clean Remove all clusters and contexts from local kubeconfig (except minikube)
gk -i / gk --info Print current context, namespace, GCP project, and kubectl/gcloud versions
gk -n / gk --pick-namespace Interactively pick a namespace for the current context
gk -N <name> / gk --namespace=<name> Set a namespace directly for the current context

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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