Giter Club home page Giter Club logo

eksgitactions's Introduction

eksgitactions

  1. Running this app in docker instructions

$ git clone $ docker build -t pythonapp1 .

to see output on browser we need to expose port 8080 run the below command

$ docker run --name my-container -d -p 8080:8080 pythonapp1

Now visit http://localhost:8080

  1. building docker image and pushing it into Amazon ECR using github actions

open folder .github/workflows/aws.yml

before starting we need some requirements 1. AWS account

2. create ECR repository 


3.  store aws keys in secretes of github current repository under settings you can find secretes

after this you can edit repository name and aws-region then commit you can see it triggers Actions

  1. deploy our app into eks cluster using github actions pipeline

before proceding into this we need to create cluster

i am deploying the cluster using eksctl

so install eksctl follow instructions of aws https://docs.aws.amazon.com/eks/latest/userguide/getting-started-console.html

it takes several minutes to complete to finish the task

once done don't forget to update kubeconfig file using below command using aws cli (i believe you already installed and configured)

$ aws eks --region ap-south-1 update-kubeconfig --name first-eks (your cluster name here)

Then create or updATE your deployment.yml and service.yml under manifests folder

  1. Setting up Kubectl for AWS EKS

check in EKS cluster kubernetes version mine is 1.17 then execute below commands from your working PC

$ curl -o kubectl https://amazon-eks.s3.us-west-2.amazonaws.com/1.17.9/2020-08-04/bin/darwin/amd64/kubectl verfying kubectl $ kubectl version --short --client then make sure you updated the kube config file and having correct IAM permissions now you can interact with your AWS EKS cluster from your PC

once done execute below commands

$ kubectl get svc

$ kubectl describe svc python-svc #(your service name)

then copy external Ip and paste it in browser you can see the output

eksgitactions's People

Contributors

s0240917 avatar sri59677 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.