prometheus-service.yaml 315 B

1234567891011121314151617
  1. apiVersion: v1
  2. kind: Service
  3. metadata:
  4. name: prometheus-service
  5. namespace: monitoring
  6. annotations:
  7. prometheus.io/scrape: 'true'
  8. prometheus.io/port: '9090'
  9. spec:
  10. selector:
  11. app: prometheus-server
  12. type: NodePort
  13. ports:
  14. - port: 8080
  15. targetPort: 9090
  16. nodePort: 30000