Giter Club home page Giter Club logo

aws-eks-terraform-online's Introduction

AWS EKS KUBERNETES SETUP USING TERRAFORM

In this project, we will be setting up an EKS cluster using terraform modules. We need to ensure we have certain things in place.

  • Install Terraform on the local machine. I used v1.5.O for this project
  • Install aws-cli to be able to communicate with AWS. I used aws-cli/2.8.1 version
  • Install kubectl v1.26

We need to define AWS terraform provider and the backend where our statefiles will be stored. Please ensure you create the s3 bucket used for the backend before executing the project. It is expected that the s3 bucket already exists.

image

image

To set up the cluster we need to ensure we create a VPC from scratch which our EKS cluster will use to deploy our worker nodes. We will be making use of modules to set up VPC and EKS clusters respectively.

VPC

image

EKS

image

The value for our variables are

image

image

Run terraform init to initialize the backend and the modules used for this project

image

image

I had to resolve a blocker when I tried running terraform apply

image

I got an error stating an invalid function argument for node-groups, I had to change the eks version to 18.29.0 to rectify the issue. To confirm all our resources got provisioned as planned.

image

image

Now we should try to communicate with our eks cluster

image

We have a working cluster, so we can deploy a container to the cluster

image

image

Our containers are deployed properly, hence let's see it on our browser

image

image

Now, let's use argocd to see the applications we deployed. We need to install argocd

image

image

We need to get the password, we will use to login into argocd ui.

image

image

image

image

image

image

image

aws-eks-terraform-online's People

Contributors

taiwolawal avatar

Watchers

 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.