{"id":19886070,"url":"https://github.com/rishabkumar7/aks-terraform-starter","last_synced_at":"2025-05-02T16:31:49.421Z","repository":{"id":221463324,"uuid":"754445525","full_name":"rishabkumar7/aks-terraform-starter","owner":"rishabkumar7","description":"A k8s starter project to launch AKS cluster in Azure using Terraform.","archived":false,"fork":false,"pushed_at":"2024-02-12T19:52:01.000Z","size":10,"stargazers_count":3,"open_issues_count":0,"forks_count":2,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-04-07T03:34:44.574Z","etag":null,"topics":["aks","kubernetes","terraform"],"latest_commit_sha":null,"homepage":"","language":"HCL","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/rishabkumar7.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null}},"created_at":"2024-02-08T04:08:13.000Z","updated_at":"2025-02-24T23:36:00.000Z","dependencies_parsed_at":"2024-02-12T20:51:23.441Z","dependency_job_id":null,"html_url":"https://github.com/rishabkumar7/aks-terraform-starter","commit_stats":null,"previous_names":["rishabkumar7/aks-terraform","rishabkumar7/aks-terraform-starter"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rishabkumar7%2Faks-terraform-starter","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rishabkumar7%2Faks-terraform-starter/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rishabkumar7%2Faks-terraform-starter/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rishabkumar7%2Faks-terraform-starter/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rishabkumar7","download_url":"https://codeload.github.com/rishabkumar7/aks-terraform-starter/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252071864,"owners_count":21690103,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["aks","kubernetes","terraform"],"created_at":"2024-11-12T17:36:11.677Z","updated_at":"2025-05-02T16:31:48.962Z","avatar_url":"https://github.com/rishabkumar7.png","language":"HCL","funding_links":[],"categories":[],"sub_categories":[],"readme":"# aks-terraform-starter\n\nThis terraform code deploys a minimal AKS cluster.\n\n## Requirements\n\nYou will need the following installed:\n\n- [Terraform](https://developer.hashicorp.com/terraform/tutorials/aws-get-started/install-cli)\n- [Azure CLI](https://learn.microsoft.com/en-us/cli/azure/)\n- [Kubectl](https://kubernetes.io/docs/tasks/tools/)\n\n## Get Started\n\n### 1. Authenticate with your Azure Account\n\nRun `az login` to authenticate with your Azure Account.\n\n### 2. Deploy the infrastructure with Terraform\n\nUpdate the defaults in `./variables.tf`.\n\n``` bash\nterraform apply\n```\n\n[!IMPORTANT]  \nYou can run `terraform plan` first to see what all resources will be deployed.\n\n### 3. Connect Kubectl to the deployed cluster\n\nAfter `terraform apply` is done running, you will get the following output:\n\n``` bash\nApply complete! Resources: 8 added, 0 changed, 0 destroyed.\n\nOutputs:\n\nclient_certificate = \u003csensitive\u003e\nclient_key = \u003csensitive\u003e\ncluster_ca_certificate = \u003csensitive\u003e\ncluster_password = \u003csensitive\u003e\ncluster_username = \u003csensitive\u003e\nhost = \u003csensitive\u003e\nkey_data = \u003csensitive\u003e\nkube_config = \u003csensitive\u003e\nkubernetes_cluster_name = \"cluster-upright-tapir\"\nresource_group_name = \"rg-upright-tapir\"\n```\n\nMake a note of the `kubernetes_cluster_name`\n\n``` bash\naz aks get-credentials --resource-group learning-aks-rg --name \u003ckubernetes_cluster_name\u003e\n```\n\nThe above command will save the file in default `.kube\\config` directory, to get `kubeconfig` file in the specific location use the following:\n\n```bash\naz aks get-credentials --resource-group learning-aks-rg --name \u003ckubernetes_cluster_name\u003e --file \u003cspecific_location\u003e\n```\n\n### 4. Create an app with a deployment and service\n\n``` bash\nkubectl apply -f app.yaml\n```\n\n## Your App\n\nYou can check what pods are running in your cluster:\n\n``` bash\nkubectl get pods\n```\n\nTo get the external IP for your load-balancer, you can:\n\n``` bash\nkubectl get service aks-sample-linux-service\n```\n\n## Author\n\n- GitHub - [Rishab Kumar](https://github.com/rishabkumar7)\n- Twitter - [Rishab Kumar](https://x.com/rishabincloud)","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frishabkumar7%2Faks-terraform-starter","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frishabkumar7%2Faks-terraform-starter","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frishabkumar7%2Faks-terraform-starter/lists"}