2021-03-15 16:41:04 +08:00
|
|
|
# See: https://developers.upcloud.com/1.3/5-zones/
|
|
|
|
zone = "fi-hel1"
|
|
|
|
username = "ubuntu"
|
|
|
|
|
2021-09-11 04:55:21 +08:00
|
|
|
# Prefix to use for all resources to separate them from other resources
|
|
|
|
prefix = "kubespray"
|
2021-03-15 16:41:04 +08:00
|
|
|
|
2021-09-11 04:55:21 +08:00
|
|
|
inventory_file = "inventory.ini"
|
2021-03-15 16:41:04 +08:00
|
|
|
|
|
|
|
# Set the operating system using UUID or exact name
|
|
|
|
template_name = "Ubuntu Server 20.04 LTS (Focal Fossa)"
|
|
|
|
|
|
|
|
ssh_public_keys = [
|
|
|
|
# Put your public SSH key here
|
|
|
|
"ssh-rsa public key 1",
|
|
|
|
"ssh-rsa public key 2",
|
|
|
|
]
|
|
|
|
|
2021-09-11 04:55:21 +08:00
|
|
|
# check list of available plan https://developers.upcloud.com/1.3/7-plans/
|
2021-03-15 16:41:04 +08:00
|
|
|
machines = {
|
2023-10-07 10:45:41 +08:00
|
|
|
"control-plane-0" : {
|
2021-03-15 16:41:04 +08:00
|
|
|
"node_type" : "master",
|
2022-05-12 01:15:03 +08:00
|
|
|
# plan to use instead of custom cpu/mem
|
|
|
|
"plan" : null,
|
2021-03-15 16:41:04 +08:00
|
|
|
#number of cpu cores
|
|
|
|
"cpu" : "2",
|
|
|
|
#memory size in MB
|
|
|
|
"mem" : "4096"
|
|
|
|
# The size of the storage in GB
|
|
|
|
"disk_size" : 250
|
2021-09-11 04:55:21 +08:00
|
|
|
"additional_disks" : {}
|
2021-03-15 16:41:04 +08:00
|
|
|
},
|
|
|
|
"worker-0" : {
|
|
|
|
"node_type" : "worker",
|
2022-05-12 01:15:03 +08:00
|
|
|
# plan to use instead of custom cpu/mem
|
|
|
|
"plan" : null,
|
2021-03-15 16:41:04 +08:00
|
|
|
#number of cpu cores
|
|
|
|
"cpu" : "2",
|
|
|
|
#memory size in MB
|
|
|
|
"mem" : "4096"
|
|
|
|
# The size of the storage in GB
|
|
|
|
"disk_size" : 250
|
2021-09-11 04:55:21 +08:00
|
|
|
"additional_disks" : {
|
|
|
|
# "some-disk-name-1": {
|
|
|
|
# "size": 100,
|
|
|
|
# "tier": "maxiops",
|
|
|
|
# },
|
|
|
|
# "some-disk-name-2": {
|
|
|
|
# "size": 100,
|
|
|
|
# "tier": "maxiops",
|
|
|
|
# }
|
|
|
|
}
|
2021-03-15 16:41:04 +08:00
|
|
|
},
|
|
|
|
"worker-1" : {
|
|
|
|
"node_type" : "worker",
|
2022-05-12 01:15:03 +08:00
|
|
|
# plan to use instead of custom cpu/mem
|
|
|
|
"plan" : null,
|
2021-03-15 16:41:04 +08:00
|
|
|
#number of cpu cores
|
|
|
|
"cpu" : "2",
|
|
|
|
#memory size in MB
|
|
|
|
"mem" : "4096"
|
|
|
|
# The size of the storage in GB
|
|
|
|
"disk_size" : 250
|
2021-09-11 04:55:21 +08:00
|
|
|
"additional_disks" : {
|
|
|
|
# "some-disk-name-1": {
|
|
|
|
# "size": 100,
|
|
|
|
# "tier": "maxiops",
|
|
|
|
# },
|
|
|
|
# "some-disk-name-2": {
|
|
|
|
# "size": 100,
|
|
|
|
# "tier": "maxiops",
|
|
|
|
# }
|
|
|
|
}
|
2021-03-15 16:41:04 +08:00
|
|
|
},
|
|
|
|
"worker-2" : {
|
|
|
|
"node_type" : "worker",
|
2022-05-12 01:15:03 +08:00
|
|
|
# plan to use instead of custom cpu/mem
|
|
|
|
"plan" : null,
|
2021-03-15 16:41:04 +08:00
|
|
|
#number of cpu cores
|
|
|
|
"cpu" : "2",
|
|
|
|
#memory size in MB
|
|
|
|
"mem" : "4096"
|
|
|
|
# The size of the storage in GB
|
|
|
|
"disk_size" : 250
|
2021-09-11 04:55:21 +08:00
|
|
|
"additional_disks" : {
|
|
|
|
# "some-disk-name-1": {
|
|
|
|
# "size": 100,
|
|
|
|
# "tier": "maxiops",
|
|
|
|
# },
|
|
|
|
# "some-disk-name-2": {
|
|
|
|
# "size": 100,
|
|
|
|
# "tier": "maxiops",
|
|
|
|
# }
|
|
|
|
}
|
2021-03-15 16:41:04 +08:00
|
|
|
}
|
|
|
|
}
|
2022-05-12 01:15:03 +08:00
|
|
|
|
2022-07-19 15:18:06 +08:00
|
|
|
firewall_enabled = false
|
|
|
|
firewall_default_deny_in = false
|
|
|
|
firewall_default_deny_out = false
|
2022-05-12 01:15:03 +08:00
|
|
|
|
|
|
|
master_allowed_remote_ips = [
|
|
|
|
{
|
|
|
|
"start_address" : "0.0.0.0"
|
|
|
|
"end_address" : "255.255.255.255"
|
|
|
|
}
|
|
|
|
]
|
|
|
|
|
|
|
|
k8s_allowed_remote_ips = [
|
|
|
|
{
|
|
|
|
"start_address" : "0.0.0.0"
|
|
|
|
"end_address" : "255.255.255.255"
|
|
|
|
}
|
|
|
|
]
|
|
|
|
|
2022-07-19 15:18:06 +08:00
|
|
|
master_allowed_ports = []
|
|
|
|
worker_allowed_ports = []
|
|
|
|
|
2024-03-23 07:08:59 +08:00
|
|
|
loadbalancer_enabled = false
|
|
|
|
loadbalancer_plan = "development"
|
|
|
|
loadbalancer_proxy_protocol = false
|
2022-05-12 01:15:03 +08:00
|
|
|
loadbalancers = {
|
|
|
|
# "http" : {
|
|
|
|
# "port" : 80,
|
2023-02-28 09:21:15 +08:00
|
|
|
# "target_port" : 80,
|
2022-05-12 01:15:03 +08:00
|
|
|
# "backend_servers" : [
|
|
|
|
# "worker-0",
|
|
|
|
# "worker-1",
|
|
|
|
# "worker-2"
|
|
|
|
# ]
|
|
|
|
# }
|
|
|
|
}
|
2023-02-28 09:21:15 +08:00
|
|
|
|
|
|
|
server_groups = {
|
|
|
|
# "control-plane" = {
|
|
|
|
# servers = [
|
2023-10-07 10:45:41 +08:00
|
|
|
# "control-plane-0"
|
2023-02-28 09:21:15 +08:00
|
|
|
# ]
|
2023-10-07 10:45:41 +08:00
|
|
|
# anti_affinity_policy = "strict"
|
2023-02-28 09:21:15 +08:00
|
|
|
# },
|
|
|
|
# "workers" = {
|
|
|
|
# servers = [
|
|
|
|
# "worker-0",
|
|
|
|
# "worker-1",
|
|
|
|
# "worker-2"
|
|
|
|
# ]
|
2023-10-07 10:45:41 +08:00
|
|
|
# anti_affinity_policy = "yes"
|
2023-02-28 09:21:15 +08:00
|
|
|
# }
|
|
|
|
}
|