Skip to content

Commit

Permalink
Use DNS-based values for address rather than cluster IP
Browse files Browse the repository at this point in the history
  • Loading branch information
SeanKilleen committed Jan 17, 2024
1 parent da70571 commit 523670b
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit 523670b

Please sign in to comment.