[英]Why does deploying a Kong ingress controller auto provisions a Azure load balancer in Azure Openshift kubernetes
I have created an Openshift cluster where my pods and services are running.我创建了一个运行我的 pod 和服务的 Openshift 集群。 Before creating an ingress, i deployed a Kong ingress controller that auto provisioned a Azure load balancer.
在创建入口之前,我部署了一个自动配置了 Azure 负载均衡器的 Kong 入口 controller。
From my understanding, Kong uses Nginx that can be configured to be used as a load balancer itself.据我了解,Kong 使用 Nginx 可以配置为本身用作负载均衡器。 Why does it need a Load balancer to be provisioned by Cloud infrastructure on which kubernetes cluster is running?
为什么运行 kubernetes 集群的云基础设施需要负载均衡器来配置?
You might have deployed the Kong Ingress controller with the service type: LoadBalancer
您可能已经部署了具有服务
type: LoadBalancer
LoadBalancer service type is mainly use to expose the Kubernetes
service using LB of Cloud provider. LoadBalancer服务类型主要用于使用Cloud Provider 的 LB 暴露
Kubernetes
服务。
ref: https://kubernetes.io/docs/concepts/services-networking/service/#loadbalancer参考: https://kubernetes.io/docs/concepts/services-networking/service/#loadbalancer
You can change the Kong service type to ClusterIP and it will as expected it will forward the request.您可以将 Kong 服务类型更改为ClusterIP ,它会按预期转发请求。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.