Skip to content

Commit

Permalink
QUICKSTART-EKS: correct the note about eksctl writing kubectl context
Browse files Browse the repository at this point in the history
It's done automatically now, so it's better to have a quick description of
contexts and how the user can change it if desired.
  • Loading branch information
tjkirch committed Oct 16, 2020
1 parent b5320c2 commit 6cb070c
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions QUICKSTART-EKS.md
Original file line number Diff line number Diff line change
Expand Up @@ -154,10 +154,8 @@ You can set up a new cluster like this:
eksctl create cluster --region us-west-2 --name bottlerocket
```

Now that the cluster is created, we can have `eksctl` create the configuration for `kubectl`:
```
eksctl utils write-kubeconfig --region us-west-2 --name bottlerocket
```
This will automatically add a "context" so `kubectl` knows how to interact with your cluster, and it'll set that context as your default.
You can see your contexts (clusters) using `kubectl config get-contexts` and change your current one with `kubectl config use-context 'NEW-CONTEXT-HERE'`.

### Cluster info

Expand Down

0 comments on commit 6cb070c

Please sign in to comment.