mirror of
https://github.com/ysoftdevs/terraform-aws-eks.git
synced 2026-03-26 19:31:06 +01:00
28
README.md
28
README.md
@@ -1,7 +1,7 @@
|
||||
# terraform-aws-eks
|
||||
# terraform-aws-eks
|
||||
|
||||
[](https://github.com/terraform-aws-modules/terraform-aws-eks/actions)
|
||||
[](https://github.com/terraform-aws-modules/terraform-aws-eks/blob/master/LICENSE)
|
||||
[](https://github.com/terraform-aws-modules/terraform-aws-eks/blob/master/LICENSE)
|
||||
|
||||
A terraform module to create a managed Kubernetes cluster on AWS EKS. Available
|
||||
through the [Terraform registry](https://registry.terraform.io/modules/terraform-aws-modules/eks/aws).
|
||||
@@ -19,10 +19,6 @@ Read the [AWS docs on EKS to get connected to the k8s dashboard](https://docs.aw
|
||||
## Usage example
|
||||
|
||||
A full example leveraging other community modules is contained in the [examples/basic directory](https://github.com/terraform-aws-modules/terraform-aws-eks/tree/master/examples/basic).
|
||||
Please do not forget to set the provider to the EKS cluster. This is needed to provision the aws_auth configmap in
|
||||
kube-system. You can also use this provider to create your own kubernetes resources with the terraform kubernetes
|
||||
provider.
|
||||
Here's the gist of using it via the Terraform registry:
|
||||
|
||||
```hcl
|
||||
data "aws_eks_cluster" "cluster" {
|
||||
@@ -42,26 +38,18 @@ provider "kubernetes" {
|
||||
}
|
||||
|
||||
module "my-cluster" {
|
||||
source = "terraform-aws-modules/eks/aws"
|
||||
cluster_name = "my-cluster"
|
||||
subnets = ["subnet-abcde012", "subnet-bcde012a", "subnet-fghi345a"]
|
||||
vpc_id = "vpc-1234556abcdef"
|
||||
source = "terraform-aws-modules/eks/aws"
|
||||
cluster_name = "my-cluster"
|
||||
cluster_version = "1.14"
|
||||
subnets = ["subnet-abcde012", "subnet-bcde012a", "subnet-fghi345a"]
|
||||
vpc_id = "vpc-1234556abcdef"
|
||||
|
||||
worker_groups = [
|
||||
{
|
||||
instance_type = "m4.large"
|
||||
asg_max_size = 5
|
||||
tags = [{
|
||||
key = "foo"
|
||||
value = "bar"
|
||||
propagate_at_launch = true
|
||||
}]
|
||||
}
|
||||
]
|
||||
|
||||
tags = {
|
||||
environment = "test"
|
||||
}
|
||||
}
|
||||
```
|
||||
|
||||
@@ -116,7 +104,7 @@ The [changelog](https://github.com/terraform-aws-modules/terraform-aws-eks/tree/
|
||||
## Authors
|
||||
|
||||
Created by [Brandon O'Connor](https://github.com/brandoconnor) - brandon@atscale.run.
|
||||
Maintained by [Max Williams](https://github.com/max-rocket-internet)
|
||||
Maintained by [Max Williams](https://github.com/max-rocket-internet) and [Thierno IB. BARRY](https://github.com/barryib).
|
||||
Many thanks to [the contributors listed here](https://github.com/terraform-aws-modules/terraform-aws-eks/graphs/contributors)!
|
||||
|
||||
## License
|
||||
|
||||
Reference in New Issue
Block a user