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.

108 lines
1.8 KiB

  1. variable "prefix" {
  2. type = string
  3. }
  4. variable "zone" {
  5. type = string
  6. }
  7. variable "template_name" {}
  8. variable "username" {}
  9. variable "private_network_cidr" {}
  10. variable "machines" {
  11. description = "Cluster machines"
  12. type = map(object({
  13. node_type = string
  14. plan = string
  15. cpu = string
  16. mem = string
  17. disk_size = number
  18. additional_disks = map(object({
  19. size = number
  20. tier = string
  21. }))
  22. }))
  23. }
  24. variable "ssh_public_keys" {
  25. type = list(string)
  26. }
  27. variable "firewall_enabled" {
  28. type = bool
  29. }
  30. variable "master_allowed_remote_ips" {
  31. type = list(object({
  32. start_address = string
  33. end_address = string
  34. }))
  35. }
  36. variable "k8s_allowed_remote_ips" {
  37. type = list(object({
  38. start_address = string
  39. end_address = string
  40. }))
  41. }
  42. variable "master_allowed_ports" {
  43. type = list(object({
  44. protocol = string
  45. port_range_min = number
  46. port_range_max = number
  47. start_address = string
  48. end_address = string
  49. }))
  50. }
  51. variable "worker_allowed_ports" {
  52. type = list(object({
  53. protocol = string
  54. port_range_min = number
  55. port_range_max = number
  56. start_address = string
  57. end_address = string
  58. }))
  59. }
  60. variable "firewall_default_deny_in" {
  61. type = bool
  62. }
  63. variable "firewall_default_deny_out" {
  64. type = bool
  65. }
  66. variable "loadbalancer_enabled" {
  67. type = bool
  68. }
  69. variable "loadbalancer_plan" {
  70. type = string
  71. }
  72. variable "loadbalancer_outbound_proxy_protocol" {
  73. type = string
  74. }
  75. variable "loadbalancers" {
  76. description = "Load balancers"
  77. type = map(object({
  78. port = number
  79. target_port = number
  80. backend_servers = list(string)
  81. }))
  82. }
  83. variable "server_groups" {
  84. description = "Server groups"
  85. type = map(object({
  86. anti_affinity_policy = string
  87. servers = list(string)
  88. }))
  89. }