Skip to content

Commit 93d9bec

Browse files
authored
Update kubectl-setup.md to use AWS CLI for kubectl auth (#1454)
1 parent fcf39e6 commit 93d9bec

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

docs/guides/kubectl-setup.md

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -12,18 +12,16 @@ Install `kubectl` by following these [instructions](https://kubernetes.io/docs/t
1212

1313
## Step 2
1414

15-
Install `eksctl` by following these [instructions](https://eksctl.io/introduction/#installation).
15+
If you don't already have the AWS CLI installed, install it by following these [instructions](https://docs.aws.amazon.com/cli/latest/userguide/cli-chap-install.html).
1616

17-
## Step 3
18-
19-
Make sure that your AWS credentials are available in your current shell environment. `eksctl` will search for credentials in the `AWS_ACCESS_KEY_ID` and `AWS_SECRET_ACCESS_KEY` environment variables, or your `aws` CLI's credentials file (which can be created with `aws configure`).
17+
Confirm that `aws --version` >= 1.16, and configure your credentials by running `aws configure` or by exporting the `AWS_ACCESS_KEY_ID` and `AWS_SECRET_ACCESS_KEY` environment variables.
2018

21-
## Step 4
19+
## Step 3
2220

2321
Run the following command:
2422

2523
```bash
26-
$ eksctl utils write-kubeconfig --cluster=<cluster_name> --region=<region>
24+
$ aws eks update-kubeconfig --name=<cluster_name> --region=<region>
2725
```
2826

2927
Where `<cluster_name>` is the name of your cluster and `<region>` is the region of the cluster. These were specified when your cluster was created, either via command line prompts or your cluster configuration file (e.g. `cluster.yaml`). The default cluster name is `cortex`, and the default region is `us-east-1`.

0 commit comments

Comments
 (0)