Skip to content

Commit 202fc68

Browse files
committed
Add steps for running and removal
1 parent e359b93 commit 202fc68

File tree

3 files changed

+33
-1
lines changed

3 files changed

+33
-1
lines changed
Loading
Loading

docs/containers/tutorial-kubernetes-tools.md

Lines changed: 33 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ The added files are:
119119

120120
- *azds.yaml*. This contains settings for Azure Dev Spaces, which provides a rapid, iterative debugging experience in Azure Kubernetes Service. For more information, see [the Azure Dev Spaces documentation](/azure/dev-spaces/azure-dev-spaces).
121121

122-
::: moniker range="vs-2017"
122+
:::moniker range="vs-2017"
123123

124124
## Publish to Azure Kubernetes Service (AKS)
125125

@@ -161,8 +161,40 @@ To do this, you first need to double-check that you've installed everything as d
161161

162162
::: moniker-end
163163

164+
::: moniker range=">=vs-2019"
165+
166+
## Publish to Azure Kubernetes Service (AKS)
167+
168+
1. In the **Startup Projects** dropdown, choose the project that contains *azds.yaml*, and in the dropdown next to the green arrow, choose **Container in Kubernetes**.
169+
170+
You'll be asked to specify or create an AKS cluster.
171+
172+
![Screenshot of cluster connection dialog](media/tutorial-kubernetes-tools/vs-2019/k8s-tools-configure-cluster.png)
173+
174+
Choose the subscription and cluster that you want to use, and choose **OK**.
175+
176+
If this is the first time you've used Azure Dev Spaces on the cluster, you'll be asked if you want to enable it.
177+
178+
1. The application deploys and launches in the browser.
179+
180+
![Screenshot of running app](media/tutorial-kubernetes-tools/vs-2019/k8s-tools-running-app.png)
181+
182+
The URL is *localhost* with a random port. Port forwarding redirects requests to the Kubernetes cluster in AKS.
183+
184+
::: moniker-end
185+
164186
Congratulations! You can now use the full power of Visual Studio for all your Kubernetes app development.
165187

188+
## Remove Kubernetes support
189+
190+
1. In **Solution Explorer**, under **Properties**, open *launchSettings.json*.
191+
192+
1. Delete the section **Container in Kubernetes**.
193+
194+
1. If you're switching back to Docker compose, select that project in **Solution Explorer**, right-click and choose **Set as Startup Project**.
195+
196+
1. (Optional) You can also delete other artifacts listed as mentioned earlier in the article, such as the **charts** folder and *azds.yaml*.
197+
166198
## Next steps
167199

168200
Learn more about Kubernetes development on Azure by reading the [AKS documentation](/azure/aks).

0 commit comments

Comments
 (0)