Add Google Cloud K3s infrastructure support
- 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
This commit is contained in:
parent
7384722305
commit
2ab7872af1
30 changed files with 1024 additions and 324 deletions
37
gcloud/tf/remote_state.tf
Normal file
37
gcloud/tf/remote_state.tf
Normal file
|
|
@ -0,0 +1,37 @@
|
|||
// 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"
|
||||
# }
|
||||
# }
|
||||
Loading…
Add table
Add a link
Reference in a new issue