- Add Terraform configuration for GCP instance and storage - Add startup script for K3s installation and configuration - Add pipeline scripts for deployment and management - Add Forgejo deployment manifests and configuration
37 lines
856 B
HCL
37 lines
856 B
HCL
// Remote state
|
|
// ----------------------------------
|
|
# variable "bucket_name" {
|
|
# type = string
|
|
# default = "your-project-name-k3s-bucket"
|
|
# description = "your-project-name k3s Bucket"
|
|
# }
|
|
|
|
# terraform {
|
|
# # Use a shared bucket (wich allows collaborative work)
|
|
# backend "gcs" {
|
|
# bucket = "<my-bucket-for-states>"
|
|
# prefix = "k3s-infra"
|
|
# }
|
|
|
|
# // Set versions
|
|
# required_version = ">=1.8.0"
|
|
# required_providers {
|
|
# google = {
|
|
# source = "hashicorp/google"
|
|
# version = ">=4.0.0"
|
|
# }
|
|
# }
|
|
# }
|
|
|
|
// The bucket where you can store other data
|
|
# resource "google_storage_bucket" "k3s-storage" {
|
|
# name = var.bucket_name
|
|
# location = var.region
|
|
|
|
# labels = {
|
|
# env = var.env
|
|
# region = var.region
|
|
# app = var.app_name
|
|
# sensitive = "false"
|
|
# }
|
|
# }
|