Skip to content

Commit 10795a8

Browse files
committed
update eks readme
1 parent 685384f commit 10795a8

File tree

1 file changed

+12
-15
lines changed

1 file changed

+12
-15
lines changed

_examples/eks/README.md

Lines changed: 12 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -16,34 +16,31 @@ terraform init
1616
terraform apply
1717
```
1818

19-
Optionally, the Kubernetes version can also be specified:
19+
## Kubeconfig for manual CLI access
20+
21+
This example generates a kubeconfig file in the current working directory. However, the token in this config expires in 15 minutes. The token can be refreshed by running `terraform apply` again. Export the KUBECONFIG to manually access the cluster:
2022

2123
```
22-
terraform apply -var=kubernetes_version=1.18
24+
terraform apply
25+
export KUBECONFIG=$(terraform output kubeconfig_path)
26+
kubectl get pods -n test
2327
```
2428

25-
See https://docs.aws.amazon.com/eks/latest/userguide/platform-versions.html for currently available versions.
29+
## Optional variables
2630

27-
## Kubeconfig for manual CLI access
28-
29-
This example generates a kubeconfig file in the current working directory. However, the token in this config expires in 15 minutes. I can be refreshed by running `terraform apply` again. Export the KUBECONFIG to manually access the cluster.
31+
The Kubernetes version can be specified at apply time:
3032

3133
```
32-
export KUBECONFIG=$(terraform output kubeconfig_path)
33-
kubectl get pods -n test
34+
terraform apply -var=kubernetes_version=1.18
3435
```
3536

36-
## Worker node count and instance type
37+
See https://docs.aws.amazon.com/eks/latest/userguide/platform-versions.html for currently available versions.
3738

38-
You can control the amount of worker nodes in the cluster as well as their machine type, using the following variables:
3939

40-
- `TF_VAR_workers_count`
41-
- `TF_VAR_workers_type`
40+
### Worker node count and instance type
4241

43-
Export values for them or pass them to the apply command line:
42+
The number of worker nodes, and the instance type, can be specified at apply time:
4443

4544
```
4645
terraform apply -var=workers_count=4 -var=workers_type=m4.xlarge
4746
```
48-
49-

0 commit comments

Comments
 (0)