All apps/kubectl

kubectl

kubectl

The Kubernetes command line tool, pointed at whichever cluster its kubeconfig context names.

Runs as kubectl|macOS, Linux, Windows|kubernetes.io

Command form

ai-draft · 2 tasks · 14 fields

Common read-only jobs: get resources and read pod logs. Cluster-changing commands are left out.

Opens the form; the finished command lands at your prompt, unrun
otty gui kubectl
kubectlExample values, fixed in this page — nothing here reaches a terminal
Basic
Namespace
string
ParametersOnly these flags are editable in the form
Namespace
string
-n--namespace

kubectl get

Get resources

List or fetch resources. Watch, templates and raw requests are left out.

Get resourcesExample values, fixed in this page — nothing here reaches a terminal
Basic
Resource type or TYPE/NAME*
string
Output format
string
All namespaces
-A
TasksEach one presets the form for one job
List across namespaces
resourceall_namespacesoutput
ParametersOnly these flags are editable in the form
Resource type or TYPE/NAME
string · positional 0
podsdeploymentsservicesnodesnamespaces
Output format
string
-o--outputwideyamljsonname
Label selector
string
-l--selector
All namespaces
boolean
-A--all-namespaces
Show labels
boolean
--show-labels
Watch for changes
boolean
-w--watch

kubectl logs

Read pod logs
Read pod logsExample values, fixed in this page — nothing here reaches a terminal
Basic
Pod or TYPE/NAME*
string
Container
string
Follow
-f
Last N lines
100integer
TasksEach one presets the form for one job
Follow recent logs
targetfollowtailcontainer
ParametersOnly these flags are editable in the form
Pod or TYPE/NAME
string · positional 0
Container
string
-c--container
Follow
boolean
-f--follow
Last N lines
integer
--tail
Since (5s, 2m, 3h)
string
--since
Previous container instance
boolean
-p--previous
Timestamps
boolean
--timestamps
SourcesEvery flag above is checked against these
fig
completion

github.com

fig
completion

github.com

fig
completion

github.com

Before it fills your prompt, Otty checks the installed kubectl against its version. A form that does not match your version is not offered.