shema is now different
see example here:
https://github.com/caddyserver/ingress/blob/main/kubernetes/sample/example-ingress.yaml
it is this part that changed:
spec:
rules:
- host: example1.kubernetes.localhost
http:
paths:
- path: /hello1
pathType: Prefix
backend:
service:
name: example1
port:
number: 8080