prometheus-service-local.yaml 224 B

12345678910111213
  1. apiVersion: v1
  2. kind: Service
  3. metadata:
  4. name: prometheus
  5. namespace: monitoring
  6. spec:
  7. ports:
  8. - name: web
  9. port: 9090
  10. targetPort: web
  11. selector:
  12. prometheus: prometheus-persistant
  13. sessionAffinity: ClientIP