diff --git a/src/HealthChecks.UI.K8s.Operator/Operator/KubernetesAddressFactory.cs b/src/HealthChecks.UI.K8s.Operator/Operator/KubernetesAddressFactory.cs index b0a47b69b6..31ed0c19cb 100644 --- a/src/HealthChecks.UI.K8s.Operator/Operator/KubernetesAddressFactory.cs +++ b/src/HealthChecks.UI.K8s.Operator/Operator/KubernetesAddressFactory.cs @@ -8,7 +8,7 @@ public static string CreateAddress(V1Service service, HealthCheckResource resour { var defaultPort = int.Parse(resource.Spec.PortNumber ?? Constants.DEFAULT_PORT); var port = GetServicePort(service)?.Port ?? defaultPort; - var address = service.Spec.ClusterIP; + var address = $"{service.Metadata.Name}.{service.Metadata.Namespace()}.svc.cluster.local"; string healthScheme = resource.Spec.HealthChecksScheme;