apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
  name: test
  annotations:
    kubernetes.io/ingress.class: nginx
spec:
  rules:
    - host: test.example.com
      http:
        paths:
          - pathType: Prefix
            backend:
              service:
                name: my-nginx
                port: 
                  number: 80
            path: /
