Coder Social home page Coder Social logo

kmridha92 / microservices-deployment-scripts Goto Github PK

View Code? Open in Web Editor NEW

This project forked from indungu/microservices-deployment-scripts

0.0 1.0 0.0 6 KB

A repo for the deployment scripts used to setup a deployment pipeline for the microservices-app-example

Shell 100.00%

microservices-deployment-scripts's Introduction

Microservices Deployment Scripts

A repo for the deployment scripts used to setup a deployment pipeline for the microservices-app-example.

Contents

This repo contains the following

  1. A packer template file packer.json for creating an AMI on AWS. The Image is privisioned with Ansible and basic file uploads.
  2. An Ansible playbook playbook.yml that inplements set of tasks defined in the roles folder
  3. A roles folder contains a set of subfolders each of which implements a set of setup specific tasks
  4. A k8s_setup.sh script which is copied into the image and is used to create a Kuberneters cluster on AWS

Building image

To build the image ensure you have both Packer and Ansible installed. If you are new to configuration managemant, you may consider using this introductory demo I did on the subject. Follow this here article to get you up to speed.

Installing pre-requisites

Packer

brew install packer

ansible

brew install ansible

To build the image do Clone the repo

git clone https://github.com/indungu/microservices-deployment-scripts
cd microservices-deployment-scripts

**Create .env file

aws configure  # fill in the prompts appropriately
cat ~/.aws/credentials > .env # create the env file from the credentials you supplied

Build the image

packer build packer.json

Setting up the instance

Once the AMI is created successfully, launch an instance with it and run the k8s_setup.sh script as shown below.

ubuntu@instance_local_ip~$ source k8s_setup.sh

Conclusion

When this is done, you will have access to a jenkins instance that has: awscli, kops, kubernetes, docker, docker-compose, kubectl and nginx for reverse proxy to the Jenkins server.

Running the script will also create a cluster as set in the user defined variables section. Be sure to edit this section with the appropriate variables.

microservices-deployment-scripts's People

Contributors

indungu avatar

Watchers

Kathak Mridha 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.