From aa63a56606c0d3d49624fe0e48135acd1c3e3982 Mon Sep 17 00:00:00 2001 From: esierra-stratio Date: Mon, 10 Apr 2023 17:23:00 +0200 Subject: [PATCH] chore: improve apiserver loadbalancer healthcheck fix lint issue --- cloud/scope/cluster.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/cloud/scope/cluster.go b/cloud/scope/cluster.go index 831eb728c..d981e7e07 100644 --- a/cloud/scope/cluster.go +++ b/cloud/scope/cluster.go @@ -314,10 +314,11 @@ func (s *ClusterScope) ForwardingRuleSpec() *compute.ForwardingRule { func (s *ClusterScope) HealthCheckSpec() *compute.HealthCheck { return &compute.HealthCheck{ Name: fmt.Sprintf("%s-%s", s.Name(), infrav1.APIServerRoleTagValue), - Type: "SSL", - SslHealthCheck: &compute.SSLHealthCheck{ + Type: "HTTPS", + HttpsHealthCheck: &compute.HTTPSHealthCheck{ Port: 6443, PortSpecification: "USE_FIXED_PORT", + RequestPath: "/readyz", }, CheckIntervalSec: 10, TimeoutSec: 5,