diff --git a/samples/eShopLite/ServiceDefaults/Extensions.cs b/samples/eShopLite/ServiceDefaults/Extensions.cs index 62993b9b6fb..c59308d50da 100644 --- a/samples/eShopLite/ServiceDefaults/Extensions.cs +++ b/samples/eShopLite/ServiceDefaults/Extensions.cs @@ -100,10 +100,10 @@ public static WebApplication MapDefaultEndpoints(this WebApplication app) // app.MapPrometheusScrapingEndpoint(); // All health checks must pass for app to be considered ready to accept traffic after starting - app.MapHealthChecks("/readiness"); + app.MapHealthChecks("/health"); // Only health checks tagged with the "live" tag must pass for app to be considered alive - app.MapHealthChecks("/liveness", new HealthCheckOptions + app.MapHealthChecks("/alive", new HealthCheckOptions { Predicate = r => r.Tags.Contains("live") }); diff --git a/src/Aspire.ProjectTemplates/templates/aspire-empty/AspireApplication-1.ServiceDefaults/Extensions.cs b/src/Aspire.ProjectTemplates/templates/aspire-empty/AspireApplication-1.ServiceDefaults/Extensions.cs index 62993b9b6fb..c59308d50da 100644 --- a/src/Aspire.ProjectTemplates/templates/aspire-empty/AspireApplication-1.ServiceDefaults/Extensions.cs +++ b/src/Aspire.ProjectTemplates/templates/aspire-empty/AspireApplication-1.ServiceDefaults/Extensions.cs @@ -100,10 +100,10 @@ public static WebApplication MapDefaultEndpoints(this WebApplication app) // app.MapPrometheusScrapingEndpoint(); // All health checks must pass for app to be considered ready to accept traffic after starting - app.MapHealthChecks("/readiness"); + app.MapHealthChecks("/health"); // Only health checks tagged with the "live" tag must pass for app to be considered alive - app.MapHealthChecks("/liveness", new HealthCheckOptions + app.MapHealthChecks("/alive", new HealthCheckOptions { Predicate = r => r.Tags.Contains("live") }); diff --git a/src/Aspire.ProjectTemplates/templates/aspire-starter/AspireStarterApplication-1.ServiceDefaults/Extensions.cs b/src/Aspire.ProjectTemplates/templates/aspire-starter/AspireStarterApplication-1.ServiceDefaults/Extensions.cs index 62993b9b6fb..c59308d50da 100644 --- a/src/Aspire.ProjectTemplates/templates/aspire-starter/AspireStarterApplication-1.ServiceDefaults/Extensions.cs +++ b/src/Aspire.ProjectTemplates/templates/aspire-starter/AspireStarterApplication-1.ServiceDefaults/Extensions.cs @@ -100,10 +100,10 @@ public static WebApplication MapDefaultEndpoints(this WebApplication app) // app.MapPrometheusScrapingEndpoint(); // All health checks must pass for app to be considered ready to accept traffic after starting - app.MapHealthChecks("/readiness"); + app.MapHealthChecks("/health"); // Only health checks tagged with the "live" tag must pass for app to be considered alive - app.MapHealthChecks("/liveness", new HealthCheckOptions + app.MapHealthChecks("/alive", new HealthCheckOptions { Predicate = r => r.Tags.Contains("live") });