-
Notifications
You must be signed in to change notification settings - Fork 353
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add docs for how to configure kubectl (#1011)
- Loading branch information
Showing
3 changed files
with
31 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
--- | ||
seotitle: Configure kubectl to access your Encore Kubernetes cluster | ||
seodesc: Learn how to configure kubectl to access your Encore Kubernetes cluster. | ||
title: Configure kubectl | ||
--- | ||
|
||
Encore automatically provisions and manages Kubernetes clusters for you, but sometimes it's useful to manually inspect | ||
clusters using the [kubectl](https://kubernetes.io/docs/reference/kubectl/) cli. To do this, you need to configure `kubectl` to connect and authenticate through | ||
encore. You can do this by running the following command in your app directory: | ||
|
||
```shell | ||
encore kubernetes configure -e <environment> | ||
``` | ||
|
||
Where `<environment>` is the name of the environment you want to configure `kubectl` for. | ||
|
||
This will configure `kubectl` to use `encore` to authenticate the cluster and proxy your traffic to the correct | ||
cluster. You can now use `kubectl` as you normally would, for example: | ||
|
||
```shell | ||
kubectl get pods | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters