Skip to content

Commit c7141bb

Browse files
author
John Stallo
committed
how to use kubectl
1 parent 3971156 commit c7141bb

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
# Use `kubectl` with a Connected Environment
2+
3+
You can access the Kubernetes cluster within a Connected Environment, and use existing Kubernetes tools like `kubectl`.
4+
5+
Running `vsce env create` or `vsce env select` will automatically add a `kubectl` configuration context for you, so kubectl should already be connected to your VSCE k8s cluster. Examples:
6+
- Confirm the current context: `kubectl config current-context`
7+
- List all available contexts: `kubectl config get-contexts`. A kubernetes cluster created by VSCE will be named something like "vsce-<guid>".
8+
- Change context: `kubectl config use-context <context-name>`
9+
- 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).
10+
- List the running services in the default VSCE space named *mainline*: `kubectl get services --namespace=mainline`
11+

0 commit comments

Comments
 (0)