Skip to content

Commit

Permalink
K8SPXC-1339: Configure resolvers in Kubernetes (#916)
Browse files Browse the repository at this point in the history
  • Loading branch information
egegunes authored Jan 15, 2024
1 parent d44b0f7 commit f2b9f63
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions haproxy/dockerdir/etc/haproxy/haproxy-global.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,9 @@
timeout connect 100500
timeout server 28800s

resolvers kubernetes
parse-resolv-conf

frontend galera-in
bind *:3309 accept-proxy
bind *:3306
Expand Down
2 changes: 1 addition & 1 deletion haproxy/dockerdir/usr/bin/add_pxc_nodes.sh
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ function main() {
firs_node_admin=''
main_node=''

SERVER_OPTIONS=${HA_SERVER_OPTIONS:-'check inter 10000 rise 1 fall 2 weight 1'}
SERVER_OPTIONS=${HA_SERVER_OPTIONS:-'resolvers kubernetes check inter 10000 rise 1 fall 2 weight 1'}
send_proxy=''
path_to_haproxy_cfg='/etc/haproxy/pxc'
if [[ "${IS_PROXY_PROTOCOL}" = "yes" ]]; then
Expand Down

0 comments on commit f2b9f63

Please sign in to comment.