I'm using an AWS NLB to expose my Kubernetes pods to the internet. The NLB is currently using
instance target types but I noticed there are also
IP target types. What are the differences between an
instance target type vs an
IP target type from a practical point of view? When would you use one over the other?
AWS's documentation specifies some restrictions around using
IP target types, namely they must be within certain CIDRs and constraints around maximums, but I'm trying to understand when you might want to use one over the other.
I don't know if it has any impact, but we've been having issues with our kubernetes
rollingUpdate deployments where we're seeing downtime for the pods as they switch over (we have
readiness checks there).
The three key use-cases for using IP target type:
Instance target type is only limited instances. It should be your default choice when load balancing instances. For example, if you have instances in autoscaling group (ASG), the ASG can automatically register your instances with your load balancer. You can't do this for IP target types.