apiVersion: v1 kind: Service metadata: name: external-dns namespace: k8s-gateway spec: type: LoadBalancer selector: k8s-app: "excoredns" ports: - {name: metrics, protocol: TCP, port: 9153, targetPort: metrics} - {name: tcp-53, protocol: TCP, port: 53} - {name: udp-53, protocol: UDP, port: 53} --- apiVersion: v1 kind: Service metadata: name: external-dns-metrics namespace: k8s-gateway spec: type: ClusterIP selector: k8s-app: "excoredns" ports: - {name: metrics, protocol: TCP, port: 9153, targetPort: metrics}