Skip to content

Commit da87d97

Browse files
Revert "Create cluster (#4)" (#5)
This reverts commit 6aa4765.
1 parent 6aa4765 commit da87d97

File tree

2 files changed

+12
-13
lines changed

2 files changed

+12
-13
lines changed

SETUP.md

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,10 @@ The infrastructure is managed using Hashicorp Terraform Cloud.
44
Deployments are triggered from GitHub Actions workflows.
55

66
## Setting up your own project
7-
8-
### Linode
97
* Login to Linode account.
108
* Create a personal access token. This secret is the value of "token" input variable of the Terraform module.
119

12-
### Terraform Cloud
10+
1311
* Login to Terraform Cloud.
1412
* Create an organization like "mysite-org".
1513
* 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.
@@ -21,7 +19,7 @@ Deployments are triggered from GitHub Actions workflows.
2119
* In the workspace, create a workspace variable called "token" with the value of the Linode Personal Access Token.
2220
* Go back to the organization-level variable set you created previously and apply to the workspace specifically.
2321

24-
### GitHub
22+
2523
* Clone this repository. Name it like "mysite-site-terraform".
2624
* 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.
2725
* Change the values of TF_CLOUD_ORGANIZATION and TF_WORKSPACE in .github/workflows/terraform-apply.yml and .github/workflows/terraform-plan.yml.

main.tf

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,12 @@
1-
resource "linode_lke_cluster" "development" {
2-
label = "development"
3-
k8s_version = "1.32"
4-
region = "us-southeast"
5-
tags = ["prod"]
1+
resource "linode_instance" "web" {
2+
label = "simple_instance"
3+
image = "linode/ubuntu22.04"
4+
region = "us-central"
5+
type = "g6-standard-1"
6+
authorized_keys = ["ssh-rsa AAAA...Gw== user@example.local"]
7+
root_pass = "this-is-not-a-safe-password"
68

7-
pool {
8-
type = "g6-standard-1"
9-
count = 3
10-
}
9+
tags = ["foo"]
10+
swap_size = 256
11+
private_ip = true
1112
}

0 commit comments

Comments
 (0)