# Copyright Contributors to the Open Cluster Management project

apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
  labels:
    app: clusterlifecycle-state-metrics
  annotations:
    nginx.ingress.kubernetes.io/rewrite-target: /$2
  name: clusterlifecycle-state-metrics
  namespace: open-cluster-management
spec:
  ingressClassName: nginx
  rules:
  - http:
      paths:
      - path: /clusterlifecycle-state-metrics(/|$)(.*)
        pathType: Prefix
        backend:
          service:
            name: clusterlifecycle-state-metrics
            port:
              number: 8080
