apiVersion: v1
kind: Service
metadata:
  name: plant-simulator-prometheus
  namespace: plant-simulator-monitoring
  # namespace: monitoring
  annotations:
      prometheus.io/scrape: 'true'
      prometheus.io/path:   /metrics
      prometheus.io/port:   '8080'
  
spec:
  selector: 
    app: plant-simulator-prometheus
  type: ClusterIP  
  ports:
    - port: 8080
      targetPort: 8080