azure-private-dns: Fix LoadBalancer example

annotations should be inside the metadata object.
This commit is contained in:
Orgad Shaneh 2024-08-07 08:05:06 +03:00 committed by GitHub
parent 3b35ea6ee7
commit f7e8ca19b3
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -330,12 +330,12 @@ Apply the following manifest to create a service of type `LoadBalancer`. This wi
---
apiVersion: v1
kind: Service
annotations:
metadata:
name: nginx-svc
annotations:
service.beta.kubernetes.io/azure-load-balancer-internal: "true"
external-dns.alpha.kubernetes.io/hostname: server.example.com
external-dns.alpha.kubernetes.io/internal-hostname: server-clusterip.example.com
metadata:
name: nginx-svc
spec:
ports:
- port: 80