title: Get error "unknown field "serviceName" in io.k8s.api.networking.v1.IngressBackend" when switch from v1beta1 to v1 in Kubernetes Ingress
body: <p>I had the below YAML for my Ingress and it worked (and continues to work):</p>
  <pre class="lang-yaml prettyprint-override"><code>apiVersion: networking.k8s.io/v1beta1
  kind: Ingress
  metadata:
    name: test-ingress
    namespace: test-layer
  annotations:
      nginx.ingress.kubernetes.io/rewrite-target: /$1
  spec:
    rules:
      - host: mylocalhost.com
        http:
          paths:
            - path: /
              backend:
                serviceName: test-app
                servicePort: 5000
  </code></pre>
  <p>However, it tells me that it's deprecated and I should change to using <code>networking.k8s.io/v1</code>. When I do that (see below) it throws an error.</p>
  <pre class="lang-yaml prettyprint-override"><code>apiVersion: networking.k8s.io/v1
  kind: Ingress
  metadata:
    name: test-ingress
    namespace: test-layer
  annotations:
      nginx.ingress.kubernetes.io/rewrite-target: /$1
  spec:
    rules:
      - host: mylocalhost.com
        http:
          paths:
            - path: /
              backend:
                serviceName: test-app
                servicePort: 5000
  </code></pre>
  <p><strong>ERROR</strong></p>
  <pre><code>error: error validating &quot;test-ingress.yaml&quot;: 
    error validating data: [ValidationError(Ingress.spec.rules[0].http.paths[0].backend): 
      unknown field &quot;serviceName&quot; in io.k8s.api.networking.v1.IngressBackend, 
      ValidationError(Ingress.spec.rules[0].http.paths[0].backend): 
        unknown field &quot;servicePort&quot; in io.k8s.api.networking.v1.IngressBackend]; 
        if you choose to ignore these errors, turn validation off with --validate=false
  </code></pre>
  <p>Other than changing the API version, I made no other changes.</p>
  <p><code>kubectl version</code> returns:</p>
  <pre><code>Client Version: version.Info{Major:&quot;1&quot;, Minor:&quot;19&quot;, GitVersion:&quot;v1.19.0&quot;, GitCommit:&quot;e19964183377d0ec2052d1f1fa930c4d7575bd50&quot;, GitTreeState:&quot;clean&quot;, BuildDate:&quot;2020-08-26T14:30:33Z&quot;, GoVersion:&quot;go1.15&quot;, Compiler:&quot;gc&quot;, Platform:&quot;windows/amd64&quot;}
  
  Server Version: version.Info{Major:&quot;1&quot;, Minor:&quot;19&quot;, GitVersion:&quot;v1.19.0&quot;, GitCommit:&quot;e19964183377d0ec2052d1f1fa930c4d7575bd50&quot;, GitTreeState:&quot;clean&quot;, BuildDate:&quot;2020-08-26T14:23:04Z&quot;, GoVersion:&quot;go1.15&quot;, Compiler:&quot;gc&quot;, Platform:&quot;linux/amd64&quot;}
  </code></pre>