{"id":22931521,"url":"https://github.com/angudadevops/k8s-on-cloud","last_synced_at":"2025-04-01T17:27:55.241Z","repository":{"id":182387464,"uuid":"244493007","full_name":"angudadevops/k8s-on-cloud","owner":"angudadevops","description":"Kubernetes with Kubeadm Cluster on Cloud","archived":false,"fork":false,"pushed_at":"2021-03-22T22:50:39.000Z","size":38,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-02-07T11:22:59.354Z","etag":null,"topics":["aws-terraform","azure-kubernetes-cluster","azure-terraform","googlecloud-kubernetes-terraform","googlecloud-terraform","k8s-ansible-aws","k8s-aws","k8s-azure","k8s-cloud","k8s-gcp","k8s-terraform","kubeadm-cluster","kubernetes-aws-kubeadm","kubernetes-azure-kubeadm","kubernetes-cloud-examples","kubernetes-cluster","kubernetes-terraform-ansible"],"latest_commit_sha":null,"homepage":"","language":"HCL","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/angudadevops.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2020-03-02T22:54:42.000Z","updated_at":"2021-03-22T22:50:44.000Z","dependencies_parsed_at":"2023-07-19T20:16:34.111Z","dependency_job_id":null,"html_url":"https://github.com/angudadevops/k8s-on-cloud","commit_stats":null,"previous_names":["angudadevops/k8s-on-cloud"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/angudadevops%2Fk8s-on-cloud","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/angudadevops%2Fk8s-on-cloud/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/angudadevops%2Fk8s-on-cloud/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/angudadevops%2Fk8s-on-cloud/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/angudadevops","download_url":"https://codeload.github.com/angudadevops/k8s-on-cloud/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246679665,"owners_count":20816539,"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":["aws-terraform","azure-kubernetes-cluster","azure-terraform","googlecloud-kubernetes-terraform","googlecloud-terraform","k8s-ansible-aws","k8s-aws","k8s-azure","k8s-cloud","k8s-gcp","k8s-terraform","kubeadm-cluster","kubernetes-aws-kubeadm","kubernetes-azure-kubeadm","kubernetes-cloud-examples","kubernetes-cluster","kubernetes-terraform-ansible"],"created_at":"2024-12-14T10:39:30.389Z","updated_at":"2025-04-01T17:27:55.223Z","avatar_url":"https://github.com/angudadevops.png","language":"HCL","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003ch1\u003e Kubernetes on Cloud with Terraform and Ansible\u003c/h1\u003e \n\nThis repository helps to spin up cloud environment and create kubernetes cluster on top of that using kubeadm\n\n- Prerequisites\n  - Linux machine or Mac Os Machine\n  - AWS/Azure/GCP Account\n\n### Usage\n\n#### AWS\nUpdate the aws account details in terrform varaiable file, then run the below command to install kubernetes cluster on \n\n```\nbash k8scluster.sh aws\n```\n\nTo clean up the AWS environment with kubernetes, run the below command\n\n```\ncd terrform/aws\nterraform destroy -auto-approve\n```\n\n#### Azure\nMake sure you have azure account setup, as below command will open to login to your azure account. Once succesful login it will provision k8s cluster on Azure Virtual Machines\n\n`NOTE:` Azure  authentication happened in your default web browser. So this will work only Desktop versions\n```\nbash k8scluster.sh azure\n```\n\nTo clean up the AWS environment with kubernetes, run the below command\n\n```\ncd terrform/azure\nterraform destroy -auto-approve \n```\n\n#### Google Cloud\nMake sure you have Google cloud account setup, as below command will open to login to your Google account. Once succesful login it will provision k8s cluster on Google Compute Engines\n\n`NOTE:` Google authentication happened in your default web browser and when script is running, it will ask some google cloud recommended settings, please provide as default. \n\n```\nbash k8scluster.sh gcp\n```\n\nTo clean up the AWS environment with kubernetes, run the below command\n\n```\ncd terrform/gcp\nterraform destroy -auto-approve\n```                         \n\n### Troubleshooting\n\nIf you see any error with terraform apply, it could be issue with values from varaiables.tf like ami id. Please update and try to re run. To enable Terraform trace logs, please run below command before running k8scluster.sh\n```\nexport TF_LOG=TRACE\n```\n\nTo disable logs, run below command\n```\nexport TF_LOG=\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fangudadevops%2Fk8s-on-cloud","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fangudadevops%2Fk8s-on-cloud","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fangudadevops%2Fk8s-on-cloud/lists"}