39

微软推出Visual Studio Kubernetes工具包,.NET网页应用也能整合Kubernetes

 5 years ago
source link: http://dockone.io/article/5991?amp%3Butm_medium=referral
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

【编者的话】微软表示,利用Visual Studio Kubernetes这个工具,使用者可以直接在该环境中,建立Kubernetes容器应用程序项目,或者让现有的.NET网页应用程序,也兼容Kubernetes。

除了公有云基础架构环境要支持Kubernetes,微软现在也针对开发者需要的开发环境,加强支持Kubernetes。近日,微软Visual Studio团队就表示,为了让开发者更方便在Kubernetes环境中,建立容器应用程序,推出了 Visual Studio Kubernetes工具包

跟一线开发者沟通时,微软发现,建立容器镜像,部署到Kubernetes环境中运作前,撰写Dockerfiles、Kubernetes Helm charts或其他系统文件是许多开发者的痛点。而把Visual Studio开发的程序,加入至Kubernetes环境,开发者也要输入许多复杂的程序。

为此,现在微软Visual Studio团队已经推出第一个预览版本的Visual Studio Kubernetes工具包,加强整合Visual Studio与Kubernetes,现在该工具已经在 Visual Studio集市上架

微软表示,利用这个新工具,使用者可以直接在该环境中,建立Kubernetes容器应用程序项目,或者让现有的.NET网页应用程序,也可以兼容Kubernetes,Visual Studio会自动建立Dockerfile、Helm chart。除此之外,云端开发空间Azure Dev Space也整合这个新工具,可以直接与微软Azure Kubernetes服务串接。

不过,想要在Visual Studio环境使用该Kubernetes工具包的开发者,也得要先完成满足环境设置。必须安装最新预览版本的 Visual Studio 2017 、Visual Studio Kubernetes工具包,以及Windows版Docker。

BVBvIrU.png!web

利用微软这次推出的Visual Studio Kubernetes工具包,使用者可以直接在该环境,建立Kubernetes容器项目。

bAFrQni.png!web

使用者也可以选择要开启哪种类型的ASP.NET核心网页应用程序。微软表示,原本选单上的“选择支持Docker”已经不会显示,原因在于,只要是建立Kubernetes容器项目,系统都会自动预设支持Docker。

AjueiyI.png!web

让现有的.NET网页应用程序,也可以兼容Kubernetes。在选单内,开发者可以自行将这些旧有项目,整合至Kubernetes。

j2ueAjZ.png!web

而这个Kubernetes工具包,也和微软Azure Kubernetes服务整合。使用者可以利用Visual Studio,把容器镜像上传至Azure容器存储库,之后,Azure Kubernetes服务就可使用存储库内的镜像,部署至Kubernetes集群中运行了。

原文链接: https://www.ithome.com.tw/news/123818


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK