apiVersion: v1
kind: Service
metadata:
  name: nginx-metrics-svc
  namespace: ingress-nginx
  labels:
    app: nginx-metrics-svc
spec:
  selector:
    app.kubernetes.io/name: ingress-nginx
    app.kubernetes.io/part-of: ingress-nginx
  ports:
  - protocol: TCP
    name: prometheus
    port: 10254
    targetPort: 10254
