Deprecating old stuff and bringing in new tf managed cluster content
This commit is contained in:
parent
d846700f96
commit
0e2eb430a5
1
infra/vultr-kubernetes/k8s/.gitignore
vendored
Normal file
1
infra/vultr-kubernetes/k8s/.gitignore
vendored
Normal file
@ -0,0 +1 @@
|
||||
terraform.yaml
|
33
infra/vultr-kubernetes/k8s/backend.tf
Normal file
33
infra/vultr-kubernetes/k8s/backend.tf
Normal 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"
|
||||
}
|
||||
|
||||
|
5
infra/vultr-kubernetes/k8s/namespace.tf
Normal file
5
infra/vultr-kubernetes/k8s/namespace.tf
Normal file
@ -0,0 +1,5 @@
|
||||
resource kubernetes_namespace websites {
|
||||
metadata {
|
||||
name = "websites"
|
||||
}
|
||||
}
|
21
infra/vultr-kubernetes/k8s/variables.tf
Normal file
21
infra/vultr-kubernetes/k8s/variables.tf
Normal 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
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user