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.

148 lines
3.1 KiB

  1. # See: https://developers.upcloud.com/1.3/5-zones/
  2. zone = "fi-hel1"
  3. username = "ubuntu"
  4. # Prefix to use for all resources to separate them from other resources
  5. prefix = "kubespray"
  6. inventory_file = "inventory.ini"
  7. # Set the operating system using UUID or exact name
  8. template_name = "Ubuntu Server 20.04 LTS (Focal Fossa)"
  9. ssh_public_keys = [
  10. # Put your public SSH key here
  11. "ssh-rsa public key 1",
  12. "ssh-rsa public key 2",
  13. ]
  14. # check list of available plan https://developers.upcloud.com/1.3/7-plans/
  15. machines = {
  16. "control-plane-0" : {
  17. "node_type" : "master",
  18. # plan to use instead of custom cpu/mem
  19. "plan" : null,
  20. #number of cpu cores
  21. "cpu" : "2",
  22. #memory size in MB
  23. "mem" : "4096"
  24. # The size of the storage in GB
  25. "disk_size" : 250
  26. "additional_disks" : {}
  27. },
  28. "worker-0" : {
  29. "node_type" : "worker",
  30. # plan to use instead of custom cpu/mem
  31. "plan" : null,
  32. #number of cpu cores
  33. "cpu" : "2",
  34. #memory size in MB
  35. "mem" : "4096"
  36. # The size of the storage in GB
  37. "disk_size" : 250
  38. "additional_disks" : {
  39. # "some-disk-name-1": {
  40. # "size": 100,
  41. # "tier": "maxiops",
  42. # },
  43. # "some-disk-name-2": {
  44. # "size": 100,
  45. # "tier": "maxiops",
  46. # }
  47. }
  48. },
  49. "worker-1" : {
  50. "node_type" : "worker",
  51. # plan to use instead of custom cpu/mem
  52. "plan" : null,
  53. #number of cpu cores
  54. "cpu" : "2",
  55. #memory size in MB
  56. "mem" : "4096"
  57. # The size of the storage in GB
  58. "disk_size" : 250
  59. "additional_disks" : {
  60. # "some-disk-name-1": {
  61. # "size": 100,
  62. # "tier": "maxiops",
  63. # },
  64. # "some-disk-name-2": {
  65. # "size": 100,
  66. # "tier": "maxiops",
  67. # }
  68. }
  69. },
  70. "worker-2" : {
  71. "node_type" : "worker",
  72. # plan to use instead of custom cpu/mem
  73. "plan" : null,
  74. #number of cpu cores
  75. "cpu" : "2",
  76. #memory size in MB
  77. "mem" : "4096"
  78. # The size of the storage in GB
  79. "disk_size" : 250
  80. "additional_disks" : {
  81. # "some-disk-name-1": {
  82. # "size": 100,
  83. # "tier": "maxiops",
  84. # },
  85. # "some-disk-name-2": {
  86. # "size": 100,
  87. # "tier": "maxiops",
  88. # }
  89. }
  90. }
  91. }
  92. firewall_enabled = false
  93. firewall_default_deny_in = false
  94. firewall_default_deny_out = false
  95. master_allowed_remote_ips = [
  96. {
  97. "start_address" : "0.0.0.0"
  98. "end_address" : "255.255.255.255"
  99. }
  100. ]
  101. k8s_allowed_remote_ips = [
  102. {
  103. "start_address" : "0.0.0.0"
  104. "end_address" : "255.255.255.255"
  105. }
  106. ]
  107. master_allowed_ports = []
  108. worker_allowed_ports = []
  109. loadbalancer_enabled = false
  110. loadbalancer_plan = "development"
  111. loadbalancer_proxy_protocol = false
  112. loadbalancers = {
  113. # "http" : {
  114. # "port" : 80,
  115. # "target_port" : 80,
  116. # "backend_servers" : [
  117. # "worker-0",
  118. # "worker-1",
  119. # "worker-2"
  120. # ]
  121. # }
  122. }
  123. server_groups = {
  124. # "control-plane" = {
  125. # servers = [
  126. # "control-plane-0"
  127. # ]
  128. # anti_affinity_policy = "strict"
  129. # },
  130. # "workers" = {
  131. # servers = [
  132. # "worker-0",
  133. # "worker-1",
  134. # "worker-2"
  135. # ]
  136. # anti_affinity_policy = "yes"
  137. # }
  138. }