Giter Site home page Giter Site logo

aws-eks-app-deployment's Introduction

aws-eks-app-deployment

Steps to deploy application

  1. Create the underlying infrastructure (VPC, subnets, route tables, internet gateway, nat gateway, security groups).
  2. Create EKS cluster role with policies - AmazonEKSClusterPolicy, AmazonEKSVPCResourceController.
  3. Create EKS node group role with policies - AmazonEKSWorkerNodePolicy, AmazonEC2ContainerRegistryReadOnly, AmazonEKS_CNI_Policy.
  4. Create the EKS cluster.
  5. Create the node group.
  6. Apply the deployment.yaml kubectl config.

Steps to load balance (internet facing) the above application

  1. Tag the public subnets with Tag name: kubernetes.io/role/elb; Tag value: 1.
  2. Create IAM OIDC identity provider for your cluster.
  3. Create load balancer controller policy and load balancer trust policy.
  4. Create load balancer controller role.
  5. Create service account.
  6. Add eks-charts helm repository and update.
  7. Install load balancer controller using helm.
  8. Apply the ingress.yaml kubectl config.

Some helpful commands

  1. To set kube config context

aws eks update-kubeconfig --region us-east-1 --name clusterName

  1. To apply kubectl config

kubectl apply -f config.yaml

  1. Add helm repo

helm repo add eks https://aws.github.io/eks-charts

  1. helm install load balancer

helm install aws-load-balancer-controller eks/aws-load-balancer-controller
-n kube-system
--set clusterName=clusterName
--set serviceAccount.create=false
--set serviceAccount.name=aws-load-balancer-controller

aws-eks-app-deployment's People

Contributors

listentolearn avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.