bilal_khan
bilal_khan

Reputation: 99

AKS loadbalancer expose different external IP address

Hi i have been deploying and exposing my web api container image using azure-devops to azure kubernetes service (container image ) . i have created multiple applications why each application gets new external IP address ? Is it by default when we use type as load balancer ?

I also tried using node port but in node port case external IP is none.

deployment deployment-name --type=LoadBalancer --port 80 --name=service-name

Upvotes: 0

Views: 435

Answers (1)

4c74356b41
4c74356b41

Reputation: 72171

yep, this behaviour is by default, if you want them all have the same external IP you should use the ingress resource:

Ingress exposes HTTP and HTTPS routes from outside the cluster to services within the cluster. Traffic routing is controlled by rules defined on the Ingress resource.

Its a bit of a learning, but its quite mandatory if you want to use kubernetes for anything serious.

https://kubernetes.io/docs/concepts/services-networking/ingress/

Upvotes: 1

Related Questions