<p>I'm running into issues with my ingress.yml. Getting this error:</p>
<p><code>error: error validating &quot;ingress.yml&quot;: error validating data:</code> <code>[ValidationError(Ingress.spec.rules[0].http.paths[0].backend): unknown field</code> <code>&quot;service.name&quot; in io.k8s.api.networking.v1.IngressBackend,</code> <code>ValidationError(Ingress.spec.rules[0].http.paths[0].backend): unknown field &quot;service.port.number&quot; in io.k8s.api.networking.v1.IngressBackend,</code> <code>ValidationError(Ingress.spec.rules[0].http.paths[1].backend): unknown field &quot;service.name&quot; in io.k8s.api.networking.v1.IngressBackend, ValidationError(Ingress.spec.rules[0].http.paths[1].backend): unknown field &quot;service.port.number&quot; in io.k8s.api.networking.v1.IngressBackend];</code></p>
<p>Based on this <a href="https://kubernetes.io/docs/reference/using-api/deprecation-guide/#ingressclass-v122" rel="nofollow noreferrer">documentation</a> serviceName changed to service.name and servicePort changed to service.port and so on. Here is the ingress file:</p>
<pre><code>apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
  name: bitwarden
  namespace: bitwarden
  labels:
    app: bitwarden
  annotations:
    # the name of the nginx-ingress-controller class
    kubernetes.io/ingress.class: nginx
    nginx.ingress.kubernetes.io/configuration-snippet: |
      more_set_headers &quot;Request-Id: $req_id&quot;;
    nginx.ingress.kubernetes.io/connection-proxy-header: &quot;keep-alive&quot;
    nginx.ingress.kubernetes.io/enable-cors: &quot;true&quot;
    nginx.ingress.kubernetes.io/force-ssl-redirect: &quot;true&quot;
    nginx.ingress.kubernetes.io/limit-connections: &quot;25&quot;
    nginx.ingress.kubernetes.io/limit-rps: &quot;15&quot;
    nginx.ingress.kubernetes.io/proxy-body-size: 1024m
    nginx.ingress.kubernetes.io/proxy-connect-timeout: &quot;10&quot;
    nginx.ingress.kubernetes.io/proxy-send-timeout: &quot;1800&quot;
    nginx.ingress.kubernetes.io/proxy-read-timeout: &quot;1800&quot;
    nginx.ingress.kubernetes.io/ssl-redirect: &quot;true&quot;
    cert-manager.io/cluster-issuer: &quot;letsencrypt-prod&quot;
spec:
  tls:
  - hosts:
    - kryskanbit.ddns.net
    secretName: bitwarden-tls
  rules:
  - host: kryskanbit.ddns.net
    http:
      paths:
      - path: /
        pathType: Prefix
        backend:
          service.name: bitwarden
          service.port.number: 80
      - path: /notifications/hub
        pathType: Exact
        backend:
          service.name: bitwarden
          service.port.number: 3012
</code></pre>

Krychaz
<p>It should be as mentioned below:</p>
<pre><code>backend:
    serviceName: bitwarden
    servicePort: 80
</code></pre>
