Terraform scripts for provisioning AKS clusters and deploying a HelloWorld app.
This project contains Terraform scripts to provision an Azure Kubernetes Service (AKS) cluster, along with GitHub Actions pipelines for CI/CD and Kubernetes manifests for deploying applications to the AKS cluster.
tf-az-aks-poc/
: Contains Terraform scripts for provisioning the AKS cluster.k8s/
: Contains Kubernetes manifests for deploying applications to the AKS cluster.tf-cicd.yaml
: GitHub Actions pipeline for Terraform CI/CD.aks-cicd.yaml
: GitHub Actions pipeline for AKS CI/CD.- Other files and directories for additional code (e.g., backup, ACR, AKS extensions). They are under
aks/
,aks-acr/
,aks-backup/
folders for future enhancement.
-
Clone the repository:
git clone <repository_url>
-
Navigate to the project directory:
cd <project_directory>
-
Set up required credentials and configurations (e.g., Azure credentials).
-
Run the Terraform scripts to provision the AKS cluster:
cd ./ terraform init terraform plan terraform apply
-
Deploy applications to the AKS cluster using Kubernetes manifests:
kubectl apply -f k8s/
terraform-cicd.yaml
: CI/CD pipeline for Terraform scripts.aks-cicd.yaml
: CI/CD pipeline for AKS deployment.
- Additional code (e.g., backup scripts, Azure Container Registry configurations, AKS extensions) can be found in the repository and integrated into the CI/CD pipelines as needed.