OpenViSTAI · Agents · Blockchain · Crypto
Menu
AI Developer Tools & SDKs

Kubectl AI

Kubectl AI is a Go-based kubectl plugin that uses OpenAI GPT or an OpenAI API-compatible endpoint to generate Kubernetes manifests and apply them to a configured Kubernetes environment.

Independent OpenViST project profile, based on linked sources.

Kubectl AI — Development and testing workflows that need quickly drafted Kubernetes YAML
OpenViST project illustration. See the linked sources for product details.
Understand the project

Practical overview

When it fits

Use it when working from a valid Kubernetes configuration and you want an LLM to draft or modify manifests, with a confirmation step before application by default.

Who it is for

  • Kubernetes developers who want to draft resource manifests from natural-language requests.
  • Developers who want to refine, save, pipe, or apply generated YAML during development and testing.

Documented uses

  • Generate a manifest for a requested Kubernetes resource, such as a deployment with specified replicas.
  • Refine an existing manifest through a natural-language change request.
  • Review generated YAML before applying it, or route raw output to a file, editor, or another command.
Before you choose

Requirements & limits

The repository is public and MIT-licensed. The README lists Homebrew, Krew, and GitHub release binaries as installation options.

  • A valid Kubernetes configuration and one of the documented model connections are required.
  • The documented connections are OpenAI, Azure OpenAI, and OpenAI API-compatible endpoints.
  • Application confirmation defaults to enabled and can be controlled with a flag or environment variable.
  • Kubernetes OpenAPI-based generation is optional, uses more OpenAI API calls, and requires function calling on model versions 0613 or later.

Check current requirements in the official documentation. Source-based guidance does not mean OpenViST has run or independently tested this project.

Source-based practical guide

Install Kubectl AI through Homebrew

Add the project's Homebrew tap and install the kubectl-ai binary.

Before you start

  • Homebrew

Steps

  1. Add the sozercan/kubectl-ai tap using the repository URL.

  2. Install the kubectl-ai package with Homebrew.

Expected outcome

The kubectl-ai binary is installed through Homebrew.

Guide limitations

  • This guide covers installation only; using the tool additionally requires a valid Kubernetes configuration and a supported model connection.
Source-based practical guide

Configure an OpenAI-compatible endpoint

Set the environment variables that Kubectl AI uses to connect to an OpenAI-compatible service.

Before you start

  • A valid Kubernetes configuration.
  • An OpenAI-compatible endpoint and its API key or key value.

Steps

  1. Set OPENAI_ENDPOINT to the endpoint URL.

  2. Set OPENAI_DEPLOYMENT_NAME to the deployment or model name.

  3. Set OPENAI_API_KEY to the endpoint's API key value.

Expected outcome

Kubectl AI is configured to use the specified endpoint instead of the default OpenAI API.

Guide limitations

  • This guide configures the connection but does not cover endpoint installation or manifest generation.
  • For Azure OpenAI deployments whose deployment name differs from the model name, the README documents AZURE_OPENAI_MAP as an additional mapping option.
Evidence and transparency

Sources & review

Source record details
Source availability
Active
Sources checked
4 November 2026
Original website title
sozercan/kubectl-ai · Official homepage title · retained in its source language