宣布Visual Studio和Kubernetes – Visual Studio连接环境

I've been having all kinds of fun lately with Kubernetes, exploring building my own Kubernetes Cluster on the metal, as well as using a managed Kubernetes cluster in Azure with AKS.

最近,我一直在与Kubernetes一起过各种乐趣,探索在金属上构建自己的Kubernetes集群,以及带有AKS的Azure中使用托管Kubernetes集群

Today at the Connect() conference in NYC I was happy to announce Visual Studio Connected Environment. How would one take the best of Visual Studio and the best of managed Kubernetes and create something useful for development teams?

今天在纽约举行的Connect()会议上,我很高兴宣布Visual Studio Connected Environment。 人们将如何充分利用Visual Studio和托管Kubernetes的优势,并为开发团队创建有用的东西?

Ecosystem momentum behind containers is amazing right now with support for containers across clouds, operating systems, and development platforms. Additionally, while microservices as an architectural pattern has been around for years, more and more developers are discovering the advantages every day.

借助跨云,操作系统和开发平台的容器支持,容器背后的生态系统势头现在非常惊人。 此外,虽然微服务作为一种架构模式已经存在了很多年,但越来越多的开发人员每天都在发现其优势。

You can check out videos of the Connect() conference at https://www.microsoft.com/connectevent, but you should check out my practice video where I show a live demo of Kubernetes in Visual Studio:

您可以在https://www.microsoft.com/connectevent上查看Connect ()会议的视频,但您应该查看我的练习视频,其中在Visual Studio中演示了Kubernetes的实时演示:

The buzzword "cloud native" is thrown around a lot. It's a meaningful term, though, as it means "architecture with the cloud in mind." Applications that are cloud-native should consider these challenges:

流行语“云原生”到处都是。 但是,这是一个有意义的术语,因为它的意思是“考虑到云的体系结构”。 云原生应用程序应考虑以下挑战:

  • Connecting to and leveraging cloud services

    连接并利用云服务

    • Use the right cloud services for your app, don't roll your own DB, Auth, Discovery, etc.

      为您的应用使用正确的云服务,不要滚动自己的数据库,身份验证,发现等。

    Connecting to and leveraging cloud services

    连接并利用云服务

  • Dealing with complexity and staying cognizant of changes

    处理复杂性并保持对变化的了解

    • Stubbing out copies of services can increase complexity and hide issues when your chain of invocations grows. K.I.S.S.

      取消服务副本会增加复杂性,并且随着调用链的增长而隐藏问题。 吻

    Dealing with complexity and staying cognizant of changes

    处理复杂性并保持对变化的了解

  • Setting up and managing infrastructure and dealing with changing pre-requisites

    设置和管理基础架构以及应对不断变化的先决条件

    • Even though you may have moved to containers for production, is your dev environment as representative of prod as possible?

      即使您可能已经转移到容器进行生产,但是您的开发环境是否可以作为产品的代表?

    Setting up and managing infrastructure and dealing with changing pre-requisites

    设置和管理基础架构以及应对不断变化的先决条件

  • Establishing consistent, common environments

    建立一致的通用环境

    • Setting up private environments can be challenging, and it gets messier when you need to manage your local env, your team dev, staging, and ultimately prod.

      设置私有环境可能会充满挑战,当您需要管理本地环境,团队开发人员,暂存以及最终生成产品时,它会变得更加混乱。

    Establishing consistent, common environments

    建立一致的通用环境

  • Adopting best practices such as service discovery and secrets management

    采用最佳实践,例如服务发现和机密管理

    • Keep secrets out of code, this is a solved problem. Service discovery and lookup should be straightforward and reliable in all environments.

      将机密保密,这是一个已解决的问题。 服务发现和查找在所有环境中都应该简单,可靠。

    Adopting best practices such as service discovery and secrets management

    采用最佳实践,例如服务发现和机密管理

A lot of this reminds us to use established and mature best practices, and avoid re-inventing the wheel when one already exists.

这很多提醒我们使用既定且成熟的最佳实践,并避免在已经存在的情况下重新发明轮子。

