You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
You will need the standard AWS environment variables to be set, e.g.
3
+
This directory contains files used for testing the Kubernetes provider in our internal CI system. See the [examples](https://github.com/hashicorp/terraform-provider-kubernetes/tree/master/_examples/eks) directory instead, if you're looking for example code.
4
+
5
+
To run this test infrastructure, you will need the following environment variables to be set:
4
6
5
7
-`AWS_ACCESS_KEY_ID`
6
8
-`AWS_SECRET_ACCESS_KEY`
7
9
8
-
See [AWS Provider docs](https://www.terraform.io/docs/providers/aws/index.html#configuration-reference) for more details about these variables
9
-
and alternatives, like `AWS_PROFILE`.
10
+
See [AWS Provider docs](https://www.terraform.io/docs/providers/aws/index.html#configuration-reference) for more details about these variables and alternatives, like `AWS_PROFILE`.
10
11
11
-
## Versions
12
+
Ensure that `KUBE_CONFIG_PATH` and `KUBE_CONFIG_PATHS` environment variables are NOT set, as they will interfere with the cluster build.
12
13
13
-
You can set the desired version of Kubernetes via the `kubernetes_version` TF variable.
14
+
```
15
+
unset KUBE_CONFIG_PATH
16
+
unset KUBE_CONFIG_PATHS
17
+
```
14
18
15
-
See https://docs.aws.amazon.com/eks/latest/userguide/platform-versions.html for currently available versions.
19
+
To install the EKS cluster using default values, run terraform init and apply from the directory containing this README.
16
20
17
-
You can set the desired version of Kubernetes via the `kubernetes_version` TF variable, like this:
18
21
```
19
-
export TF_VAR_kubernetes_version="1.11"
22
+
terraform init
23
+
terraform apply
20
24
```
21
-
Alternatively you can pass it to the `apply` command line, like below.
22
25
23
-
## Worker node count and instance type
26
+
## Kubeconfig for manual CLI access
24
27
25
-
You can control the amount of worker nodes in the cluster as well as their machine type, using the following variables:
28
+
The token contained in the kubeconfig expires in 15 minutes. The token can be refreshed by running `terraform apply` again. Export the KUBECONFIG to manually access the cluster:
To view all available configuration options for the EKS module used in this example, see [terraform-aws-modules/eks docs](https://registry.terraform.io/modules/terraform-aws-modules/eks/aws/latest).
0 commit comments