title: spec.rules[0].http.backend.servicePort: Invalid value: \"80\": must contain at least one letter or number(a-z,0-9)", Error - createNamespacedIngress()
body: <p>spec.rules[0].http.backend.servicePort: Invalid value: &quot;80&quot;: must contain at least one letter or number (a-z, 0-9)&quot;, Error while calling NetworkingV1beta1Api.createNamespacedIngress() api</p>
  <p>I am using io.kubernetes:client-java-api:12.0.1 version as a dependency in gradle</p>
  <p>Below is my ingress yaml file</p>
  <pre><code>apiVersion: networking.k8s.io/v1beta1
  kind: Ingress
  metadata:
    name: myserver-userid
    namespace: myserver
    annotations:
      kubernetes.io/ingress.class: nginx
  spec:
    rules:
      - host: userid-myserver
        http:
          paths:
            - backend:
                serviceName:  myserver
                servicePort: 80
    tls:
      - hosts:
          - userid-myserver
        secretName: myserver-tls
  </code></pre>
  <p>with below line I am creating NetworkingV1beta1Ingress object.</p>
  <pre><code>NetworkingV1beta1Ingress codeServerV1Ingress = yaml.loadAs(ingressYamlFile, NetworkingV1beta1Ingress.class);
  </code></pre>
  <p>by calling below api I get error</p>
  <pre><code>NetworkingV1beta1Ingress namespacedIngress = networkingV1beta1Api.createNamespacedIngress(&quot;myserver&quot;, codeServerV1Ingress, &quot;true&quot;, null, null);
  </code></pre>
  <p>error :</p>
  <pre><code>spec.rules[0].http.backend.servicePort: Invalid value: \&quot;80\&quot;: must contain at least one letter or number (a-z, 0-9)
  </code></pre>
  <p>I could see this error is related to IntOrString Class but not sure Why it. is throwing error and. failing the api call ? can someone pls help on this ?</p>
  <p>even I tried with both approaches below</p>
  <pre><code>approach 1:  servicePort: 80
  approach 2:  servicePort: &quot;80&quot;
  </code></pre>
  <p>I have also done google search on existing issues but none of them were helpful for me.</p>