Optionalresourceresource is an ObjectRef to another Kubernetes resource in the namespace of the Ingress object. If resource is specified, a service.Name and service.Port must not be specified. This is a mutually exclusive setting with "Service".
Optionalserviceservice references a service as a backend. This is a mutually exclusive setting with "Resource".
IngressBackend describes all endpoints for a given service and port.