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.

46 lines
1.1 KiB

  1. variable "zone" {
  2. description = "The zone where to run the cluster"
  3. }
  4. variable "prefix" {
  5. description = "Prefix for resource names"
  6. default = "default"
  7. }
  8. variable "machines" {
  9. description = "Cluster machines"
  10. type = map(object({
  11. node_type = string
  12. size = string
  13. boot_disk = object({
  14. image_name = string
  15. root_partition_size = number
  16. ceph_partition_size = number
  17. node_local_partition_size = number
  18. })
  19. }))
  20. }
  21. variable "ssh_public_keys" {
  22. description = "List of public SSH keys which are injected into the VMs."
  23. type = list(string)
  24. }
  25. variable "ssh_whitelist" {
  26. description = "List of IP ranges (CIDR) to whitelist for ssh"
  27. type = list(string)
  28. }
  29. variable "api_server_whitelist" {
  30. description = "List of IP ranges (CIDR) to whitelist for kubernetes api server"
  31. type = list(string)
  32. }
  33. variable "nodeport_whitelist" {
  34. description = "List of IP ranges (CIDR) to whitelist for kubernetes nodeports"
  35. type = list(string)
  36. }
  37. variable "inventory_file" {
  38. description = "Where to store the generated inventory file"
  39. }