HAProxy Ingress
- jcmoraisjr/haproxy-ingress
- haproxytech/kubernetes-ingress
- 文档
- 基于 haproxytech/client-native
- 使用 RuntimeAPI
- 使用配置模型
- 镜像
haproxytech/kubernetes-ingress
基于haproxytech/haproxy-alpine
- 支持 configmap、ingress、service 配置
- 支持 外部 模式
- 问题
- haproxytech/dataplaneapi
- 通过接口动态配置 HAProxy
haproxytech ingress
- 前缀: ingress.kubernetes.io, haproxy.org, haproxy.com
- 配置继承关系: default <- Configmap <- Ingress <- Service
- annotation
- logging
annotation | default | note |
---|---|---|
ssl-passthrough | false | 透传 SSL |
ssl-redirect | false | HTTP -> HTTPS |
server-ssl | false | 后端 HTTPS |
forwarded-for | true | |
backend-config-snippet | ||
path-rewrite | ||
send-proxy-protocol | proxy,proxy-v1,proxy-v2,proxy-v2-ssl,proxy-v2-ssl-cn | |
whitelist |
# 等同于 nginx-ingress backend-protocol HTTPS
# 等同于 nginx proxy_ssl_verify off;
# HAProxy ssl verify none
haproxy.org/server-ssl: 'true'
configmap | default | note |
---|---|---|
scale-server-slots | 42 | 生成的 server 个数 |
global-config-snippet | ||
frontend-config-snippet | ||
stats-config-snippet | ||
proxy-protocol | IPs or CIDRs | |
syslog-server |
- proxy-protocol
- 接受的 PROXY 客户端来源
- 0.0.0.0/0 允许所有
controller | default | |
---|---|---|
--default-backend-service | e.g. nginx-ingress | |
--default-ssl-certificate |
Trouableshooting
cat /etc/haproxy/haproxy.cfg | grep -v disabled
ls /etc/haproxy/maps
# host.map path-exact.map path-prefix.map sni.map