You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This article shows you several ways to enable Azure Dev Spaces on an AKS cluster as well as install the client-side tools.
13
13
14
-
## Enable Azure Dev Spaces using the CLI
14
+
## Enable or remove Azure Dev Spaces using the CLI
15
15
16
16
Before you can enable Dev Spaces using the CLI, you need:
17
17
* An Azure subscription. If you don't have an Azure subscription, you can create a [free account][az-portal-create-account].
@@ -44,7 +44,18 @@ Managed Kubernetes cluster 'myAKSCluster' in resource group 'myResourceGroup' is
44
44
45
45
The `use-dev-spaces` command also installs the Azure Dev Spaces CLI.
46
46
47
-
## Enable Azure Dev Spaces using the Azure portal
47
+
To remove Azure Dev Spaces from your AKS cluster, use the `azds remove` command. For example:
48
+
49
+
```azurecli
50
+
$ azds remove -g MyResourceGroup -n MyAKS
51
+
Azure Dev Spaces Controller 'MyAKS' in resource group 'MyResourceGroup' that targets resource 'MyAKS' in resource group 'MyResourceGroup' will be deleted. This will remove Azure Dev Spaces instrumentation from the target resource for new workloads. Continue? (y/N): y
52
+
53
+
Deleting Azure Dev Spaces Controller 'MyAKS' in resource group 'MyResourceGroup' that targets resource 'MyAks' in resource group 'MyResourceGroup' (takes a few minutes)...
54
+
```
55
+
56
+
The above command removes Azure Dev Spaces from the *MyAKS* cluster in *MyResourceGroup*. Any namespaces you created with Azure Dev Spaces will remain along with their workloads, but new workloads in those namespaces will not be instrumented with Azure Dev Spaces. In addition, if you restart any existing pods instrumented with Azure Dev Spaces, you may see errors. Those pods must be redeployed without Azure Dev Spaces tooling. To fully remove Azure Dev Spaces from your cluster, delete all pods in all namespaces where Azure Dev Spaces was enabled.
57
+
58
+
## Enable or remove Azure Dev Spaces using the Azure portal
48
59
49
60
Before you can enable Dev Spaces using the Azure portal, you need:
50
61
* An Azure subscription. If you don't have an Azure subscription, you can create a [free account][az-portal-create-account].
@@ -60,6 +71,8 @@ To enable Azure Dev Spaces using the Azure portal:
60
71
61
72
Enabling Azure Dev Spaces using the Azure portal **does not** install any client-side tools for Azure Dev Spaces.
62
73
74
+
To remove Azure Dev Spaces from your AKS cluster, change *Enable Dev Spaces* to *No* and click *Save*. Any namespaces you created with Azure Dev Spaces will remain along with their workloads, but new workloads in those namespaces will not be instrumented with Azure Dev Spaces. In addition, if you restart any existing pods instrumented with Azure Dev Spaces, you may see errors. Those pods must be redeployed without Azure Dev Spaces tooling. To fully remove Azure Dev Spaces from your cluster, delete all pods in all namespaces where Azure Dev Spaces was enabled.
75
+
63
76
## Install the client-side tools
64
77
65
78
You can use the Azure Dev Spaces client-side tools to interact with dev spaces on an AKS cluster from your local machine. There are several ways to install the client-side tools:
0 commit comments