Skip to content

Commit 8652b61

Browse files
authored
Azure Load Balancer notes (#16456)
* Azure Load Balancer notes * make gen * Have azure specific stuff in platform * Spell
1 parent 207a6cf commit 8652b61

File tree

2 files changed

+40
-0
lines changed

2 files changed

+40
-0
lines changed

.spelling

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -928,6 +928,7 @@ NLBs
928928
no-brainer
929929
Node.js
930930
nodeAffinity
931+
non-200
931932
non-conformant
932933
non-L4
933934
non-mTLS

content/en/docs/setup/platform-setup/azure/index.md

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,3 +58,42 @@ For the `az` cli option, complete `az login` authentication OR use cloud shell,
5858
{{< text bash >}}
5959
$ az aks get-credentials --resource-group myResourceGroup --name myAKSCluster
6060
{{< /text >}}
61+
62+
### Using Gateway API with Azure
63+
64+
If you are using Gateway API with AKS, you might also need add the following configuration to
65+
the `Gateway` resource:
66+
67+
{{< text yaml >}}
68+
infrastructure:
69+
annotations:
70+
service.beta.kubernetes.io/port_<http[s] port>_health-probe_protocol: tcp
71+
{{< /text >}}
72+
73+
where `<http[s] port>` is the port number of your HTTP(S) listener.
74+
If you have multiple HTTP(S) listeners, you need to add an annotation for each listener.
75+
This annotation is required for Azure Load Balancer health checks to work when the `/` path does not respond with a 200.
76+
77+
For example, if you are following the [Ingress Gateways](docs/setup/getting-started) example using Gateway API, you will need deploy the following `Gateway` instead:
78+
79+
{{< text bash >}}
80+
$ kubectl apply -f - <<EOF
81+
apiVersion: gateway.networking.k8s.io/v1
82+
kind: Gateway
83+
metadata:
84+
name: httpbin-gateway
85+
spec:
86+
infrastructure:
87+
annotations:
88+
service.beta.kubernetes.io/port_80_health-probe_protocol: tcp
89+
gatewayClassName: istio
90+
listeners:
91+
- name: http
92+
hostname: "httpbin.example.com"
93+
port: 80
94+
protocol: HTTP
95+
allowedRoutes:
96+
namespaces:
97+
from: Same
98+
EOF
99+
{{< /text >}}

0 commit comments

Comments
 (0)