@grucloud/module-aws-eks

2.3.1 • Public • Published

GruCloud Module the the AWS EKS

The purpose of the module-aws-eks is to create the resources to run an application on kubernetes with EKS: Elastic Kubernetes Service

Resources

module-aws-vpc

This module depends on module-aws-vpc

IAM

EKS

Config

The default config sets cluster name and the tags for the vpc and subnets. These tags are required by the Aws Load Balancer Controller. This load balancer controller runs on your kunernetes cluster, his role is to create and destroy AWS load balancer.

const clusterName = "cluster";

module.exports = ({}) => ({
  EKS: {
    cluster: {
      name: clusterName,
    },
  },
  vpc: {
    vpc: {
      Tags: [{ Key: `kubernetes.io/cluster/${clusterName}`, Value: "shared" }],
    },
    subnets: {
      privateTags: [
        {
          Key: `kubernetes.io/cluster/${clusterName}`,
          Value: "shared",
        },
        { Key: "kubernetes.io/role/internal-elb", Value: "1" },
      ],
      publicTags: [
        {
          Key: `kubernetes.io/cluster/${clusterName}`,
          Value: "shared",
        },
        { Key: "kubernetes.io/role/elb", Value: "1" },
      ],
    },
  },
});

Dependency Graph

gc graph

Graph

Example

Look at the example to find out how to use this module.

Package Sidebar

Install

npm i @grucloud/module-aws-eks

Weekly Downloads

2

Version

2.3.1

License

ISC

Unpacked Size

47.4 kB

Total Files

8

Last publish

Collaborators

  • fheem