app.UseEndpoints(endpoints =>
{
endpoints.MapControllers();
// Add management endpoints into pipeline like this
endpoints.Map<HealthEndpoint>();
});
livenessProbe:
httpGet:
path: /actuator/health/liveness
port: http
readinessProbe:
httpGet:
path: /actuator/health/readiness
port: http
image:
repository: localhost:5001/weather-forecast-server
name: weather-forecast-server
pullPolicy: Always
# Overrides the image tag whose default is the chart appVersion.
tag: "latest"
service:
enabled: true
type: LoadBalancer
ingress:
enabled: false
annotations:
kubernetes.io/ingress.class: nginx
kubernetes.io/tls-acme: "true"
hosts:
- host: weather-forecast-server.local
paths:
- path: /
pathType: Prefix
backend:
serviceName: weather-forecast-server-svc
servicePort: 80
Host.CreateDefaultBuilder(args)
.AddStreamServices<WeatherProcessor>()
services.AddHttpClient();
// Add Rabbit template
services.AddRabbitTemplate();
services.AddHostedService<WeatherService>();