kubernetes-http-loadbalancer:使用 nginx + confd 的 kubernetes 的 HTTP 负载均衡器的完整工作示例

时间:2021-06-06 14:29:06
【文件属性】:
文件名称:kubernetes-http-loadbalancer:使用 nginx + confd 的 kubernetes 的 HTTP 负载均衡器的完整工作示例
文件大小:2KB
文件格式:ZIP
更新时间:2021-06-06 14:29:06
kubernetes-http-loadbalancer 使用 nginx 和 kubernetes 的 HTTP 负载均衡器的完整工作示例。 它用: :基于 nginx + confd 的负载均衡器(在这种情况下,etcd 用作后端)。 : 侦听 kubernetes pod 事件并根据我们的负载均衡器规则相应地更改 etcd。 :它将'Hello from '消息呈现为 http 响应,以确定它是否确实在进行负载平衡。 $> etcdctl ls --recursive /lb /lb/hosts /lb/hosts/lisa.contoso.com /lb/hosts/lisa.contoso.com/listeners /lb/hosts/lisa.contoso.com/listeners/ls1 = {"protocol":"http","
【文件预览】:
kubernetes-http-loadbalancer-master
----loadbalancer-service.yaml(213B)
----helloworld-controller.yaml(488B)
----loadbalancer-controller.yaml(1KB)
----README.md(2KB)

网友评论