Skip to content

Azure Load Balancer notes #16456

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 5 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .spelling
Original file line number Diff line number Diff line change
Expand Up @@ -910,6 +910,7 @@ NLBs
no-brainer
Node.js
nodeAffinity
non-200
non-conformant
non-L4
non-mTLS
Expand Down
39 changes: 39 additions & 0 deletions content/en/docs/setup/platform-setup/azure/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -58,3 +58,42 @@ For the `az` cli option, complete `az login` authentication OR use cloud shell,
{{< text bash >}}
$ az aks get-credentials --resource-group myResourceGroup --name myAKSCluster
{{< /text >}}

### Using Gateway API with Azure

If you are using Gateway API with AKS, you might also need add the following configuration to
the `Gateway` resource:

{{< text yaml >}}
infrastructure:
annotations:
service.beta.kubernetes.io/port_<http[s] port>_health-probe_protocol: tcp
{{< /text >}}

where `<http[s] port>` is the port number of your HTTP(S) listener.
If you have multiple HTTP(S) listeners, you need to add an annotation for each listener.
This annotation is required for Azure Load Balancer health checks to work when the `/` path does not respond with a 200.

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:

{{< text bash >}}
$ kubectl apply -f - <<EOF
apiVersion: gateway.networking.k8s.io/v1
kind: Gateway
metadata:
name: httpbin-gateway
spec:
infrastructure:
annotations:
service.beta.kubernetes.io/port_80_health-probe_protocol: tcp
gatewayClassName: istio
listeners:
- name: http
hostname: "httpbin.example.com"
port: 80
protocol: HTTP
allowedRoutes:
namespaces:
from: Same
EOF
{{< /text >}}