update
This commit is contained in:
parent
6e032ea31b
commit
40c55034ea
@ -54,7 +54,7 @@ for i in range(NUM_OF_SERVERS):
|
|||||||
webservice_server = client.servers.create(
|
webservice_server = client.servers.create(
|
||||||
name=f"{PREFIX}-webservice-{i+1}",
|
name=f"{PREFIX}-webservice-{i+1}",
|
||||||
server_type=ServerType("cx11"),
|
server_type=ServerType("cx11"),
|
||||||
image=Image(name="ubuntu-20.04"),
|
image=Image(name="ubuntu-22.04"),
|
||||||
ssh_keys=[ssh_key],
|
ssh_keys=[ssh_key],
|
||||||
networks=[vnet],
|
networks=[vnet],
|
||||||
location=Location("hel1"),
|
location=Location("hel1"),
|
||||||
@ -83,7 +83,7 @@ try:
|
|||||||
timeout=10,
|
timeout=10,
|
||||||
retries=3,
|
retries=3,
|
||||||
http=LoadBalancerHealtCheckHttp(
|
http=LoadBalancerHealtCheckHttp(
|
||||||
path="/factors/10",
|
path="/factors/32",
|
||||||
status_codes=["2??", "3??"],
|
status_codes=["2??", "3??"],
|
||||||
tls=False
|
tls=False
|
||||||
)
|
)
|
||||||
|
@ -21,3 +21,6 @@ if volume:
|
|||||||
action.wait_until_finished()
|
action.wait_until_finished()
|
||||||
action = client.volumes.delete(volume)
|
action = client.volumes.delete(volume)
|
||||||
print("Volume removed")
|
print("Volume removed")
|
||||||
|
|
||||||
|
loadbalancer = client.load_balancers.get_by_name(f"{PREFIX}-loadbalancer")
|
||||||
|
loadbalancer.delete()
|
Loading…
Reference in New Issue
Block a user