2022-01-25 09:22:30 +00:00
|
|
|
terraform {
|
|
|
|
required_providers {
|
|
|
|
google = {
|
|
|
|
source = "hashicorp/google"
|
2022-02-01 17:14:11 +00:00
|
|
|
version = "~> 4.0"
|
2022-01-25 09:22:30 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2020-12-24 17:16:26 +00:00
|
|
|
provider "google" {
|
|
|
|
credentials = file(var.keyfile_location)
|
|
|
|
region = var.region
|
|
|
|
project = var.gcp_project_id
|
|
|
|
}
|
|
|
|
|
|
|
|
module "kubernetes" {
|
|
|
|
source = "./modules/kubernetes-cluster"
|
|
|
|
region = var.region
|
|
|
|
prefix = var.prefix
|
|
|
|
|
|
|
|
machines = var.machines
|
|
|
|
ssh_pub_key = var.ssh_pub_key
|
|
|
|
|
2022-01-31 08:30:24 +00:00
|
|
|
master_sa_email = var.master_sa_email
|
|
|
|
master_sa_scopes = var.master_sa_scopes
|
|
|
|
master_preemptible = var.master_preemptible
|
|
|
|
worker_sa_email = var.worker_sa_email
|
|
|
|
worker_sa_scopes = var.worker_sa_scopes
|
|
|
|
worker_preemptible = var.worker_preemptible
|
2020-12-24 17:16:26 +00:00
|
|
|
|
|
|
|
ssh_whitelist = var.ssh_whitelist
|
|
|
|
api_server_whitelist = var.api_server_whitelist
|
|
|
|
nodeport_whitelist = var.nodeport_whitelist
|
|
|
|
}
|