AWS VPC - k8s - load balancing

后端 未结 3 1411
迷失自我
迷失自我 2020-12-22 10:26

Sorry for newbie question; I am new to the k8s world.The current way of deploying is to deploy the app on EC2. The new way I am trying to deploy the containerized app to VPC

3条回答
  •  北荒
    北荒 (楼主)
    2020-12-22 10:56

    It depends on how did you set your K8s service.

    If you set a loadbalancer in AWS then you can create a service with loadbalancer type to expose a service to the internet. But it will cost much of money because it will own a ELB for each service. for more reference https://kubernetes.io/docs/concepts/services-networking/service/

    Another option is ingress but it will more be complicated if you are not familiar with K8s but ingress is a more popular way to expose your K8S to internet

    This article could give you a better concept of the ELB <> K8s.
    https://medium.com/google-cloud/kubernetes-nodeport-vs-loadbalancer-vs-ingress-when-should-i-use-what-922f010849e0

提交回复
热议问题