This repository contains the Terraform configuration script for deploying the Infrasity application on Azure Kubernetes Service (AKS) using Terraform and Azure resources. Terraform offers a robust infrastructure-as-code solution, while AKS provides a managed Kubernetes cluster, ensuring scalability and reliability. This README will guide you through the deployment process.
- Terraform installed.
- Azure CLI and an Azure account.
- Basic knowledge of Terraform and Kubernetes.
- Terrateam installed.
git clone https://github.com/ScaleupInfra/terrateam-azure.git
terraform init
Modify the main.tf file to configure your deployment according to your requirements. You may need to adjust your backend settings.
terraform plan
terraform apply
After the deployment is complete, Terraform will output the kubeconfig information. Save this information securely, as it will be needed to interact with your AKS cluster.
git add .
git commit -m "all files"
git push origin main
You can change repo and it's branch according to your configurations.
git checkout -b terrateam-setups
Do some changes to your branch and push it to the GitHub
git add .
git commit -m "changes made"
git push origin terrateam-setups
You can raise a pull request from you GitHub UI or install GitHub CLI to your local and run the following command to raise a pull request
gh pr create --fill
Checkout your PR request, on successful plan, comment terrateam apply
on PR to apply changes in your Azure account.
To access the AKS cluster using kubectl, use the kubeconfig provided during the Terraform apply step:
kubectl --kubeconfig=<path-to-kubeconfig> get pods
Replace <path-to-kubeconfig>
with the actual path to your kubeconfig file.
terraform destroy
If you encounter any issues or have questions, please refer to the Terraform documentation and Azure Kubernetes Service documentation, or feel free to open an issue in this repository.
Happy deploying!