apiVersion: v1
kind: Service
metadata:
  name: nginx-metrics
  labels:
    app: nginx-metrics
spec:
  selector:
    app: nginx-metrics
  type: ClusterIP
  ports:
  - name: http
    port: 80
    protocol: TCP
    targetPort: 80
  - name: nginx-prometheus-exporter
    port: 9113
    protocol: TCP
    targetPort: 9113