traefik
Traefik 是一款开源的反向代理与负载均衡工具,它监听后端的变化并自动更新服务配置。Traefik 最大的优点是能够与常见的微服务系统直接整合,可以实现自动化动态配置。目前支持 Docker、Swarm,、Mesos/Marathon、Mesos、Kubernetes、Consul、Etcd、Zookeeper、BoltDB 和 Rest API 等后端模型

rbac 配置
deploy 安装
kubectl apply -f https://raw.githubusercontent.com/containous/traefik/master/examples/k8s/traefik-deployment.yaml
daemonset 安装
kubectl apply -f https://raw.githubusercontent.com/containous/traefik/master/examples/k8s/traefik-ds.yaml
暴露自身
认证
traefik 支持基于名称路由基于path路由
权重设置
禁止header传递
disablePassHostHeaders = true #全局 添加注释 traefik.frontend.passHostHeader: "false"
Last updated
Was this helpful?