Intelligenza Artificiale LLM e NLP Kubernetes

LLM for Kubernetes with Minikube – Build Your Local Agent

Integrate a local LLM with Kubernetes via Minikube and .NET: create, scale and inspect K8s resources using natural language as interface.

Course description

LLM for Kubernetes: Manage Your Cluster with Natural Language

What if you could tell your Kubernetes cluster "scale the deployment to 3 replicas" instead of remembering the right flag every time? In this course I bring together two advanced worlds — local LLMs with Ollama and Kubernetes with Minikube — to build a .NET agent capable of translating natural language instructions into real K8s commands, executing them and returning the result.

What You'll Learn

  • Configure the prerequisites: Ollama locally and Minikube as a K8s development cluster
  • Create a Minimal API in .NET that acts as a bridge between the LLM and Kubernetes
  • Configure the Ollama service and build specific prompts to generate K8s instructions (pt1 + pt2)
  • Call Ollama from the API, generate kubectl commands and deserialize structured JSON responses
  • Register the Kubernetes service in the .NET DI container for a clean architecture
  • Create Deployments on Minikube through natural language instructions
  • Get the list of active Pods and scale a Deployment with a sentence
  • Retrieve Pod logs directly from Minikube through the LLM agent

An Advanced Project Combining AI and DevOps

This is not a beginner course: it assumes knowledge of .NET, Kubernetes basics and the desire to creatively combine different pieces. The final result is a working agent, not a prototype — something you can extend and use as a foundation for internal tools or real DevOps automation.

Who This Course Is For

Ideal for .NET backend developers and DevOps engineers who want to explore the practical integration of LLMs in real container orchestration scenarios. Requires familiarity with .NET, REST APIs and basic Kubernetes concepts.

Lessons list

Let's lay the project foundations: I'll walk you through the technical prerequisites, installing Ollama locally, and configuring Minikube as a Kubernetes development cluster on your PC — before writing a single line of code.

Guarda lezione

Let's build the .NET Minimal API that will act as the bridge between the LLM and Kubernetes: I'll show you the project structure and how to configure all necessary dependencies to run the AI agent.

Guarda lezione

Let's register the Ollama service in the Minimal API and write the first Kubernetes-specific prompts — teaching the LLM to translate natural language instructions into concrete kubectl commands for the cluster.

Guarda lezione

I'll enrich and refine the Ollama prompts: handling more complex scenarios, structuring clearer requests, and making the agent's behavior more reliable and predictable across different natural language inputs.

Guarda lezione

Let's make the first real call to Ollama to generate Kubernetes instructions: I'll show you how natural language phrases translate into concrete commands that the Minikube cluster can execute.

Guarda lezione

I'll show you how to use JSON Prompting with Ollama to get structured responses from the model and deserialize them into C# objects — a key technique for making agent outputs safe and reliable to use in code.

Guarda lezione

Let's register the Kubernetes service in the .NET DI container: I'll explain why this architectural choice makes the agent modular and easy to extend as we add new orchestration capabilities.

Guarda lezione

Let's get into real orchestration: I'll show you how to create a Deployment on Minikube and retrieve the list of active Pods using a simple natural language instruction passed to the AI agent.

Guarda lezione

Let's see how to scale a Kubernetes Deployment using only natural language: you write the request, the agent interprets it, generates the right command, and executes it on the Minikube cluster automatically.

Guarda lezione

We close the project by fetching Pod logs from Minikube through our LLM agent: a natural language request translates into a kubectl logs command executed directly on the cluster — no terminal required.

Guarda lezione
Giovanni Pace

Giovanni Pace

Ingegnere Informatico · Pratola Peligna

  • 107 Courses
About the teacher

Sono un ingegnere informatico con oltre 15 anni di esperienza nel settore ICT. Mi occupo di sviluppo software, cybersecurity, data science e intelligenza artificiale, con particolare attenzione all’innovazione e all’automazione dei processi aziendali. Da anni svolgo anche attività di docenza e formazione, creando percorsi pratici e coinvolgenti su programmazione, DevOps, AI e sicurezza informatica.

This course includes

  • Lessons 10
  • Duration 1h 59m
  • Difficulty advanced
  • Language it
  • Certificate No

Recently viewed