Git Product home page Git Product logo

devops_capstone's Introduction

Capstone Project

To build a CI/CD pipeline for micro services applications with either blue/green deployment and develop Continuous Integration steps that include typographical checking (aka "linting").

This project shows skills of the following;

  • Working in AWS
  • Using Jenkins to implement Continuous Integration and Continuous Deployment
  • Building pipelines
  • Working with CloudFormation to deploy clusters
  • Building Kubernetes clusters
  • Building Docker containers in pipelines
  • Blueocean on Jenkins

alt text


Static Website

Hosted site URL format is <loadbalancer_domain:port>

To collect information on loadbalancer domain:port, run sudo kubectl describe service on jenkins machine.

alt text


Error fixes

  1. First visit this medium page if you are running a blue green deployment to make sure you have configured all that is required.

  2. For "sudo: no tty present and no askpass program" error, this is generally a permissions error when accessing jenkins machine,

  • Safe measure is to write certain commands that you would like to escape asking for password in Jenkinsfile with the sudo -n as opposed to sudo.

An otherwise unsafe method as it will not require password for ALL commands from the jenkins user,

  • edit sudoers file sudo nano /etc/sudoers or gedit.
  • add jenkins ALL=(ALL) NOPASSWD: ALL under the section "# Allow members of group sudo to execute any command"
  1. For "error: no context exists with the name:". This is most likely because your jenkins user does not have permissions to access context files. I updated file Jenkins machine file to switch to jenkins user earlier in kubectl configurations. However, for this error, on the jenkins machine;
  • switch user to jenkins sudo -su jenkins (this is the user you are logged into from jenkins UI)
  • run aws configure aws configure
  • enable kubectl to run with jenkins user sudo chmod u+x /kubectl/./kubectl
  • then update kubeconfig aws eks --region <region> update-kubeconfig --name <clustername>
  • test that blueocean will be able to access context with the jenkins user kubectl config use-context <context>
  • lastly, as an extra measure, add sudo to kubectl commands in Jenkinsfile.

devops_capstone's People

Contributors

amefonaffia avatar

Stargazers

Bijay Shrestha avatar

Watchers

 avatar

Forkers

owenjsr

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.