From 29022f735883e73548c06cb571dbbabc1a0b0757 Mon Sep 17 00:00:00 2001 From: Florencia Comuzzi Date: Mon, 24 Feb 2025 16:01:21 -0500 Subject: [PATCH 1/3] break up docs --- SETUP.md | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/SETUP.md b/SETUP.md index fe67be5..e8bb3df 100644 --- a/SETUP.md +++ b/SETUP.md @@ -4,10 +4,12 @@ The infrastructure is managed using Hashicorp Terraform Cloud. Deployments are triggered from GitHub Actions workflows. ## Setting up your own project + +### Linode * Login to Linode account. * Create a personal access token. This secret is the value of "token" input variable of the Terraform module. - +### Terraform Cloud * Login to Terraform Cloud. * Create an organization like "mysite-org". * Create a Team Token scoped to owners. This secret is the value of TF_API_TOKEN used by GitHub Actions to authenticate to Hashicorp Terraform Cloud. @@ -19,7 +21,7 @@ Deployments are triggered from GitHub Actions workflows. * In the workspace, create a workspace variable called "token" with the value of the Linode Personal Access Token. * Go back to the organization-level variable set you created previously and apply to the workspace specifically. - +### GitHub * Clone this repository. Name it like "mysite-site-terraform". * Create a TF_API_TOKEN repository secret by going to Settings > Secrets and variables > Actions. This secret is used by GitHub Actions to authenticate to Hashicorp Terraform Cloud during runs. * Change the values of TF_CLOUD_ORGANIZATION and TF_WORKSPACE in .github/workflows/terraform-apply.yml and .github/workflows/terraform-plan.yml. From ddf52bb2a476512922897d22e6101cdc548c95b6 Mon Sep 17 00:00:00 2001 From: Florencia Date: Mon, 24 Feb 2025 16:01:43 -0500 Subject: [PATCH 2/3] break up docs (#3) From 74990692916ccd7cf701cc89582854303a561084 Mon Sep 17 00:00:00 2001 From: Florencia Comuzzi Date: Sun, 2 Mar 2025 19:16:51 -0500 Subject: [PATCH 3/3] create cluster --- main.tf | 19 +++++++++---------- 1 file changed, 9 insertions(+), 10 deletions(-) diff --git a/main.tf b/main.tf index 1a07202..77c8987 100644 --- a/main.tf +++ b/main.tf @@ -1,12 +1,11 @@ -resource "linode_instance" "web" { - label = "simple_instance" - image = "linode/ubuntu22.04" - region = "us-central" - type = "g6-standard-1" - authorized_keys = ["ssh-rsa AAAA...Gw== user@example.local"] - root_pass = "this-is-not-a-safe-password" +resource "linode_lke_cluster" "development" { + label = "development" + k8s_version = "1.32" + region = "us-southeast" + tags = ["prod"] - tags = ["foo"] - swap_size = 256 - private_ip = true + pool { + type = "g6-standard-1" + count = 3 + } } \ No newline at end of file