---
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
  name: prometheus
  namespace: monitoring
  annotations:
    cert-manager.io/issuer: letsencrypt-http01-staging
spec:
  ingressClassName: external-nginx
  tls:
  - hosts:
    - prometheus-v4.devopsbyexample.io
    secretName: prometheus-v4-devopsbyexample-io-key-pair
  rules:
  - host: prometheus-v4.devopsbyexample.io
    http:
      paths:
      - path: /
        pathType: Prefix
        backend:
          service:
            name: prometheus-operated
            port:
              number: 9090
