d64b341b38
* Fix terraform Warning Version constraints inside provider configuration blocks are deprecated Terraform 0.13 and earlier allowed provider version constraints inside the provider configuration block, but that is now deprecated and will be removed in a future version of Terraform. To silence this warning, move the provider version constraint into the required_providers block. * Fix terraform Warning: Quoted references are deprecated * terraform: Update GCP Ubuntu to latest LTS
32 lines
733 B
HCL
32 lines
733 B
HCL
terraform {
|
|
required_providers {
|
|
google = {
|
|
source = "hashicorp/google"
|
|
version = "~> 3.48"
|
|
}
|
|
}
|
|
}
|
|
|
|
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
|
|
|
|
master_sa_email = var.master_sa_email
|
|
master_sa_scopes = var.master_sa_scopes
|
|
worker_sa_email = var.worker_sa_email
|
|
worker_sa_scopes = var.worker_sa_scopes
|
|
|
|
ssh_whitelist = var.ssh_whitelist
|
|
api_server_whitelist = var.api_server_whitelist
|
|
nodeport_whitelist = var.nodeport_whitelist
|
|
}
|