<p>It says use service.beta.kubernetes.io/aws-load-balancer-eip-allocations' to assign AWS EIP to the newly created Network Load Balancer (<a href="https://github.com/kubernetes/kubernetes/pull/69263" rel="nofollow noreferrer">https://github.com/kubernetes/kubernetes/pull/69263</a>). But, how to obtain AWS Allocation IDs?<br />
At <a href="https://stackoverflow.com/questions/59282601/unable-to-give-static-ip-to-nlb">unable to give static ip to nlb</a>,</p>
<pre><code>kind: Service
apiVersion: v1
metadata:
  name: ingress-nginx
  namespace: ingress-nginx
  labels:
    app.kubernetes.io/name: ingress-nginx
    app.kubernetes.io/part-of: ingress-nginx
  annotations:
    service.beta.kubernetes.io/aws-load-balancer-type: nlb
    service.beta.kubernetes.io/aws-load-balancer-eip-allocations: &quot;eipalloc- 
    07e3afcd4b7b5d644,eipalloc-0d9cb0154be5ab55d,eipalloc-0e4e5ec3df81aa3ea&quot;
    service.beta.kubernetes.io/aws-load-balancer-subnets: &quot;subnet- 
    061f4a497621a7179,subnet-001c2e5df9cc93960&quot;
spec:
  type: LoadBalancer
  selector:
    app.kubernetes.io/name: ingress-nginx
    app.kubernetes.io/part-of: ingress-nginx
</code></pre>
<p>How to get those eipalloc IDs?</p>

<p>I may be misunderstanding your question, but I think you would just create <a href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/elastic-ip-addresses-eip.html" rel="nofollow noreferrer">Elastic IP's</a> in AWS and then get their Allocation Id's either in the console or by <a href="https://docs.aws.amazon.com/cli/latest/reference/ec2/describe-addresses.html" rel="nofollow noreferrer">describing them</a> via the awscli.</p>
<pre><code>AllocationId
[Network Load Balancers] The allocation ID of the Elastic IP address for an internet-facing load balancer.

Type: String

Required: No
</code></pre>
<p><a href="https://i.stack.imgur.com/DY1F9.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/DY1F9.png" alt="enter image description here" /></a></p>
