Skip to content

Latest commit

 

History

History
55 lines (42 loc) · 3.47 KB

README.md

File metadata and controls

55 lines (42 loc) · 3.47 KB

eks module

This is the documentation for eks module.

Summary

This module creates following resources -

  • eks cluster in provided subnets with public and private access endpoints
  • oidc provider for IRSA
  • EKS Managed AddOns
    • vpc-cni
    • coredns
    • kube-proxy
  • eks managed node group named worker in the provided subnets, creates SPOT instances of type t3.large

This module only requires you to specify eks cluster name, k8s version, vpc id, eks cluster subnet ids and eks managed node groups subnet ids. All the other variables have default values. If the default values are used, this module creates all the resources mentioned above. Please read the documentation below to know details about the variables accepted by this module.

Requirements

Name Version
aws 5.6.2

Providers

Name Version
aws 5.6.2

Modules

Name Source Version
eks terraform-aws-modules/eks/aws 19.15.3

Inputs

Name Description Type Default Required
control_plane_subnet_ids subnet ids where the eks cluster should be created list(string) n/a yes
eks_cluster_name eks cluster name string n/a yes
eks_node_groups_subnet_ids subnet ids where the eks node groups needs to be created list(string) n/a yes
k8s_version kubernetes version string "1.27" no
vpc_id vpc id where the cluster security group needs to be created string n/a yes
workers_config workers config map(any)
{
"worker": {
"capacity_type": "SPOT",
"desired_size": 1,
"instance_types": [
"t3.large"
],
"max_size": 2,
"min_size": 1
}
}
no

Outputs

Name Description
cluster_arn The Amazon Resource Name (ARN) of the cluster
cluster_certificate_authority_data Base64 encoded certificate data required to communicate with the cluster
cluster_endpoint Endpoint for your Kubernetes API server
cluster_oidc_issuer_url The URL on the EKS cluster for the OpenID Connect identity provider
oidc_provider The OpenID Connect identity provider (issuer URL without leading https://)
oidc_provider_arn The ARN of the OIDC Provider