Secure Kubernetes Workload Deployment with Automated Enforcement of Cluster-Defined Policies
Scheduling pods on separate physical nodes is a crucial strategy to isolate workloads with incompatible security requirements. In Kubernetes, this is enforced using metadata such as node selectors, affinity rules, and topology spread constraints, all manually defined by developers at resource creation. The aforementioned process is complex and prone to errors, frequently resulting in misconfigurations that expose systems to data breaches and regulatory violations. This paper proposes an approach to constrain scheduling using policies defined once at the cluster level and automatically evaluated by Kubernetes during each workload deployment. The advantages are (i) automatic rejection of uncompliant resource creation requests, (ii) streamlined support for executing multi-tenant workloads, and (iii) secure scheduling and deployment of workloads based on security requirements. To implement this solution, we integrate the native Kubernetes node-filtering capabilities with OPA Gatekeeper for policy enforcement. We demonstrate how this approach reliably enforces common corporate governance policies and analyze its performance advantage over isolation achieved solely through sandboxing. The experimental evaluation confirms the effectiveness of our proposal and the minimal overhead.
Authors
- Michele Beretta (ORCID: https://orcid.org/0009-0003-4026-8589)
- Stefano Paraboschi (ORCID: https://orcid.org/0000-0003-0399-1738)
- Dario Facchinetti (ORCID: https://orcid.org/0000-0001-7534-6055)
- Matthew Rossi (ORCID: https://orcid.org/0000-0001-6459-0810)
Institutions
- University of Bergamo (IT)
Publication Details
- Published
- 2025-11-14
- DOI
- https://doi.org/10.1109/cloudcom67567.2025.11331483
- Primary Topic
- Distributed and Parallel Computing Systems
- Type
- article
- Field-Weighted Citation Impact
- 0.00