Skip to content

pablo-albaladejo/cloud-devops

Repository files navigation

Cloud devops project

Rubic

1. LOCAL

  1. Generate the app build

    cd my-app && yarn build

  2. Dockerize the app

    run_docker.sh

  3. Deploy with Kubernetes

    run_kubernetes.sh

localhost

2. Remote

2.1 Launch an EKS Cluster

Scripts and templated based on:

eks cli

eks create cluster

eks Cloudformation

  1. Create a VPC

    In order to create the network infrastructure

    aws cloudformation create-stack --stack-name cloud-devops-vpc-network --template-body file://./infra/vpc/network.yml --region=us-east-2

    Template based on this official guide

  2. Create a Cluster Role

    aws cloudformation create-stack --stack-name cloud-devops-eks-cluster-role --template-body file://./infra/vpc/cluster.yml --region=us-east-2 --capabilities CAPABILITY_IAM

  3. Create an EKS Cluster:

    aws cloudformation create-stack --stack-name cloud-devops-eks-culster --template-body file://./infra/eks/cluster.yml --region=us-east-2

2.2 Launch a managed node group

  1. Create Amazon EKS worker node role

    aws cloudformation create-stack --stack-name cloud-devops-eks-nodegroup-role --template-body file://./infra/vpc/nodegroup.yml --region=us-east-2 --capabilities CAPABILITY_IAM

  2. Create Amazon EKS Nodegroup

    doc

    aws cloudformation create-stack --stack-name cloud-devops-eks-nodegroup --template-body file://./infra/eks/nodegroup.yml --region=us-east-2

Cloudformations EKS

2.3 Deploy Kubernetes

  1. Update and rollout

    run_eks_kubernetes

app-deployed

3. CI/CD

  1. Create an EC2 instance

  2. Intall Jenkins

    1. Plugins line BlueOcean, AWS, etc

    2. Github repo webhook

  3. Install node, aws cli and kubectl

  4. Run the pipeline

    1. React

      1. Linting

        1. Fail

          linting-fail

        2. Pass

          linting-passed

      2. Test

        1. Fail

          test-fail

        2. Pass

          test-passed

      3. Docker

        jenkins-docker

      4. Kubernetes

        jenkins-kubernetes

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published