apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
  name: wildcard-ingress
  annotations:
     kubernetes.io/ingress.class: "nginx"
spec:
  tls:
  - hosts:
    - wildcard.example.com
  rules:
  - host: "wildcard.example.com"
    http:
      paths:
      - path: /backend2
        pathType: Prefix
        backend:
          service:
            name: backend2-svc
            port:
              number: 80
      - path: /backend1
        pathType: Prefix
        backend:
          service:
            name: backend1-svc
            port:
              number: 80
