Skip to content

Commit aa63a56

Browse files
chore: improve apiserver loadbalancer healthcheck
fix lint issue
1 parent d53abb9 commit aa63a56

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

cloud/scope/cluster.go

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -314,10 +314,11 @@ func (s *ClusterScope) ForwardingRuleSpec() *compute.ForwardingRule {
314314
func (s *ClusterScope) HealthCheckSpec() *compute.HealthCheck {
315315
return &compute.HealthCheck{
316316
Name: fmt.Sprintf("%s-%s", s.Name(), infrav1.APIServerRoleTagValue),
317-
Type: "SSL",
318-
SslHealthCheck: &compute.SSLHealthCheck{
317+
Type: "HTTPS",
318+
HttpsHealthCheck: &compute.HTTPSHealthCheck{
319319
Port: 6443,
320320
PortSpecification: "USE_FIXED_PORT",
321+
RequestPath: "/readyz",
321322
},
322323
CheckIntervalSec: 10,
323324
TimeoutSec: 5,

0 commit comments

Comments
 (0)