Vol. 4 No. 1 (2024): Hong Kong Journal of AI and Medicine
Articles

Automating Multi-Cluster Kubernetes Deployments with Terraform

Venkata Ramana Gudelli
Independent Researcher, Brambleton, VA, USA
Cover

Published 06-03-2024

Keywords

  • Kubernetes,
  • Terraform,
  • Infrastructure as Code,
  • multi-cluster

Abstract

The increasing complexity of distributed systems and the widespread adoption of Kubernetes have necessitated scalable, consistent, and automated deployment strategies across multi-cluster environments. This paper explores the application of Terraform, an Infrastructure as Code (IaC) tool, in orchestrating automated multi-cluster Kubernetes deployments. Leveraging Terraform's modularity, state management, and provider ecosystem, the study demonstrates how infrastructure provisioning, resource abstraction, and environment consistency can be achieved across heterogeneous clusters. Emphasis is placed on security, scalability, and idempotent workflows, with an evaluation of patterns such as workspace isolation, dynamic provider configuration, and GitOps integration. The paper also discusses the challenges of managing lifecycle operations and cross-cluster dependencies in declarative infrastructure contexts. Drawing on practices up to March 2024, this research contributes to operational resilience and DevOps efficiency in cloud-native deployments.

Downloads

Download data is not yet available.

References

  1. Mfula, H., Ylä-Jääski, A., & Nurminen, J. K. (2021, August). Seamless kubernetes cluster management in multi-cloud and edge 5g applications. In International Conference on High Performance Computing & Simulation.
  2. Saleh, Aly, and Murat Karslioglu. Kubernetes in Production Best Practices: Build and manage highly available production-ready Kubernetes clusters. Packt Publishing Ltd, 2021.
  3. Lindén, Oskar. "Cross region cloud redundancy: A comparison of a single-region and a multi-region approach." (2023).
  4. Boroufar, Amir. Software Delivery in Multi-Cloud Architecture. Diss. Politecnico di Torino, 2020.
  5. Yadav, Parth, and Vipin Kumar Rathi. "Kupenstack: Kubernetes based cloud native openstack." arXiv preprint arXiv:2106.02956 (2021).
  6. Buchner, Patrick. "From the Cloud to the Edge: An Infrastructure for Cloud & Edge Computing/submitted by Patrick Buchner, BSc." (2019).
  7. Sayfan, Gigi. Mastering Kubernetes: Dive into Kubernetes and learn how to create and operate world-class cloud-native systems. Packt Publishing Ltd, 2023.
  8. Rai, Anand. Bootstrapping Service Mesh Implementations with Istio: Build reliable, scalable, and secure microservices on Kubernetes with Service Mesh. Packt Publishing Ltd, 2023.
  9. Truyen, E., H. Xie, and W. Joosen. "Vendor-Agnostic Reconfiguration of Kubernetes Clusters in Cloud Federations. Preprints 2022, 1, 0." Software: Practice and Experience, 2014,
  10. Dina, Laurent, Lukas Schlunegger, and Marc Eberhard. Cloud Native Intent Automation. Diss. OST Ostschweizer Fachhochschule, 2023.
  11. Gosein, Domenic. IT Architecture Design of a Future Data Analysis System for Particle Physics at CERN. Diss. Mannheim University of Applied Sciences (DE), 2023.
  12. Moravcik, Marek, et al. "Kubernetes-evolution of virtualization." 2022 20th International Conference on Emerging eLearning Technologies and Applications (ICETA). IEEE, 2022.
  13. Paavola, Esa. "Managing Multiple Applications on Kubernetes Using GitOps Principles." (2021)