Deploying applications on Kubernetes (K8s) often requires writing and maintaining complex manifests that accurately reflect the application’s architecture and requirements. This task requires significant expertise, time, and effort, especially for heterogeneous architectures composed of multiple microservices, interdependencies, and configuration options. In recent years, Large Language Models (LLMs) have been proposed to automate cloud application lifecycle phases, including manifest generation. However, obtaining accurate manifests requires specific domain knowledge about both the application and K8s concepts, which can be difficult to convey to LLMs effectively. Attempting to address this by feeding the entire codebase quickly exceeds the model’s context window, while using simple natural language instructions often leads to incorrect or incomplete manifests. Filling this gap, we present a novel pipeline that leverages structured metadata to guide LLMs in generating accurate and deployable K8s manifests. Our approach directly scans application repositories, deterministically extracting metadata about each microservice and its dependencies. This information is structured into an Intermediate Representation (IR), a concise summary of the application’s architecture and requirements, which is then used to prompt LLMs for manifest generation. We evaluate our pipeline on a dataset of 40 microservice architectures, demonstrating significant improvements in deployment success rates: from 15% with direct prompting to 47.5% with IR guidance, and up to 62.5% when incorporating minor manual overrides. While the results highlight the effectiveness of structured metadata in enhancing LLMs’ performance, they also underscore the need for human guidance when dealing with complex and heterogeneous scenarios.

From Source Code to Kubernetes Manifests: Guiding LLMs with Structured Metadata / Franzil, M., Sosa, U.E., Siracusa, D.. - ELETTRONICO. - (2026), pp. 1-7. (GAIN 2026 Roma 18/05/2026) [10.1109/noms69089.2026.11668116].

From Source Code to Kubernetes Manifests: Guiding LLMs with Structured Metadata

Franzil, Matteo
Primo
;
Siracusa, Domenico
Ultimo
2026-01-01

Abstract

Deploying applications on Kubernetes (K8s) often requires writing and maintaining complex manifests that accurately reflect the application’s architecture and requirements. This task requires significant expertise, time, and effort, especially for heterogeneous architectures composed of multiple microservices, interdependencies, and configuration options. In recent years, Large Language Models (LLMs) have been proposed to automate cloud application lifecycle phases, including manifest generation. However, obtaining accurate manifests requires specific domain knowledge about both the application and K8s concepts, which can be difficult to convey to LLMs effectively. Attempting to address this by feeding the entire codebase quickly exceeds the model’s context window, while using simple natural language instructions often leads to incorrect or incomplete manifests. Filling this gap, we present a novel pipeline that leverages structured metadata to guide LLMs in generating accurate and deployable K8s manifests. Our approach directly scans application repositories, deterministically extracting metadata about each microservice and its dependencies. This information is structured into an Intermediate Representation (IR), a concise summary of the application’s architecture and requirements, which is then used to prompt LLMs for manifest generation. We evaluate our pipeline on a dataset of 40 microservice architectures, demonstrating significant improvements in deployment success rates: from 15% with direct prompting to 47.5% with IR guidance, and up to 62.5% when incorporating minor manual overrides. While the results highlight the effectiveness of structured metadata in enhancing LLMs’ performance, they also underscore the need for human guidance when dealing with complex and heterogeneous scenarios.
2026
Proceedings of the NOMS 2026 IEEE Network Operations and Management Symposium
10662 LOS VAQUEROS CIRCLE, PO BOX 3014, LOS ALAMITOS, CA 90720-1264 USA
IEEE COMPUTER SOCIETY
Franzil, Matteo; Sosa, Ulises Emiliano; Siracusa, Domenico
From Source Code to Kubernetes Manifests: Guiding LLMs with Structured Metadata / Franzil, M., Sosa, U.E., Siracusa, D.. - ELETTRONICO. - (2026), pp. 1-7. (GAIN 2026 Roma 18/05/2026) [10.1109/noms69089.2026.11668116].
File in questo prodotto:
Non ci sono file associati a questo prodotto.

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/11572/500150
 Attenzione

Attenzione! I dati visualizzati non sono stati sottoposti a validazione da parte dell'ateneo

Citazioni
  • ???jsp.display-item.citation.pmc??? ND
  • Scopus ND
  • ???jsp.display-item.citation.isi??? ND
  • OpenAlex ND
social impact