The widespread adoption of cloud computing technologies enabled notable consolidation of computational resources, with Kubernetes (K8s) as the default open-source container orchestration platform that automates application management. Since properly configuring K8s requires writing manifest files, i.e., YAML-structured files that define the containerized environment, the advent of Large Language Models (LLMs) can automate this process by relaxing user input to an intent expressed in natural language. However, fine-tuning an LLM poses unique challenges and reveals gaps in domainspecific knowledge, as the generated output must be both semantically and syntactically correct, and the area lacks a high-quality dataset. To address these challenges, we propose BRAT, a pipeline that generates K8s manifests from user-defined intents using a fine-tuned LLM. First, we created a dataset of intent-K8s pairs, leveraging advanced LLM and applying n-shot learning. The adoption of those models revealed that different models require personalized prompting, increasing costs by up to 66%. Then, leveraging the newly created dataset, we fine-tuned Granite-3B, chosen for its lightweight capabilities, to generate accurate manifest files, resulting in an average improvement of 110% over the baseline.

BRAT: An Intent-to-Kubernetes Translation via LLM Fine-Tuning / Angi, A., Nedoshivina, L., Sacco, A., Braghin, S., Purcell, M.. - (2026), pp. 1-6. (27th IEEE International Conference on High Performance Switching and Routing, HPSR 2026 Montreal, QC, Canada 17-19 June 2026) [10.1109/HPSR68369.2026.11615170].

BRAT: An Intent-to-Kubernetes Translation via LLM Fine-Tuning

Angi A.;Sacco A.;
2026

Abstract

The widespread adoption of cloud computing technologies enabled notable consolidation of computational resources, with Kubernetes (K8s) as the default open-source container orchestration platform that automates application management. Since properly configuring K8s requires writing manifest files, i.e., YAML-structured files that define the containerized environment, the advent of Large Language Models (LLMs) can automate this process by relaxing user input to an intent expressed in natural language. However, fine-tuning an LLM poses unique challenges and reveals gaps in domainspecific knowledge, as the generated output must be both semantically and syntactically correct, and the area lacks a high-quality dataset. To address these challenges, we propose BRAT, a pipeline that generates K8s manifests from user-defined intents using a fine-tuned LLM. First, we created a dataset of intent-K8s pairs, leveraging advanced LLM and applying n-shot learning. The adoption of those models revealed that different models require personalized prompting, increasing costs by up to 66%. Then, leveraging the newly created dataset, we fine-tuned Granite-3B, chosen for its lightweight capabilities, to generate accurate manifest files, resulting in an average improvement of 110% over the baseline.
2026
979-8-3315-7596-0
File in questo prodotto:
File Dimensione Formato  
BRAT_An_Intent-to-Kubernetes_Translation_via_LLM_Fine-Tuning.pdf

accesso riservato

Tipologia: 2a Post-print versione editoriale / Version of Record
Licenza: Non Pubblico - Accesso privato/ristretto
Dimensione 350.39 kB
Formato Adobe PDF
350.39 kB Adobe PDF   Visualizza/Apri   Richiedi una copia
BRAT_2026.pdf

accesso aperto

Tipologia: 2. Post-print / Author's Accepted Manuscript
Licenza: Pubblico - Tutti i diritti riservati
Dimensione 267.45 kB
Formato Adobe PDF
267.45 kB Adobe PDF Visualizza/Apri
Pubblicazioni consigliate

I documenti in IRIS sono protetti da copyright e tutti i diritti sono riservati, salvo diversa indicazione.

Utilizza questo identificativo per citare o creare un link a questo documento: https://hdl.handle.net/11583/3014709