Deprecating old stuff and bringing in new tf managed cluster content

This commit is contained in:
shockrah 2024-05-29 22:29:22 -07:00
parent d846700f96
commit 0e2eb430a5
12 changed files with 60 additions and 0 deletions

1
infra/vultr-kubernetes/k8s/.gitignore vendored Normal file
View File

@ -0,0 +1 @@
terraform.yaml

View File

@ -0,0 +1,33 @@
terraform {
required_version = ">= 0.13"
backend s3 {
bucket = "project-athens"
key = "infra/vke/k8s/state/build.tfstate"
region = "us-west-1"
encrypt = true
}
required_providers {
# For interacting with S3
aws = {
source = "hashicorp/aws"
version = "~> 5.0"
}
kubernetes = {
source = "hashicorp/kubernetes"
version = "2.30.0"
}
}
}
provider aws {
access_key = var.aws_key
secret_key = var.aws_secret
region = var.aws_region
max_retries = 1
}
provider kubernetes {
config_path = "terraform.yaml"
}

View File

@ -0,0 +1,5 @@
resource kubernetes_namespace websites {
metadata {
name = "websites"
}
}

View File

@ -0,0 +1,21 @@
# API Keys required to reach AWS/Vultr
variable vultr_api_key {
type = string
sensitive = true
}
variable aws_key {
type = string
sensitive = true
}
variable aws_secret {
type = string
sensitive = true
}
variable aws_region {
type = string
sensitive = true
}