Company
Date Published
Author
Vaibhav Khurana
Word count
822
Language
English
Hacker News points
None

Summary

Kong Gateway has become a prominent solution for managing API traffic in microservices architectures, offering both open-source and enterprise support, with user-friendly features. However, configuring it via the Kong Admin API can be error-prone due to the need for multiple curl calls, especially in environments managed by multiple users. A recommended approach is to adopt the GitOps model by storing all configurations in a version control system (VCS) and using a pull request (PR) model to implement changes, thereby simplifying management and enhancing auditability. By integrating GitOps with Terraform as Infrastructure as Code (IAC), users gain advantages like state locking to prevent simultaneous changes, clear change tracking, and efficient error rectification. The article provides a demonstration of configuring Kong using Terraform, detailing steps such as initializing the backend, planning and applying configurations, and verifying changes. Additionally, it suggests using Atlantis to automate Terraform plans and applications in a larger team setting, ensuring that all changes are tracked, audited, and visible as part of a PR-driven workflow.