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.

72 lines
1.3 KiB

  1. variable keyfile_location {
  2. description = "Location of the json keyfile to use with the google provider"
  3. type = string
  4. }
  5. variable region {
  6. description = "Region of all resources"
  7. type = string
  8. }
  9. variable gcp_project_id {
  10. description = "ID of the project"
  11. type = string
  12. }
  13. variable prefix {
  14. description = "Prefix for resource names"
  15. default = "default"
  16. }
  17. variable machines {
  18. description = "Cluster machines"
  19. type = map(object({
  20. node_type = string
  21. size = string
  22. zone = string
  23. additional_disks = map(object({
  24. size = number
  25. }))
  26. boot_disk = object({
  27. image_name = string
  28. size = number
  29. })
  30. }))
  31. }
  32. variable "master_sa_email" {
  33. type = string
  34. default = ""
  35. }
  36. variable "master_sa_scopes" {
  37. type = list(string)
  38. default = ["https://www.googleapis.com/auth/cloud-platform"]
  39. }
  40. variable "worker_sa_email" {
  41. type = string
  42. default = ""
  43. }
  44. variable "worker_sa_scopes" {
  45. type = list(string)
  46. default = ["https://www.googleapis.com/auth/cloud-platform"]
  47. }
  48. variable ssh_pub_key {
  49. description = "Path to public SSH key file which is injected into the VMs."
  50. type = string
  51. }
  52. variable ssh_whitelist {
  53. type = list(string)
  54. }
  55. variable api_server_whitelist {
  56. type = list(string)
  57. }
  58. variable nodeport_whitelist {
  59. type = list(string)
  60. }