Skip to content

Commit 6305172

Browse files
committed
chore(alb): fix alb creation template
relates to STACKITCLI-355
1 parent 3c2dac3 commit 6305172

1 file changed

Lines changed: 19 additions & 18 deletions

File tree

internal/cmd/beta/alb/template/template-alb.yaml

Lines changed: 19 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ externalAddress: 123.123.123.123
44

55
# public listening interfaces of the loadbalancer
66
listeners:
7-
- displayName: listener1
7+
- name: listener1
88
# for plain http the https block must be removed
99
# http: {}
1010
https:
@@ -16,27 +16,28 @@ listeners:
1616
port: 443
1717
# protocal may be PROTOCOL_HTTPS or PROTOCOL_HTTP
1818
protocol: PROTOCOL_HTTPS
19-
rules:
20-
# fqdn of the virtual host of the load balancer
21-
- host: front.facing.host
22-
http:
23-
subRules:
19+
http:
20+
hosts:
21+
# fqdn of the virtual host of the load balancer
22+
- host: front.facing.host
23+
rules:
2424
- cookiePersistence:
2525
name: cookie1
2626
ttl: 120s
2727
headers:
28-
- name: testheader1
29-
exactMatch: X-test-header1
30-
- name: testheader2
31-
exactMatch: X-test-header2
32-
- name: testheader3
33-
exactMatch: X-test-header3
34-
pathPrefix: /foo
28+
- exactMatch: X-test-header1
29+
name: testheader1
30+
- exactMatch: X-test-header2
31+
name: testheader2
32+
- exactMatch: X-test-header3
33+
name: testheader3
34+
path:
35+
prefix: /foo
3536
queryParameters:
36-
- name: query-param
37-
exactMatch: q
38-
- name: region
39-
exactMatch: region
37+
- exactMatch: q
38+
name: query-param
39+
- exactMatch: region
40+
name: region
4041
targetPool: my-target-pool
4142
webSocket: false
4243
networks:
@@ -50,7 +51,7 @@ options:
5051
allowedSourceRanges:
5152
- 10.100.42.0/24
5253
ephemeralAddress: true
53-
privateNetworkOnly: true
54+
privateNetworkOnly: false
5455

5556
# Enable observability features. Appropriate credentials must be made
5657
# available using the credentials endpoint

0 commit comments

Comments
 (0)