ktalk

command module
v0.0.0-...-32af826 Latest Latest
Warning

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

Go to latest
Published: Apr 22, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

README

ktalk

ktalk is kubectl plugin designed to convert natural language to a kubectl command via ChatGPT.

With an input of a natural language command, such as "give me a list of containers in kube-system namespace", ktalk translates this intent into a kubectl command such as kubectl get pods -n kube-system -o jsonpath='{.items[*].spec.containers[*].name}'

Usage

kubectl ktalk

Example:

kubectl ktalk give me the number of containers in the clusters that are running as root

Are you sure want to execute the following command? Press Enter to execute this: kubectl get pods --all-namespaces -o jsonpath='{..securityContext.privileged}' | grep -o "true" | wc -l

Setup

Export OPENAI_API_KEY in your environment.

Build the plugin: go build -o kubectl-ktalk

Copy the plugin to bin: cp kubectl-ktalk /usr/local/bin

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