How abitvolatile/tf-live-devops-toolchain works
Main Components of the System
• Container Build & Execution: Represent the Docker image built using the Dockerfile. Include the docker-entrypoint.sh and functions.sh as integral scripts that bootstrap and run the Terraform commands.
• Terraform Environment: Show the “environment” directory that contains Terraform configuration files (composition.tf and environment.auto.tfvars) along with the .terraform-version file. This is the core module that defines the deployment for Google Cloud resources.
• Google Cloud Platform (GCP) Resources: List out the major resources provisioned (GCE instance groups/VMs, GKE clusters, VPC, networking components, firewall rules, load balancers, etc.) as outlined in the README.
• Auxiliary Tools & Services: Highlight third-party/official artifacts such as Jenkins (via Docker), Spinnaker (via Helm), and Prometheus & its related services (via custom Helm charts).
Relationships and Interactions
• External integrations, such as triggering provisioning via the docker-entrypoint.sh and functions.sh scripts, which abstract the terraform execution (including tf_destroy for cleanup).
Architectural Patterns and Design Principles
• Infrastructure-as-Code: Clearly denote that Terraform is the primary orchestration engine.
• Immutable Infrastructure & Single Build Image: Highlight that the container image (built with all OS patches, Docker-CE, and required tooling) remains consistent across deployment environments.
• Separation of Concerns: Clearly separate provisioning logic (Terraform configurations) from container execution and external cloud service configurations.
Relevant Technologies and Tools
• Containerization: Docker, Dockerfile, docker-entrypoint.sh, functions.sh.
• Configuration Management: Terraform (with its .tfvars and .tf versions) and Packer (for the machine image templates).
• Cloud Resources: Various GCP services (GCE, GKE, networking, IAM etc.) as described in the README.
• Third-Party Tools: Jenkins, Spinnaker, Prometheus ecosystem tools (Prometheus TSDB, AlertManager, Grafana, etc.), and Helm charts.
Essential Details
• All Main Components: Docker container (built from Dockerfile), Terraform configuration (in the environment directory), and the various cloud resources.
• Dependencies: Indicate prerequisites like Google Cloud credentials and Terraform Cloud configurations.
• Annotations: Include notes for critical scripts (docker-entrypoint.sh, functions.sh) and their roles in the overall deployment process.