apiVersion: v1
kind: Service
metadata:
  name: prometheus-svc
spec:
  type: NodePort
  selector:
    app: prometheus
  ports:
  - name: prometheus-ui
    protocol: TCP
    port: 9090
    targetPort: 9090
    nodePort: 30000