Giter VIP home page Giter VIP logo

eksctl-jenkins_pipeline's Introduction

eksctl-jenkins_pipeline

Deploy Springboot Microservices App into Amazon EKS Cluster using Jenkins Pipeline | Containerize Springboot App and Deploy into EKS Cluster using Jenkins Pipeline

for latest version of installing eksctl -

https://github.com/weaveworks/eksctl

install jenkins

https://www.jenkins.io/doc/book/installing/linux/

install docker and kubectl and git

yum install docker -y ; yum install git -y

install awscli

create role based access for ec2 machine. create a cluster using - eksctl create cluster --name demo-eks --region us-east-1 --nodegroup-name my-nodes --node-type t3.small --managed --nodes 2 - eksctl get cluster --name demo-eks --region us-east-1 - aws eks update-kubeconfig --name demo-eks --region us-east-1 - you can view the kubeconfig file by entering the below command: cat /var/lib/jenkins/.kube/config

check for jenkins permissions to access docker:

Now Login to Jenkins EC2 instance, execute below commands: #Add jenkins user to Docker group sudo usermod -a -G docker jenkins #Restart Jenkins service sudo service jenkins restart #Reload system daemon files sudo systemctl daemon-reload #Restart Docker service as well sudo service docker stop sudo service docker start

install Helm

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

1.curl -fsSL -o get_helm.sh https://raw.githubusercontent.com/helm/helm/master/scripts/get-helm-3 2.sudo chmod 700 get_helm.sh 3.sudo ./get_helm.sh 4.helm version --client

create repo in ECR

for pushing us ethe pushing commands. aws ecr get-login-password --region us-east-1 | docker login --username AWS --password-stdin your_acct_id.dkr.ecr.us-east-1.amazonaws.com https://www.cidevops.com/2020/05/how-to-setup-elastic-container-registry.html

helm create mychart tree mychart - edited values.yaml by changing the image for ECR and service type LoadBalancer.

create deployment

kubectl create ns helm-deployment

eksctl-jenkins_pipeline's People

Contributors

k-manoj 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.