title | titleSuffix | services | ms.service | ms.component | author | ms.author | ms.date | ms.topic | description | keywords | manager |
---|---|---|---|---|---|---|---|---|---|---|---|
How to use kubectl with Azure Dev Spaces | Microsoft Docs |
Azure Dev Spaces |
azure-dev-spaces |
azure-dev-spaces |
azds-kubernetes |
ghogen |
ghogen |
05/11/2018 |
article |
Rapid Kubernetes development with containers and microservices on Azure |
Docker, Kubernetes, Azure, AKS, Azure Kubernetes Service, containers |
douge |
You can access the Kubernetes cluster within an Azure Dev Space, and use existing Kubernetes tools like kubectl
.
Running az aks use-dev-spaces
command will automatically add a kubectl
configuration context for you, so kubectl should already be connected to your Azure Dev Spaces Kubernetes cluster. Examples:
- Confirm the current context:
kubectl config current-context
- List all available contexts:
kubectl config get-contexts
. - Change context:
kubectl config use-context <context-name>
- View the Kubernetes dashboard: run
kubectl proxy
, then open your browser to the address that this command emits (append/ui
to the URL to navigate to the Kubernetes dashboard). - List the running services in the default Azure Dev Spaces space named default:
kubectl get services --namespace=default