-
Notifications
You must be signed in to change notification settings - Fork 674
Closed
Labels
area-integrationsIssues pertaining to Aspire Integrations packagesIssues pertaining to Aspire Integrations packagesneeds-design
Milestone
Description
In Tye we could define ingress
nodes to route requests to the different services. From this comment, it seems that the idea is to leverage YARP.
It would be cool if we could have something built-in that could let me translate
ingress:
- name: admin
tags:
- admin
bindings:
- port: 12000
protocol: http
name: http
rules:
- service: api
path: /api/
preservePath: false
- service: admin-web
path: /
preservePath: true
- name: app
tags:
- app
bindings:
- port: 12100
protocol: http
name: http
rules:
- service: api
path: /api/
preservePath: false
- service: app-web
path: /
preservePath: true
into
var database = builder.AddPostgresContainer("database")
.WithVolumeMount("../../data/database/data", "/var/lib/postgresql/data");
var apiService = builder.AddProject<Projects.API>("api")
.WithReference(database);
var webAdmin = builder.AddProject<Projects.Admin_Web>("admin")
.WithReference(apiService);
var webApp = builder.AddProject<Projects.App_Web>("app")
.WithReference(apiService);
builder.AddIngress("app")
.WithPath("/api/", apiService, preservePath: false)
.WithPath("/", webApp, preservePath: true)
.WithBinding(12100, "http");
builder.AddIngress("admin")
.WithPath("/api/", apiService, preservePath: false)
.WithPath("/", webAdmin, preservePath: true)
.WithBinding(12000, "http");
builder.Build().Run();
rcollina, hlaueriksson, akhanalcs, PaybackMan, domn1995 and 7 morea-shoemaker, akhanalcs and PaybackMan
Metadata
Metadata
Assignees
Labels
area-integrationsIssues pertaining to Aspire Integrations packagesIssues pertaining to Aspire Integrations packagesneeds-design