-
Notifications
You must be signed in to change notification settings - Fork 569
04. Deploying into local Kubernetes in Windows 10 and Docker for Windows development environment
As of mid-April 2018, using a Preview version of Windows 10 () and Docker for Windows Edge channel, the steps to set up Kuberentes in Docker for Windows are the following:
- If you are in "Windows containers mode" in "Docker for Windows", switch to "Linux containers mode" in Docker for Windows. This step is only needed in the Preview in order to enable Kubernetes. In the final version with Kubernetes support for Windows Containers, this step might not be required.
- Hit the "Settings" menu option and within the Settings UI window, go to the Kubernetes tab and enable Kubernetes. The Kubernetes cluster will be installed as shown in the following screenshot.
After the process is done, you should get a success message like the following:
- Now, switch to Windows Containers:
- Check Kubernetes state.
At this point you should be in "Windows Containers mode" plus you should have a local Kubernetes cluster installed.
You can check that out by looking at the Settings window where you should see a message saying "Kubernetes is running":
Now, you can check that the Kubernetes cluster is working by typing either from PowerShell or CMD:
Using PowerShell or CMD, position into the folder with the .yml files for Kubernetes "Kubernetes-DockerForWindows" and run the following kubectl create
command specifying the YAML manifest (in Kubernetes native format):
kubectl create -f eshop-modernized-mvc-k8s-services-deployment.yml
Wait for a few minutes until the deployments are ready.
You can check out the deployment's state by running:
kubectl get deployments
If the attibute "AVAILABLE" is "0", the deployment is still not ready. Wait until it is "1", like in the following screenshot:
======================== TBD ==========================
- Home
- Release notes
- e-books
-
MVC & Web Forms Samples
- Tour of the "legacy" ASP.NET web apps to modernize
- How to containerize the .NET Framework web apps with Windows Containers and Docker
- Publishing your Windows Container images into a Docker Registry
- Deploying the Apps to Azure Web Apps for Containers
- Deploying the Apps to ACI (Azure Container Instances)
- Deploying your Windows Containers based app into Azure VMs (Including CI CD)
- Deploying into local Kubernetes in Windows 10 and Docker for Windows development environment
- How to deploy your Windows Containers based apps into Kubernetes in Azure Container Service (Including CI CD)
- How to add authentication authorization with Azure Active Directory
- How to migrate the SQL database to Azure with the Azure Database Migration Service
- Using Application Insights in eShopOnContainers
- N-Tier sample: WinForms app and WFC service
- ASP.NET to Azure App Service Migration Workshop