You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: articles/application-gateway/for-containers/how-to-backend-mtls-gateway-api.md
+17-17Lines changed: 17 additions & 17 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -28,9 +28,9 @@ See the following figure:
28
28
29
29
## Prerequisites
30
30
31
-
1. If following the BYO deployment strategy, ensure you have set up your Application Gateway for Containers resources and [ALB Controller](quickstart-deploy-application-gateway-for-containers-alb-controller.md)
32
-
2. If following the ALB managed deployment strategy, ensure you have provisioned your [ALB Controller](quickstart-deploy-application-gateway-for-containers-alb-controller.md) and provisioned the Application Gateway for Containers resources via the [ApplicationLoadBalancer custom resource](quickstart-create-application-gateway-for-containers-managed-by-alb-controller.md).
33
-
3. Deploy sample HTTP application
31
+
1. If following the BYO deployment strategy, ensure you set up your Application Gateway for Containers resources and [ALB Controller](quickstart-deploy-application-gateway-for-containers-alb-controller.md).
32
+
2. If following the ALB managed deployment strategy, ensure you provision your [ALB Controller](quickstart-deploy-application-gateway-for-containers-alb-controller.md) and provision the Application Gateway for Containers resources via the [ApplicationLoadBalancer custom resource](quickstart-create-application-gateway-for-containers-managed-by-alb-controller.md).
33
+
3. Deploy sample HTTP application:
34
34
35
35
Apply the following deployment.yaml file on your cluster to create a sample web application and deploy sample secrets to demonstrate backend mutual authentication (mTLS).
36
36
@@ -40,17 +40,17 @@ See the following figure:
40
40
41
41
This command creates the following on your cluster:
42
42
43
-
-a namespace called `test-infra`
44
-
-one service called `mtls-app` in the `test-infra` namespace
45
-
-one deployment called `mtls-app` in the `test-infra` namespace
46
-
-one config map called `mtls-app-nginx-cm` in the `test-infra` namespace
47
-
-four secrets called `backend.com`, `frontend.com`, `gateway-client-cert`, and `ca.bundle` in the `test-infra` namespace
43
+
-A namespace called `test-infra`
44
+
-One service called `mtls-app` in the `test-infra` namespace
45
+
-One deployment called `mtls-app` in the `test-infra` namespace
46
+
-One config map called `mtls-app-nginx-cm` in the `test-infra` namespace
47
+
-Four secrets called `backend.com`, `frontend.com`, `gateway-client-cert`, and `ca.bundle` in the `test-infra` namespace
48
48
49
49
## Deploy the required Gateway API resources
50
50
51
51
# [ALB managed deployment](#tab/alb-managed)
52
52
53
-
Create a gateway:
53
+
Create a gateway
54
54
55
55
```bash
56
56
kubectl apply -f - <<EOF
@@ -129,13 +129,13 @@ EOF
129
129
130
130
---
131
131
132
-
Once the gateway resource has been created, ensure the status is valid, the listener is _Programmed_, and an address is assigned to the gateway.
132
+
Once the gateway resource is created, ensure the status is valid, the listener is _Programmed_, and an address is assigned to the gateway.
133
133
134
134
```bash
135
135
kubectl get gateway gateway-01 -n test-infra -o yaml
136
136
```
137
137
138
-
Example output of successful gateway creation.
138
+
Example output of successful gateway creation:
139
139
140
140
```yaml
141
141
status:
@@ -182,7 +182,7 @@ status:
182
182
kind: HTTPRoute
183
183
```
184
184
185
-
Once the gateway has been created, create an HTTPRoute resource.
185
+
Once the gateway is created, create an HTTPRoute resource.
186
186
187
187
```bash
188
188
kubectl apply -f - <<EOF
@@ -201,13 +201,13 @@ spec:
201
201
EOF
202
202
```
203
203
204
-
Once the HTTPRoute resource has been created, ensure the route has been _Accepted_ and the Application Gateway for Containers resource has been _Programmed_.
204
+
Once the HTTPRoute resource is created, ensure the route is _Accepted_ and the Application Gateway for Containers resource is _Programmed_.
205
205
206
206
```bash
207
207
kubectl get httproute https-route -n test-infra -o yaml
208
208
```
209
209
210
-
Verify the status of the Application Gateway for Containers resource has been successfully updated.
210
+
Verify the status of the Application Gateway for Containers resource is successfully updated.
211
211
212
212
```yaml
213
213
status:
@@ -271,13 +271,13 @@ spec:
271
271
EOF
272
272
```
273
273
274
-
Once the BackendTLSPolicy object has been created check the status on the object to ensure that the policy is valid.
274
+
Once the BackendTLSPolicy object is created, check the status on the object to ensure that the policy is valid:
275
275
276
276
```bash
277
277
kubectl get backendtlspolicy -n test-infra mtls-app-tls-policy -o yaml
278
278
```
279
279
280
-
Example output of valid BackendTLSPolicy object creation.
280
+
Example output of valid BackendTLSPolicy object creation:
281
281
282
282
```yaml
283
283
status:
@@ -292,7 +292,7 @@ status:
292
292
293
293
## Test access to the application
294
294
295
-
Now we're ready to send some traffic to our sample application, via the FQDN assigned to the frontend. Use the following command to get the FQDN.
295
+
Now we're ready to send some traffic to our sample application, via the FQDN assigned to the frontend. Use the following command to get the FQDN:
296
296
297
297
```bash
298
298
fqdn=$(kubectl get gateway gateway-01 -n test-infra -o jsonpath='{.status.addresses[0].value}')
Copy file name to clipboardExpand all lines: articles/application-gateway/for-containers/how-to-multiple-site-hosting-gateway-api.md
+7-7Lines changed: 7 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,5 +1,5 @@
1
1
---
2
-
title: Multiple site hosting with Application Gateway for Containers - Gateway API
2
+
title: Multi-site hosting with Application Gateway for Containers - Gateway API
3
3
description: Learn how to host multiple sites with Application Gateway for Containers using the Gateway API.
4
4
services: application-gateway
5
5
author: greglin
@@ -10,7 +10,7 @@ ms.date: 02/27/2024
10
10
ms.author: greglin
11
11
---
12
12
13
-
# Multiple site hosting with Application Gateway for Containers - Gateway API
13
+
# Multi-site hosting with Application Gateway for Containers - Gateway API
14
14
15
15
This document helps you set up an example application that uses the resources from Gateway API to demonstrate hosting multiple sites on the same Kubernetes Gateway resource / Application Gateway for Containers frontend. Steps are provided to:
16
16
@@ -25,9 +25,9 @@ Application Gateway for Containers enables multi-site hosting by allowing you to
25
25
26
26
## Prerequisites
27
27
28
-
1. If you follow the BYO deployment strategy, ensure you set up your Application Gateway for Containers resources and [ALB Controller](quickstart-deploy-application-gateway-for-containers-alb-controller.md)
28
+
1. If you follow the BYO deployment strategy, ensure you set up your Application Gateway for Containers resources and [ALB Controller](quickstart-deploy-application-gateway-for-containers-alb-controller.md).
29
29
2. If you follow the ALB managed deployment strategy, ensure provisioning of your [ALB Controller](quickstart-deploy-application-gateway-for-containers-alb-controller.md) and the Application Gateway for Containers resources via the [ApplicationLoadBalancer custom resource](quickstart-create-application-gateway-for-containers-managed-by-alb-controller.md).
30
-
3. Deploy sample HTTP application
30
+
3. Deploy sample HTTP application:<br>
31
31
Apply the following deployment.yaml file on your cluster to create a sample web application to demonstrate path, query, and header based routing.
32
32
33
33
```bash
@@ -36,9 +36,9 @@ Application Gateway for Containers enables multi-site hosting by allowing you to
36
36
37
37
This command creates the following on your cluster:
38
38
39
-
-a namespace called `test-infra`
40
-
-two services called `backend-v1` and `backend-v2` in the `test-infra` namespace
41
-
-two deployments called `backend-v1` and `backend-v2` in the `test-infra` namespace
39
+
-A namespace called `test-infra`
40
+
-Two services called `backend-v1` and `backend-v2` in the `test-infra` namespace
41
+
-Two deployments called `backend-v1` and `backend-v2` in the `test-infra` namespace
Copy file name to clipboardExpand all lines: articles/application-gateway/for-containers/how-to-multiple-site-hosting-ingress-api.md
+5-5Lines changed: 5 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -24,9 +24,9 @@ Application Gateway for Containers enables multi-site hosting by allowing you to
24
24
25
25
## Prerequisites
26
26
27
-
1. If you follow the BYO deployment strategy, ensure that you set up your Application Gateway for Containers resources and [ALB Controller](quickstart-deploy-application-gateway-for-containers-alb-controller.md)
27
+
1. If you use the BYO deployment strategy, ensure that you set up your Application Gateway for Containers resources and [ALB Controller](quickstart-deploy-application-gateway-for-containers-alb-controller.md).
28
28
2. If you follow the ALB managed deployment strategy, ensure provisioning of your [ALB Controller](quickstart-deploy-application-gateway-for-containers-alb-controller.md) and the Application Gateway for Containers resources via the [ApplicationLoadBalancer custom resource](quickstart-create-application-gateway-for-containers-managed-by-alb-controller.md).
29
-
3. Deploy sample HTTP application
29
+
3. Deploy sample HTTP application:<br>
30
30
Apply the following deployment.yaml file on your cluster to create a sample web application to demonstrate path, query, and header based routing.
31
31
32
32
```bash
@@ -35,9 +35,9 @@ Application Gateway for Containers enables multi-site hosting by allowing you to
35
35
36
36
This command creates the following on your cluster:
37
37
38
-
-a namespace called `test-infra`
39
-
-two services called `backend-v1` and `backend-v2` in the `test-infra` namespace
40
-
-two deployments called `backend-v1` and `backend-v2` in the `test-infra` namespace
38
+
-A namespace called `test-infra`
39
+
-Two services called `backend-v1` and `backend-v2` in the `test-infra` namespace
40
+
-Two deployments called `backend-v1` and `backend-v2` in the `test-infra` namespace
Copy file name to clipboardExpand all lines: articles/application-gateway/for-containers/how-to-traffic-splitting-gateway-api.md
+9-9Lines changed: 9 additions & 9 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -24,9 +24,9 @@ Application Gateway for Containers enables you to set weights and shift traffic
24
24
25
25
## Prerequisites
26
26
27
-
1. If following the BYO deployment strategy, ensure you have set up your Application Gateway for Containers resources and [ALB Controller](quickstart-deploy-application-gateway-for-containers-alb-controller.md)
27
+
1. If following the BYO deployment strategy, ensure you set up your Application Gateway for Containers resources and [ALB Controller](quickstart-deploy-application-gateway-for-containers-alb-controller.md).
28
28
2. If following the ALB managed deployment strategy, ensure you have provisioned your [ALB Controller](quickstart-deploy-application-gateway-for-containers-alb-controller.md) and provisioned the Application Gateway for Containers resources via the [ApplicationLoadBalancer custom resource](quickstart-create-application-gateway-for-containers-managed-by-alb-controller.md).
29
-
3. Deploy sample HTTP application
29
+
3. Deploy sample HTTP application:<br>
30
30
Apply the following deployment.yaml file on your cluster to create a sample web application to demonstrate traffic splitting / weighted round robin support.
31
31
32
32
```bash
@@ -35,9 +35,9 @@ Application Gateway for Containers enables you to set weights and shift traffic
35
35
36
36
This command creates the following on your cluster:
37
37
38
-
-a namespace called `test-infra`
39
-
-two services called `backend-v1` and `backend-v2` in the `test-infra` namespace
40
-
-two deployments called `backend-v1` and `backend-v2` in the `test-infra` namespace
38
+
-A namespace called `test-infra`
39
+
-Two services called `backend-v1` and `backend-v2` in the `test-infra` namespace
40
+
-Two deployments called `backend-v1` and `backend-v2` in the `test-infra` namespace
41
41
42
42
## Deploy the required Gateway API resources
43
43
@@ -109,7 +109,7 @@ EOF
109
109
110
110
---
111
111
112
-
Once the gateway resource has been created, ensure the status is valid, the listener is _Programmed_, and an address is assigned to the gateway.
112
+
Once the gateway resource is created, ensure the status is valid, the listener is _Programmed_, and an address is assigned to the gateway.
113
113
114
114
```bash
115
115
kubectl get gateway gateway-01 -n test-infra -o yaml
@@ -162,7 +162,7 @@ status:
162
162
kind: HTTPRoute
163
163
```
164
164
165
-
Once the gateway has been created, create an HTTPRoute
165
+
Once the gateway is created, create an HTTPRoute
166
166
167
167
```bash
168
168
kubectl apply -f - <<EOF
@@ -185,7 +185,7 @@ spec:
185
185
EOF
186
186
```
187
187
188
-
Once the HTTPRoute resource has been created, ensure the route has been _Accepted_ and the Application Gateway for Containers resource has been _Programmed_.
188
+
Once the HTTPRoute resource is created, ensure the route is _Accepted_ and the Application Gateway for Containers resource is _Programmed_.
189
189
190
190
```bash
191
191
kubectl get httproute traffic-split-route -n test-infra -o yaml
@@ -225,7 +225,7 @@ status:
225
225
226
226
## Test Access to the Application
227
227
228
-
Now we're ready to send some traffic to our sample application, via the FQDN assigned to the frontend. Use the command below to get the FQDN.
228
+
Now we're ready to send some traffic to our sample application, via the FQDN assigned to the frontend. Use the following command to get the FQDN:
229
229
230
230
```bash
231
231
fqdn=$(kubectl get gateway gateway-01 -n test-infra -o jsonpath='{.status.addresses[0].value}')
Copy file name to clipboardExpand all lines: articles/application-gateway/for-containers/how-to-url-redirect-gateway-api.md
+6-6Lines changed: 6 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -22,7 +22,7 @@ URL redirects take advantage of the [RequestRedirect rule filter](https://gatewa
22
22
23
23
A redirect sets the response status code returned to clients to understand the purpose of the redirect. The following types of redirection are supported:
24
24
25
-
- 301 (Moved permanently): Indicates that the target resource has been assigned a new permanent URI. Any future references to this resource uses one of the enclosed URIs. Use 301 status code for HTTP to HTTPS redirection.
25
+
- 301 (Moved permanently): Indicates that the target resource is assigned a new permanent URI. Future references to this resource use one of the enclosed URIs. Use 301 status code for HTTP to HTTPS redirection.
26
26
- 302 (Found): Indicates that the target resource is temporarily under a different URI. Since the redirection can change on occasion, the client should continue to use the effective request URI for future requests.
27
27
28
28
## Redirection capabilities
@@ -32,18 +32,18 @@ A redirect sets the response status code returned to clients to understand the p
32
32
- Hostname redirection matches the fully qualified domain name (fqdn) of the request. This is commonly observed in redirecting an old domain name to a new domain name; such as `contoso.com` to `fabrikam.com`.
33
33
34
34
- Path redirection has two different variants: `prefix` and `full`.
35
-
-`Prefix` redirection type will redirect all requests starting with a defined value. For example, a prefix of /shop would match /shop and any text after. For example, /shop, /shop/checkout, and /shop/item-a would all redirect to /shop as well.
36
-
-`Full` redirection type matches an exact value. For example, /shop could redirect to /store, but /shop/checkout wouldn't redirect to /store.
35
+
-`Prefix` redirection type will redirect all requests starting with a defined value. For example: a prefix of /shop would match /shop and any text after. For example, /shop, /shop/checkout, and /shop/item-a would all redirect to /shop as well.
36
+
-`Full` redirection type matches an exact value. For example: /shop could redirect to /store, but /shop/checkout wouldn't redirect to /store.
37
37
38
38
The following figure illustrates an example of a request destined for _contoso.com/summer-promotion_ being redirected to _contoso.com/shop/category/5_. In addition, a second request initiated to contoso.com via http protocol is returned a redirect to initiate a new connection to its https variant.
39
39
40
40
[](./media/how-to-url-redirect-gateway-api/url-redirect.png#lightbox)
41
41
42
42
## Prerequisites
43
43
44
-
1. If following the BYO deployment strategy, ensure you have set up your Application Gateway for Containers resources and [ALB Controller](quickstart-deploy-application-gateway-for-containers-alb-controller.md)
45
-
2. If following the ALB managed deployment strategy, ensure you have provisioned your [ALB Controller](quickstart-deploy-application-gateway-for-containers-alb-controller.md) and provisioned the Application Gateway for Containers resources via the [ApplicationLoadBalancer custom resource](quickstart-create-application-gateway-for-containers-managed-by-alb-controller.md).
46
-
3. Deploy sample HTTP application
44
+
1. If following the BYO deployment strategy, ensure you set up your Application Gateway for Containers resources and [ALB Controller](quickstart-deploy-application-gateway-for-containers-alb-controller.md).
45
+
2. If following the ALB managed deployment strategy, ensure you provision your [ALB Controller](quickstart-deploy-application-gateway-for-containers-alb-controller.md) and provision the Application Gateway for Containers resources via the [ApplicationLoadBalancer custom resource](quickstart-create-application-gateway-for-containers-managed-by-alb-controller.md).
46
+
3. Deploy sample HTTP application:
47
47
48
48
Apply the following deployment.yaml file on your cluster to deploy a sample TLS certificate to demonstrate redirect capabilities.
Copy file name to clipboardExpand all lines: articles/application-gateway/for-containers/how-to-url-redirect-ingress-api.md
+5-5Lines changed: 5 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -22,7 +22,7 @@ URL redirects take advantage of the [RequestRedirect rule filter](https://gatewa
22
22
23
23
A redirect sets the response status code returned to clients to understand the purpose of the redirect. The following types of redirection are supported:
24
24
25
-
- 301 (Moved permanently): Indicates that the target resource has been assigned a new permanent URI. Any future references to this resource use one of the enclosed URIs. Use 301 status code for HTTP to HTTPS redirection.
25
+
- 301 (Moved permanently): Indicates that the target resource is assigned a new permanent URI. Any future references to this resource use one of the enclosed URIs. Use 301 status code for HTTP to HTTPS redirection.
26
26
- 302 (Found): Indicates that the target resource is temporarily under a different URI. Since the redirection can change on occasion, the client should continue to use the effective request URI for future requests.
27
27
28
28
## Redirection capabilities
@@ -32,7 +32,7 @@ A redirect sets the response status code returned to clients to understand the p
32
32
- Hostname redirection matches the fully qualified domain name (fqdn) of the request. This is commonly observed in redirecting an old domain name to a new domain name; such as `contoso.com` to `fabrikam.com`.
33
33
34
34
- Path redirection has two different variants: `prefix` and `full`.
35
-
-`Prefix` redirection type will redirect all requests starting with a defined value. For example, a prefix of /shop would match /shop and any text after. For example, /shop, /shop/checkout, and /shop/item-a would all redirect to /shop as well.
35
+
-`Prefix` redirection type will redirect all requests starting with a defined value. For example, a prefix of /shop would match /shop and any text after. For example, /shop, /shop/checkout, and /shop/item-a would all redirect to /shop as well.
36
36
-`Full` redirection type matches an exact value. For example, /shop could redirect to /store, but /shop/checkout wouldn't redirect to /store.
37
37
38
38
The following figure illustrates an example of a request destined for _contoso.com/summer-promotion_ being redirected to _contoso.com/shop/category/5_. In addition, a second request initiated to contoso.com via http protocol is returned a redirect to initiate a new connection to its https variant.
@@ -41,9 +41,9 @@ The following figure illustrates an example of a request destined for _contoso.c
41
41
42
42
## Prerequisites
43
43
44
-
1. If following the BYO deployment strategy, ensure you have set up your Application Gateway for Containers resources and [ALB Controller](quickstart-deploy-application-gateway-for-containers-alb-controller.md)
45
-
2. If following the ALB managed deployment strategy, ensure you have provisioned your [ALB Controller](quickstart-deploy-application-gateway-for-containers-alb-controller.md) and provisioned the Application Gateway for Containers resources via the [ApplicationLoadBalancer custom resource](quickstart-create-application-gateway-for-containers-managed-by-alb-controller.md).
46
-
3. Deploy sample HTTP application
44
+
1. If following the BYO deployment strategy, ensure you set up your Application Gateway for Containers resources and [ALB Controller](quickstart-deploy-application-gateway-for-containers-alb-controller.md).
45
+
2. If following the ALB managed deployment strategy, ensure you provision your [ALB Controller](quickstart-deploy-application-gateway-for-containers-alb-controller.md) and provision the Application Gateway for Containers resources via the [ApplicationLoadBalancer custom resource](quickstart-create-application-gateway-for-containers-managed-by-alb-controller.md).
46
+
3. Deploy sample HTTP application:
47
47
48
48
Apply the following deployment.yaml file on your cluster to deploy a sample TLS certificate to demonstrate redirect capabilities.
0 commit comments