Skip to content

Commit 32f01de

Browse files
authored
Merge pull request #101446 from zr-msft/ds-win-container-helm3
[Dev Spaces] upgraded win doc with callout
2 parents 3a03494 + e315204 commit 32f01de

File tree

1 file changed

+14
-22
lines changed

1 file changed

+14
-22
lines changed

articles/dev-spaces/how-to/run-dev-spaces-windows-containers.md

Lines changed: 14 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
---
22
title: "Interact with Windows containers"
33
services: azure-dev-spaces
4-
ms.date: 07/25/2019
4+
ms.date: 01/16/2020
55
ms.topic: "conceptual"
66
description: "Learn how to run Azure Dev Spaces on an existing cluster with Windows containers"
77
keywords: "Azure Dev Spaces, Dev Spaces, Docker, Kubernetes, Azure, AKS, Azure Kubernetes Service, containers, Windows containers"
88
---
99

1010
# Interact with Windows containers using Azure Dev Spaces
1111

12-
You can enable Azure Dev Spaces on both new and existing Kubernetes namespaces. Azure Dev Spaces will run and instrument services that run on Linux containers. Those services can also interact with applications that run on Windows containers in the same namespace. This article shows you how to use Dev Spaces to run services in a namespace with existing Windows containers.
12+
You can enable Azure Dev Spaces on both new and existing Kubernetes namespaces. Azure Dev Spaces will run and instrument services that run on Linux containers. Those services can also interact with applications that run on Windows containers in the same namespace. This article shows you how to use Dev Spaces to run services in a namespace with existing Windows containers. At this time, you cannot debug or attach to Windows containers with Azure Dev Spaces.
1313

1414
## Set up your cluster
1515

@@ -31,8 +31,9 @@ The following example output shows a cluster with both a Windows and Linux node.
3131

3232
```console
3333
NAME STATUS ROLES AGE VERSION
34-
aks-nodepool1-12345678-vmssfedcba Ready agent 13m v1.14.1
35-
aksnpwin987654 Ready agent 108s v1.14.1
34+
aks-nodepool1-12345678-vmss000000 Ready agent 13m v1.14.8
35+
aks-nodepool1-12345678-vmss000001 Ready agent 13m v1.14.8
36+
aksnpwin000000 Ready agent 108s v1.14.8
3637
```
3738

3839
Apply a [taint][using-taints] to your Windows nodes. The taint on your Windows nodes prevents Dev Spaces from scheduling Linux containers to run on your Windows nodes. The following command example command applies a taint to the *aksnpwin987654* Windows node from the previous example.
@@ -55,20 +56,12 @@ git clone https://github.com/Azure/dev-spaces
5556
cd dev-spaces/samples/existingWindowsBackend/mywebapi-windows
5657
```
5758

58-
The sample application uses [Helm 2][helm-installed] to run the Windows service on your cluster. Install Helm on your cluster and grant it the correct permissions:
59-
60-
```console
61-
helm init --wait
62-
kubectl create serviceaccount --namespace kube-system tiller
63-
kubectl create clusterrolebinding tiller-cluster-rule --clusterrole=cluster-admin --serviceaccount=kube-system:tiller
64-
kubectl patch deploy --namespace kube-system tiller-deploy -p '{"spec":{"template":{"spec":{"serviceAccount":"tiller"}}}}'
65-
```
66-
67-
Navigate to the `charts` directory and run the Windows service:
59+
The sample application uses [Helm][helm-installed] to run the Windows service on your cluster. Navigate to the `charts` directory and use Helm run the Windows service:
6860

6961
```console
7062
cd charts/
71-
helm install . --namespace dev
63+
kubectl create ns dev
64+
helm install windows-service . --namespace dev
7265
```
7366

7467
The above command uses Helm to run your Windows service in the *dev* namespace. If you don't have a namespace named *dev*, it will be created.
@@ -117,16 +110,15 @@ spec:
117110
Use `helm list` to list the deployment for your Windows service:
118111

119112
```cmd
120-
$ helm list
121-
NAME REVISION UPDATED STATUS CHART APP VERSION NAMESPACE
122-
gilded-jackal 1 Wed Jul 24 15:45:59 2019 DEPLOYED mywebapi-0.1.0 1.0 dev
113+
$ helm list --namespace dev
114+
NAME REVISION UPDATED STATUS CHART APP VERSION NAMESPACE
115+
windows-service 1 Wed Jul 24 15:45:59 2019 DEPLOYED mywebapi-0.1.0 1.0 dev
123116
```
124117

125-
In the above example, the name of your deployment is *gilded-jackal*. Update your Windows service with the new configuration using `helm upgrade`:
118+
In the above example, the name of your deployment is *windows-service*. Update your Windows service with the new configuration using `helm upgrade`:
126119

127120
```cmd
128-
$ helm upgrade gilded-jackal . --namespace dev
129-
Release "gilded-jackal" has been upgraded.
121+
helm upgrade windows-service . --namespace dev
130122
```
131123

132124
Since you updated your `deployment.yaml`, Dev Spaces will not try and instrument your service.
@@ -177,7 +169,7 @@ Learn how Azure Dev Spaces helps you develop more complex applications across mu
177169

178170
[kubectl]: https://kubernetes.io/docs/user-guide/kubectl/
179171
[kubectl-get]: https://kubernetes.io/docs/reference/generated/kubectl/kubectl-commands#get
180-
[helm-installed]: https://v2.helm.sh/docs/using_helm/#installing-helm
172+
[helm-installed]: https://helm.sh/docs/intro/install/
181173
[sample-application]: https://github.com/Azure/dev-spaces/tree/master/samples/existingWindowsBackend
182174
[sample-application-toleration-example]: https://github.com/Azure/dev-spaces/blob/master/samples/existingWindowsBackend/mywebapi-windows/charts/templates/deployment.yaml#L24-L27
183175
[team-development-qs]: ../quickstart-team-development.md

0 commit comments

Comments
 (0)