{"id":15118570,"url":"https://github.com/wmramadan/gcp-deployment","last_synced_at":"2026-02-05T08:01:40.089Z","repository":{"id":257327148,"uuid":"857931522","full_name":"WMRamadan/gcp-deployment","owner":"WMRamadan","description":"GCP Deployment Using Terraform","archived":false,"fork":false,"pushed_at":"2024-09-16T04:20:32.000Z","size":30,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-07-13T20:06:31.430Z","etag":null,"topics":["gcp","github-actions","gke","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":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/WMRamadan.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,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-09-16T01:07:39.000Z","updated_at":"2024-09-16T04:30:31.000Z","dependencies_parsed_at":"2024-09-16T02:47:11.440Z","dependency_job_id":"00705cf4-f6fc-4a0b-9930-0f333a9cea69","html_url":"https://github.com/WMRamadan/gcp-deployment","commit_stats":null,"previous_names":["wmramadan/gcp-deployment"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/WMRamadan/gcp-deployment","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/WMRamadan%2Fgcp-deployment","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/WMRamadan%2Fgcp-deployment/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/WMRamadan%2Fgcp-deployment/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/WMRamadan%2Fgcp-deployment/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/WMRamadan","download_url":"https://codeload.github.com/WMRamadan/gcp-deployment/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/WMRamadan%2Fgcp-deployment/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":266267291,"owners_count":23902334,"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":["gcp","github-actions","gke","kubernetes","terraform"],"created_at":"2024-09-26T01:47:13.432Z","updated_at":"2026-02-05T08:01:40.029Z","avatar_url":"https://github.com/WMRamadan.png","language":"HCL","funding_links":[],"categories":[],"sub_categories":[],"readme":"This project provides the following:\n\n1 - Docker build of an application using GitHub Actions\n\n2 - Hosting of docker image on GitHub Container Registry\n\n3 - Deployment of application from GCR Image to GKE Cluster using Terraform\n\n4 - VPC restrict access to application from specified IP's\n\n# Requirements:\n- Terraform\n- Kubectl\n- GCloud SDK\n- GCP Service Account \u0026 JSON key\n- gke-gcloud-auth-plugin\n\n# Setup:\n\n## Step 1 - Config:\n\nUpdate your Project ID `project_id` and IP's to deny `deny_ip_ranges_ipv4` in the `/terraform/terraform.tfvars` file.\n\n## Step 2 - Export your application credentials:\n```\nexport GOOGLE_APPLICATION_CREDENTIALS=\"/path/to/key.json\"\n```\n\n# Deployment:\n\n## Step 1 - Apply Terraform from `/terraform` directory:\n```\nterraform init --upgrade\nterraform plan -out=tfplan\nterraform apply \"tfplan\"\n```\n\n## Step 2 - Check GKE cluster:\n```\ngcloud container clusters list\n```\n\n## Step 3 - Configure kubectl to use your GKE cluster:\n```\ngcloud container clusters get-credentials CLUSTER_NAME --zone ZONE --project PROJECT_ID\n```\n\n## Step 4 - Deploy Application from `/kubernetes` directory:\n```\nkubectl apply -f deployment.yaml\nkubectl apply -f service.yaml\n```\n\n## Step 5 - Verify Deployment\n```\nkubectl get deployments\nkubectl get services\n```\nAfter you list services on the line of the `express` app you should see your `EXTERNAL-IP` to be able to access the app.\n\n## Step 6 - Destroy deployment from `/terraform` directory:\n```\nterraform plan -out=tfplan --destroy\nterraform apply \"tfplan\"\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwmramadan%2Fgcp-deployment","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwmramadan%2Fgcp-deployment","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwmramadan%2Fgcp-deployment/lists"}