• Что бы вступить в ряды "Принятый кодер" Вам нужно:
    Написать 10 полезных сообщений или тем и Получить 10 симпатий.
    Для того кто не хочет терять время,может пожертвовать средства для поддержки сервеса, и вступить в ряды VIP на месяц, дополнительная информация в лс.

  • Пользаватели которые будут спамить, уходят в бан без предупреждения. Спам сообщения определяется администрацией и модератором.

  • Гость, Что бы Вы хотели увидеть на нашем Форуме? Изложить свои идеи и пожелания по улучшению форума Вы можете поделиться с нами здесь. ----> Перейдите сюда
  • Все пользователи не прошедшие проверку электронной почты будут заблокированы. Все вопросы с разблокировкой обращайтесь по адресу электронной почте : info@guardianelinks.com . Не пришло сообщение о проверке или о сбросе также сообщите нам.

Talk to Your Kubernetes Cluster Using AI

Lomanu4 Оффлайн

Lomanu4

Команда форума
Администратор
Регистрация
1 Мар 2015
Сообщения
1,481
Баллы
155
Today, I explored kubectl-ai, a powerful CLI from Google Cloud that lets you interact with your Kubernetes cluster using natural language, powered by local LLMs like Mistral (via Ollama) or cloud models like Gemini.

Imagine saying things like:

“List all pods in default namespace”
“generate a deployment with 3 nginx replicas”
“debug a pod stuck in CrashLoopBackOff”
“Generate a YAML for a CronJob that runs every 5 minutes”

And your terminal does the work — no YAML guessing, no docs tab-hopping.

How does Kubectl-ai work?

1) You type a natural language prompt like “List all pods in kube-system”.
2) The kubectl-ai CLI sends your prompt to a connected LLM (like Ollama or Gemini).
3) The LLM interprets the request and returns either a plain explanation, a suggested kubectl command, or a tool-call instruction.
4) kubectl-ai processes the response:
If --dry-run is enabled, it just prints the command.
If --enable-tool-use-shim is used, it extracts and runs the command.

5) The actual kubectl command is executed on your active Kubernetes cluster.
6) The cluster returns the result (like pod lists or deployment status).
7) The output is shown in your terminal — just like you ran the command manually.


Пожалуйста Авторизируйтесь или Зарегистрируйтесь для просмотра скрытого текста.



kubectl-ai supports the Model Context Protocol (MCP), the emerging open protocol for AI tool interoperability.

? This means you can:
1) Build structured, agentic workflows
2) Pipe Kubernetes operations into broader AI systems
3) Connect kubectl-ai to MCP clients (e.g., Claude, Amazon Q)

If you’re already building with MCP, this is a killer entry point into AI-assisted DevOps.


Пожалуйста Авторизируйтесь или Зарегистрируйтесь для просмотра скрытого текста.



Try It Yourself
? GitHub:

Пожалуйста Авторизируйтесь или Зарегистрируйтесь для просмотра скрытого текста.


Want to control Kubernetes with natural language?
This is the cleanest, most extensible way to do it — and it works entirely in your terminal.


Пожалуйста Авторизируйтесь или Зарегистрируйтесь для просмотра скрытого текста.

 
Вверх Снизу