Skip to content
This repository has been archived by the owner on Apr 29, 2024. It is now read-only.

Commit

Permalink
fix: lb readiness endpoint
Browse files Browse the repository at this point in the history
  • Loading branch information
eliobischof committed Dec 11, 2019
1 parent 99e13fc commit 04b6af3
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 3 deletions.
12 changes: 11 additions & 1 deletion internal/kinds/loadbalancers/dynamic/adapter/adapter.go
Original file line number Diff line number Diff line change
Expand Up @@ -170,8 +170,18 @@ vrrp_instance VI_{{ $idx }} {
}
server {
listen {{ $vip.IP }}:{{ $src.SourcePort }};
proxy_pass {{ $src.Name }};
proxy_pass {{ $src.Name }};
health_check;
}
server {
listen 29999;
location /ready {
return 200;
}
}
{{ end }}{{ end }}}
`))

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,9 @@ func vrrpHealthCheckArgs(transport []model.Source) []string {
if deriveAny(func(src model.Source) bool {
return len(src.Destinations) > 0
}, transport) {
return []string{stringifyVRRPHealthChecksArg(model.Port(30000), model.HealthChecks{
return []string{stringifyVRRPHealthChecksArg(model.Port(29999), model.HealthChecks{
Protocol: "http",
Path: "/healthz",
Path: "/ready",
Code: 200,
})}
}
Expand Down

0 comments on commit 04b6af3

Please sign in to comment.