{"id":26797615,"url":"https://github.com/kameshsampath/rp-dev-gke","last_synced_at":"2025-03-29T19:15:19.439Z","repository":{"id":211568761,"uuid":"729195320","full_name":"kameshsampath/rp-dev-gke","owner":"kameshsampath","description":"Terraform scripts to setup Redpanda dev cluster setup on GKE","archived":false,"fork":false,"pushed_at":"2023-12-09T17:08:40.000Z","size":25,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2024-12-22T20:03:14.571Z","etag":null,"topics":["development-environment","gke-cluster","redpanda","terraform"],"latest_commit_sha":null,"homepage":"","language":"HCL","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/kameshsampath.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}},"created_at":"2023-12-08T16:14:10.000Z","updated_at":"2023-12-08T23:52:09.000Z","dependencies_parsed_at":"2023-12-09T12:39:10.587Z","dependency_job_id":null,"html_url":"https://github.com/kameshsampath/rp-dev-gke","commit_stats":null,"previous_names":["kameshsampath/rp-dev-gke"],"tags_count":0,"template":false,"template_full_name":"kameshsampath/gke-tf","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kameshsampath%2Frp-dev-gke","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kameshsampath%2Frp-dev-gke/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kameshsampath%2Frp-dev-gke/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kameshsampath%2Frp-dev-gke/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/kameshsampath","download_url":"https://codeload.github.com/kameshsampath/rp-dev-gke/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246230520,"owners_count":20744349,"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":["development-environment","gke-cluster","redpanda","terraform"],"created_at":"2025-03-29T19:15:18.867Z","updated_at":"2025-03-29T19:15:19.424Z","avatar_url":"https://github.com/kameshsampath.png","language":"HCL","funding_links":[],"categories":[],"sub_categories":[],"readme":"# GKE Terraform Template\n\nA GitHub template that could be used to get started with [Google Kubernetes Engine(GKE)](https://cloud.google.com/kubernetes-engine) using [terraform](https://terraform.build).\n\n## Pre-requisites\n\n- [Google Cloud Account](https://cloud.google.com)\n  - With a Service Account with roles\n    - `Kubernetes Engine Admin` - to create GKE cluster\n    - `Service Account User`    - to use other needed service accounts\n    - `Compute Network Admin`   - to create the VPC networks\n- [Google Cloud SDK](https://cloud.google.com/sdk)\n- [terraform](https://terraform.build)\n- [helm](https://helm.sh)(Optional)\n- [kustomize](https://kustomize.io)(Optional)\n- [direnv](https://direnv.net)(Optional)\n\n## Using this Template\n\nOn browser navigate to the repo \u003chttps://github.com/kameshsampath/gke-tf\u003e and click **Use Template**, follow the wizard to create your repository based on the template.\n\nUsing [github cli](https://cli.github.com/)\n\n```shell\ngh repo create --public --description=\"My GKE Demos and Examples\" --template https://github.com/kameshsampath/gke-tf my-gke-demos\ngh repo clone my-gke-demos\n```\n\n## Environment Variables\n\nWhen working with Google Cloud the following environment variables helps in setting the right Google Cloud context like Service Account Key file, project etc., You can use [direnv](https://direnv.net) or set the following variables on your shell,\n\n```shell\nexport GOOGLE_APPLICATION_CREDENTIALS=\"the google cloud service account key json file to use\"\nexport CLOUDSDK_ACTIVE_CONFIG_NAME=\"the google cloud cli profile to use\"\n```\n\nYou can find more information about gcloud cli configurations at \u003chttps://cloud.google.com/sdk/docs/configurations\u003e.\n\nAs you may need to override few terraform variables that you don't want to check in to VCS, add them to a file called `\u003cname\u003e.local.tfvars` and set the following environment variable to be picked up by terraform runs,\n\n```shell\nexport TFVARS_FILE=\u003cname\u003e.local.tfvars\n```\n\n\u003e**NOTE**: All `.local.tfvars` file are git ignored by this template.\n\n## Inputs\n\n| Name | Description | Type | Default | Required |\n|------|-------------|------|---------|:--------:|\n| \u003ca name=\"input_cluster_name\"\u003e\u003c/a\u003e [cluster\\_name](#input\\_cluster\\_name) | the gke cluster name | `string` | `\"my-demos\"` | no |\n| \u003ca name=\"input_gke_num_nodes\"\u003e\u003c/a\u003e [gke\\_num\\_nodes](#input\\_gke\\_num\\_nodes) | number of gke nodes | `number` | `2` | no |\n| \u003ca name=\"input_kubernetes_version\"\u003e\u003c/a\u003e [kubernetes\\_version](#input\\_kubernetes\\_version) | the kubernetes versions of the GKE clusters | `string` | `\"1.24.\"` | no |\n| \u003ca name=\"input_machine_type\"\u003e\u003c/a\u003e [machine\\_type](#input\\_machine\\_type) | the google cloud machine types for each cluster node | `string` | `\"e2-standard-4\"` | no |\n| \u003ca name=\"input_project_id\"\u003e\u003c/a\u003e [project\\_id](#input\\_project\\_id) | project id | `any` | n/a | yes |\n| \u003ca name=\"input_region\"\u003e\u003c/a\u003e [region](#input\\_region) | the region or zone where the cluster will be created | `string` | `\"asia-south1\"` | no |\n| \u003ca name=\"input_release_channel\"\u003e\u003c/a\u003e [release\\_channel](#input\\_release\\_channel) | the GKE release channel to use | `string` | `\"stable\"` | no |\n\n## Outputs\n\n| Name | Description |\n|------|-------------|\n| \u003ca name=\"output_kubeconfig_path\"\u003e\u003c/a\u003e [kubeconfig\\_path](#output\\_kubeconfig\\_path) | Kubeconfig file |\n| \u003ca name=\"output_kubernetes_cluster_host\"\u003e\u003c/a\u003e [kubernetes\\_cluster\\_host](#output\\_kubernetes\\_cluster\\_host) | GKE Cluster Host |\n| \u003ca name=\"output_kubernetes_cluster_name\"\u003e\u003c/a\u003e [kubernetes\\_cluster\\_name](#output\\_kubernetes\\_cluster\\_name) | GKE Cluster Name |\n| \u003ca name=\"output_project_id\"\u003e\u003c/a\u003e [project\\_id](#output\\_project\\_id) | GCloud Project ID |\n| \u003ca name=\"output_region\"\u003e\u003c/a\u003e [region](#output\\_region) | GCloud Region |\n| \u003ca name=\"output_zone\"\u003e\u003c/a\u003e [zone](#output\\_zone) | GCloud Zone |\n\n## Providers\n\n| Name | Version |\n|------|---------|\n| \u003ca name=\"provider_google\"\u003e\u003c/a\u003e [google](#provider\\_google) | 4.47.0 |\n| \u003ca name=\"provider_local\"\u003e\u003c/a\u003e [local](#provider\\_local) | 2.2.3 |\n| \u003ca name=\"provider_random\"\u003e\u003c/a\u003e [random](#provider\\_random) | 3.4.3 |\n\n## Requirements\n\n| Name | Version |\n|------|---------|\n| \u003ca name=\"requirement_terraform\"\u003e\u003c/a\u003e [terraform](#requirement\\_terraform) | \u003e= 0.14 |\n| \u003ca name=\"requirement_google\"\u003e\u003c/a\u003e [google](#requirement\\_google) | \u003e= 4.47.0 |\n| \u003ca name=\"requirement_helm\"\u003e\u003c/a\u003e [helm](#requirement\\_helm) | 2.8.0 |\n| \u003ca name=\"requirement_kubernetes\"\u003e\u003c/a\u003e [kubernetes](#requirement\\_kubernetes) | 2.16.1 |\n| \u003ca name=\"requirement_local\"\u003e\u003c/a\u003e [local](#requirement\\_local) | 2.2.3 |\n| \u003ca name=\"requirement_random\"\u003e\u003c/a\u003e [random](#requirement\\_random) | 3.4.3 |\n\n## Resources\n\n| Name | Type |\n|------|------|\n| [google_compute_network.vpc](https://registry.terraform.io/providers/hashicorp/google/latest/docs/resources/compute_network) | resource |\n| [google_compute_subnetwork.subnet](https://registry.terraform.io/providers/hashicorp/google/latest/docs/resources/compute_subnetwork) | resource |\n| [google_container_cluster.primary](https://registry.terraform.io/providers/hashicorp/google/latest/docs/resources/container_cluster) | resource |\n| [google_container_node_pool.primary_nodes](https://registry.terraform.io/providers/hashicorp/google/latest/docs/resources/container_node_pool) | resource |\n| [local_file.kubeconfig](https://registry.terraform.io/providers/hashicorp/local/2.2.3/docs/resources/file) | resource |\n| [random_shuffle.az](https://registry.terraform.io/providers/hashicorp/random/3.4.3/docs/resources/shuffle) | resource |\n| [google_compute_zones.available](https://registry.terraform.io/providers/hashicorp/google/latest/docs/data-sources/compute_zones) | data source |\n| [google_container_engine_versions.supported](https://registry.terraform.io/providers/hashicorp/google/latest/docs/data-sources/container_engine_versions) | data source |\n\n## References\n\n- \u003chttps://cloud.google.com/translate\u003e\n\n- \u003chttps://cloud.google.com/kubernetes-engine/docs/concepts/workload-identity\u003e\n\n## License\n\n[Apache License](./../LICENSE)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkameshsampath%2Frp-dev-gke","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkameshsampath%2Frp-dev-gke","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkameshsampath%2Frp-dev-gke/lists"}