<p>I am defining a kubernetes service like this:</p>

<pre><code>kind: Service
apiVersion: v1
metadata:
  name: de-identity-svc
  labels:
    app: api-identity
    environment: de
    product: api
  annotations:
    service.beta.kubernetes.io/aws-load-balancer-additional-resource-tags: "app=api-identity,environment=de,product=api"
    service.beta.kubernetes.io/aws-load-balancer-backend-protocol: http
    service.beta.kubernetes.io/aws-load-balancer-internal: 0.0.0.0/0
    service.beta.kubernetes.io/aws-load-balancer-type: nlb
spec:
  type: LoadBalancer
  selector:
    app: api-identity
    environment: de
  ports:
  - port: 80
    protocol: TCP
</code></pre>

<p>However, when the load balancer is created in AWS, it is created with type <code>Classic</code> instead of the expected <code>network</code>.</p>

<hr>

<h3>Edit</h3>

<p>The kubernetes version info is this:</p>

<pre><code>Client Version: version.Info{Major:"1", Minor:"8", GitVersion:"v1.8.4", GitCommit:"9befc2b8928a9426501d3bf62f72849d5cbcd5a3", GitTreeState:"clean", BuildDate:"2017-11-20T05:28:34Z", GoVersion:"go1.8.3", Compiler:"gc", Platform:"linux/amd64"}
Server Version: version.Info{Major:"1", Minor:"7", GitVersion:"v1.7.11", GitCommit:"b13f2fd682d56eab7a6a2b5a1cab1a3d2c8bdd55", GitTreeState:"clean", BuildDate:"2017-11-25T17:51:39Z", GoVersion:"go1.8.3", Compiler:"gc", Platform:"linux/amd64"}
</code></pre>

<h3>Edit 2</h3>

<p>As <a href="https://stackoverflow.com/users/5054939/vdmeent">@vdMeent</a> notes, this feature was added in Kubernetes 1.9 (<a href="https://aws.amazon.com/blogs/opensource/network-load-balancer-support-in-kubernetes-1-9/" rel="nofollow noreferrer">https://aws.amazon.com/blogs/opensource/network-load-balancer-support-in-kubernetes-1-9/</a>)</p>

<p>You should upgrade your server Kubernetes version to 1.9 or above, as NLB is only available for <a href="https://github.com/kubernetes/kubernetes/blob/master/CHANGELOG-1.9.md#aws" rel="nofollow noreferrer">Kubernetes 1.9 and up</a>. Please note that NLB is still in alpha, so you shouldn't use it for anything substantial like production environments.</p>
