-
How to run Aspire on multiple computers instead of running Aspire on Azure? |
Beta Was this translation helpful? Give feedback.
Replies: 21 comments 30 replies
-
Does Aspire only run in Azure? |
Beta Was this translation helpful? Give feedback.
-
Aspire doesn't include a runtime control plane or hosting mechanism for outside of the developer scenario. It's intended the app is deployed to something like kubernetes or a container-based PaaS. Ultimately the apps are standard .NET projects that you can deploy and configure in any of the supported ways. |
Beta Was this translation helpful? Give feedback.
-
I'm doing some tests here with the starter template, and it's working fine just with Kestrel. EDIT: Published AppHost project seems to be the same as Debug one. |
Beta Was this translation helpful? Give feedback.
-
@DamianEdwards Is there a document to describe how to deploy aspire applications to k8s? |
Beta Was this translation helpful? Give feedback.
-
There is no automated deployment to k8s support in aspire preview1. Deploying to k8s is manual right now. We plan to investigate this in the future. |
Beta Was this translation helpful? Give feedback.
-
@davidfowl how to deploy aspire applications to k8s manually? create deployments for every aspire application? |
Beta Was this translation helpful? Give feedback.
-
@davidfowl Will multi-virtual machine deployment be supported in the future instead of k8s? |
Beta Was this translation helpful? Give feedback.
-
No, never. We're not rebuilding Kubernetes. The orchestration here is optimized for development scenarios. If you want anything on multiple machines, then use k8s. |
Beta Was this translation helpful? Give feedback.
-
@davidfowl When is it expected that there will be documentation on how to deploy through k8s? And before this, could I only deploy to Azure? |
Beta Was this translation helpful? Give feedback.
-
Support for automatically generating and deploying to k8s? Months away. Maybe 2 (this experience needs to be designed). Yes, you can deploy to azure using AZD. Aspire itself cannot deploy to azure, the azure tools understand aspire manifests. If you want to help design the k8s experience follow and contribute to this issue #830 |
Beta Was this translation helpful? Give feedback.
-
Hi @davidfowl , I'm not going against the plans. But not only me, but many users from communities that I participate liked a lot what we've seen on .NET Conf about the .NET Aspire. I guess it so much powerfull for just to stay only on development scenarios. It's very easy to setup and run just using Kestrel + YARP (when we don't need to use K8S neither Docker). We'll very happy we could see .NET Aspire to running also on production scenarios. I'm sorry if I understand something wrong. |
Beta Was this translation helpful? Give feedback.
-
I don't think there's anything wrong with your desire to want this experience for deployments to non-cloud environments, but the reason we target the cloud and things like k8s for deployment is because there's a standard set of APIs for interacting with and configuring the compute, networking and anything required to make these systems run. If you want to deploy to another environment then you can use aspire's extensible system but you have to build a tool that understands your target environment. I can help guide you to build it, but it's not something we are building as part of aspire. |
Beta Was this translation helpful? Give feedback.
-
Cool, thank you so much for the answer! What I'll try to do is to deploy to a server using only Kestrel + Aspire + YARP. It's alread works fine, but I've noted that Publish option on VS Preview 17.9 is compiling the projects looks like the Debug configuration, and it doesn't copy the compiled files to desired target folder (just for the \bin\Release). After it, I can immagine for the first time an extension that can allow to restart some service from the list on dashboard, but just for authenticated admins (role). Do you believe it can be possible? For sure, not from official Aspire package, since it's not on roadmap, but into another extension. |
Beta Was this translation helpful? Give feedback.
-
Are you running your applications in containers or just as executables on the machine? I find these discussions to be more useful with diagrams: What features of aspire do you want to persist in your production environment?
|
Beta Was this translation helpful? Give feedback.
-
Actually I pretend to run on the prodution environment without containers. I like the ideia of Aspire starting every depedant project or executable by itself and showing their status into a deshboard (And maybe on future ofering a restart option on dashboard or function .Restart(...); ).
Based on diagram, without Aspire, and not using Docker, I should configure four scheduled tasks on OS, and sometimes one or more can exit and the related services will also fail, and we only discover by the Task Manager (if Windows Server) or Event Viewer. The .NET Aspire on this preview state already helps a lot. |
Beta Was this translation helpful? Give feedback.
-
Maybe we should be looking at how to enable the projects for Aspire be more easily run as a windows service or linux daemon for non-cloud deployment scenarios? As long as the apps can be F5'd while in VS, the eventual hosting model shouldn't matter. |
Beta Was this translation helpful? Give feedback.
-
Aspire provides an orchestrator for development but not for production. If you want to use the aspire model in your deployed application then you need an orchestrator. I'd recommend Kubernetes.
If you go custom on prem, then you're pulling all of these pieces together on your own. To get the aspire experience on your windows server then you need to figure out:
All of this could be built by a sufficiently motivated set of people. The aspire team doesn't have interest in building this but would provide guidance on how you can make it work. |
Beta Was this translation helpful? Give feedback.
-
Hi all, About the standalone Dashboard: I've setup an test environment with success, but I've missed the "Resources" tab, because there's no URL for "DOTNET_RESOURCE_SERVICE_ENDPOINT_URL" (structures logs, metrics are all working fine with another exe's running in kestrel). This resource service, by the way, comes from Aspire.Hosting, right? Is it already expected by design? So, using it as standalone (I've clonned the repository and debug the Dashboard) we won't be able to se any Resource. |
Beta Was this translation helpful? Give feedback.
-
Any updates on documentation for how to deploy to local k8s? Do i still need to make my own manifests? |
Beta Was this translation helpful? Give feedback.
-
I would relly love to see a soulution for environment where azre or k8s is just no valid solution. The companies i work with, for the most part, are relying on windows servers with IIS hosting still. |
Beta Was this translation helpful? Give feedback.
-
I found code can create resoure outside bebug as below. But i want to confuge run app in enviroment production, can yout help me!
[global::System.CodeDom.Compiler.GeneratedCode("Aspire.Hosting", null)]
} builder.AddProject<Projects.Client>("client"); builder.Build().Run(); |
Beta Was this translation helpful? Give feedback.
Aspire provides an orchestrator for development but not for production. If you want to use the aspire model in your deployed application then you need an orchestrator. I'd recommend Kubernetes.
If you go custom on prem, then you're pulling all of these pieces together on your own. To get the aspire experience on your windows server then you need to figure out: