You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

37 lines
1007 B

  1. terraform {
  2. required_providers {
  3. google = {
  4. source = "hashicorp/google"
  5. version = "~> 4.0"
  6. }
  7. }
  8. }
  9. provider "google" {
  10. credentials = file(var.keyfile_location)
  11. region = var.region
  12. project = var.gcp_project_id
  13. }
  14. module "kubernetes" {
  15. source = "./modules/kubernetes-cluster"
  16. region = var.region
  17. prefix = var.prefix
  18. machines = var.machines
  19. ssh_pub_key = var.ssh_pub_key
  20. master_sa_email = var.master_sa_email
  21. master_sa_scopes = var.master_sa_scopes
  22. master_preemptible = var.master_preemptible
  23. master_additional_disk_type = var.master_additional_disk_type
  24. worker_sa_email = var.worker_sa_email
  25. worker_sa_scopes = var.worker_sa_scopes
  26. worker_preemptible = var.worker_preemptible
  27. worker_additional_disk_type = var.worker_additional_disk_type
  28. ssh_whitelist = var.ssh_whitelist
  29. api_server_whitelist = var.api_server_whitelist
  30. nodeport_whitelist = var.nodeport_whitelist
  31. ingress_whitelist = var.ingress_whitelist
  32. }