如何将自定义DLL加载到运行AKS POD中

发布于 2025-02-11 06:18:53 字数 338 浏览 3 评论 0原文

我们有DOT Net Core应用程序,该应用程序正在AK中运行,我们需要将自定义DLL插入运行POD。

关于自定义DLL:遵循某些合同的每个客户实施的自定义。

我们已经探索过

  1. 在Azure Blob中上传自定义DLL的几个解决方案,并从运行时间运行POD中加载DLL,以执行自定义代码
  2. 包Dotnet Core App Image和自定义DLL image并将其部署到AKS。

有什么更好的方法来实施此问题吗?是否有行业标准来解决此架构问题?

注意:主要是,我正在寻找部署体系结构标准,而不是为了实现详细信息,例如反射或MEF等

We have dot net core application which is running in AKS and we need to plug custom DLL into running pod.

About Custom DLL: Customization implemented by each customer which follows certain contracts.

Couple of solutions which we have already explored

  1. Upload custom dll in azure blob and load that dll from running pod at runtime to execute the custom code
  2. Package dotnet core app image and custom DLL image into one image and deploy it to AKS.

Is there any better way to implement this problem? any industry standard to solve this architecture problem?

Note: Mainly, I am looking for deployment architecture standard and not for implementation details like Reflection or MEF etc.

thanks in advance.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

夏有森光若流苏 2025-02-18 06:18:53

图像应是包装和版本的一组编译代码的不变文物。

如果您的客户将自定义DLL放到存储中,则触发将包装版本的Docker构建,并运行此版本。

这样做将使您可以运行DLL的不同版本,还原为特定版本,或在本地调试特定版本。
从卷中动态加载会增加一些“魔术”,这些“魔术”迟早会破裂。

我的两分钱

Images should be immutable artifacts that package and version a set of compiled code.

If your customer drops a custom dll to a storage, then trigger a docker build that will package a version, and run this version.

Doing so will let you run different versions of your dlls, revert to a specific version, or debug locally a specific version.
Loading dynamically from a volume will add some "magic" that will break sooner or later.

My two cents

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文