apiVersion: networking.k8s.io/v1 kind: Ingress metadata: name: apicore-backend annotations: nginx.ingress.kubernetes.io/rewrite-target: /$2 spec: ingressClassName: nginx rules: - host: api.apicore.example.com http: paths: - path: /()(.*) pathType: ImplementationSpecific backend: service: name: apicore-backend port: number: 80