---
apiVersion: v1
kind: Service
metadata:
  labels:
    app: sample
    component: prometheus
  name: prometheus
  namespace: app
spec:
  type: NodePort
  ports:
    - name: http
      port: 9090
      protocol: TCP
      targetPort: 9090
      nodePort: 31111
  selector:
    app: prometheus
