Coder Social home page Coder Social logo

optionalg / deploy-kubernetes-multi-container Goto Github PK

View Code? Open in Web Editor NEW

This project forked from trriplejay/deploy-kubernetes-multi-container

0.0 3.0 0.0 1.89 MB

Build and Deploy a NodeJS docker image and a NGINX image to Kubernetes using Shippable pipelines.

JavaScript 77.33% CSS 5.68% HTML 16.99%

deploy-kubernetes-multi-container's Introduction

Deploying multiple images to a Kubernetes cluster with your Shippable pipeline.

AyeAye

This repository demonstrates the following :

  • Setup CI for a NodeJS application that builds a docker image and deploys it to DockerHub.
  • Setup a CD pipeline to deploy the NodeJS docker image and an nginx image to a Kubernetes cluster using many strategies documented here.

Prerequisites to run this sample

  • Source control account (e.g. GitHub, Bitbucket, Gitlab)
  • Shippable account (sign up for free at www.shippable.com)
  • Kubernetes cluster.

Setup

  • Fork this repo into your local repository in your source control account.
  • Login into Shippable with your source control account(wwww.shippable.com).
  • Create a Docker Hub integration on shippable to your docker hub.
  • All your CI configuration is in shippable.yml file, while you will modify next to reflect your integration.
  • Update the integrationName in the integration.hub section with the integration name created above.
  • Change the DOCKER_REPO and DOCKER_ACC to point to your repo and docker account.
  • Next, follow these CI Setup Instructions to enable your forked project for CI.
  • Build your CI project by clicking on the build button. Once the build completes, the NodeJS docker image will be pushed to your DockerHub account.
  • Create the Kubernetes integration using instructions provided here.

Add the pipeline in Shippable

  • Sign in with your shippable account, select your subscription from the dropdown menu in upper left (three horizontal lines).
  • Select the Pipelines tab.
  • Select the "+" icon in the upper right.
  • Select the source control repo where your fork is. This will render all the jobs in the Single pane of glass (SPOG).
  • Run the pipeline following instructions here.

CI Console Output

CI Console Output

##Build link CI build on Shippable

##Build status badge Run Status

Pipeline View

Pipeline1 Pipeline2 Pipeline3

Deploy job View

Deploy1 Deploy2 Deploy3

deploy-kubernetes-multi-container's People

Contributors

shippablejedi avatar manishas avatar ambarish2012 avatar amalfra avatar riturajcse avatar

Watchers

 avatar James Cloos avatar  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.