This commit is contained in:
Mateusz 2023-01-22 16:51:01 +01:00
parent 6e032ea31b
commit 40c55034ea
2 changed files with 6 additions and 3 deletions

View File

@ -54,7 +54,7 @@ for i in range(NUM_OF_SERVERS):
webservice_server = client.servers.create(
name=f"{PREFIX}-webservice-{i+1}",
server_type=ServerType("cx11"),
image=Image(name="ubuntu-20.04"),
image=Image(name="ubuntu-22.04"),
ssh_keys=[ssh_key],
networks=[vnet],
location=Location("hel1"),
@ -83,7 +83,7 @@ try:
timeout=10,
retries=3,
http=LoadBalancerHealtCheckHttp(
path="/factors/10",
path="/factors/32",
status_codes=["2??", "3??"],
tls=False
)

View File

@ -21,3 +21,6 @@ if volume:
action.wait_until_finished()
action = client.volumes.delete(volume)
print("Volume removed")
loadbalancer = client.load_balancers.get_by_name(f"{PREFIX}-loadbalancer")
loadbalancer.delete()