The announcements at Connect() are pretty cool because they're extending both VS and the Azure cloud to work like devs work AND like devops works. They're extending the developers’ IDE/editor experience into the cloud with services built on top of the container orchestration capabilities of Kubernetes on Azure. Visual Studio, VS Code and Visual Studio for Mac AND and through a CLI (command line interface) - they'll initially support .NET Core, node.js and Java on Linux. As Azure adds more support for Windows containers in Kubernetes, they'll enable .NET Full Framework applications. Given the state of Windows containers support in the platform, the initial focus is on green field development scenarios but lift-shift and modernize will come later.

Connect()上的声明非常酷,因为它们正在扩展VS和Azure云,使其能够像开发人员工作和devops工作一样工作。 他们通过基于Azure上Kubernetes的容器编排功能构建的服务将开发人员的IDE /编辑器体验扩展到云中。 Visual Studio,VS Code和Visual Studio for Mac AND以及通过CLI(命令行界面)-它们最初将在Linux上支持.NET Core,node.js和Java。 随着Azure在Kubernetes中增加了对Windows容器的支持,它们将启用.NET Full Framework应用程序。 考虑到平台中Windows容器支持的状态,最初的重点是在绿色开发环境中,但是稍后将进行移位和现代化。

It took me a moment to get my head around it (be sure to watch the video!) but it's pretty amazing. Your team has a shared development environments with your containers living in, and managed by Kubernetes. However, you also have your local development machine which then can reserve its own spaces for those services and containers that you're working on. You won't break the team with the work you're doing, but you'll be able to see how your services work and interact in an environment that is close to how it will look in production.

我花了一点时间来解决这个问题(请务必观看视频!),但这确实很棒。 您的团队拥有一个共享的开发环境,您的容器位于Kubernetes中并由其管理。 但是,您还有本地开发机器,然后可以为正在使用的服务和容器保留自己的空间。 您不会因为正在做的工作而破坏团队,但是您将能够看到您的服务如何在与生产环境相似的环境中工作和交互。

PLUS, you can F5 debug from Visual Studio or Visual Studio Code and debug, live in the cloud, in Kubernetes, as fast as you could locally.

另外,您可以从Visual Studio或Visual Studio Code进行F5调试,并可以在本地的最快速度下在Kubernetes的云中进行调试。

宣布Visual Studio和Kubernetes – Visual Studio连接环境

This positions Kubernetes as the underlayment for your containers, with the backplane managed by Azure/AKS, and the development experience behaving the way it always has. You use Visual Studio, or Visual Studio code, or the command line, and you use the languages and platforms that you prefer. In the demo I switch between .NET Core/C# and Node, VS and VSCode, no problem.

这将Kubernetes定位为您的容器的基础,Azure / AKS管理了背板,并以其始终拥有的开发经验。 您使用Visual Studio或Visual Studio代码或命令行,并使用所需的语言和平台。 在演示中,我在.NET Core / C#和Node,VS和VSCode之间切换,没问题。

I, for one, look forward to our containerized future, and I hope you check it out as well!

首先,我期待着我们集装箱化的未来,也希望您也来看看!

You can sign up for the preview at http://aka.ms/signup-vsce

您可以在http://aka.ms/signup-vsce上注册预览。

Sponsor: Why miss out on version controlling your database? It’s easier than you think because SQL Source Control connects your database to the same version control tools you use for applications. Find out how.

发起人:为什么错过控制数据库的版本? 它比您想象的要容易,因为SQL Source Control将您的数据库连接到用于应用程序的相同版本控制工具。 了解如何。

关于斯科特 (About Scott)

Scott Hanselman is a former professor, former Chief Architect in finance, now speaker, consultant, father, diabetic, and Microsoft employee. He is a failed stand-up comic, a cornrower, and a book author.

斯科特·汉塞尔曼(Scott Hanselman)是前教授,前金融首席架构师,现在是演讲者,顾问,父亲,糖尿病患者和Microsoft员工。 他是一位失败的单口相声漫画家,一个玉米种植者和一本书的作者。

宣布Visual Studio和Kubernetes – Visual Studio连接环境
宣布Visual Studio和Kubernetes – Visual Studio连接环境
宣布Visual Studio和Kubernetes – Visual Studio连接环境
About   关于 Newsletter 时事通讯
Hosting By 主持人
宣布Visual Studio和Kubernetes – Visual Studio连接环境

翻译自: https://www.hanselman.com/blog/announcing-visual-studio-and-kubernetes-visual-studio-connected-environment