Git Product home page Git Product logo

cloud-infrastructure's Introduction

  • Service + Dockerfile
  • YAML scripts for installing into Kubernetes
  • Bash script, that installs the service into MiniKube automatically
  • Kubernetes Readiness check + Liveness check
  • Bash script for local deployment in Minikube (without cloud library of containers)
  • Memory scaling

1. An application + Dockerfile

You can simply run an application in a single container:

from Docker Hub:

  • run docker run -d -p 5000:5000 --rm --name ylochman-cloud-infra ylochman/apps-cloud-infra:latest

or locally:

  • clone this repository: git clone https://github.com/ylochman/apps-cloud-infra.git
  • run docker build -t ylochman-hw .
  • run docker run -d -p 5000:5000 --rm --name ylochman-cloud-infra ylochman-hw

Then go to localhost:5000 and follow the instructions. To stop and remove container run:

docker container stop $(docker container ls -f "name=ylochman-cloud-infra" -q) .

2 - 6. Deployment of an application with Minikube

Clone this repository and go to deploy-kubernetes

YAML maps are located there:

  • deployment-cloud.yaml (with Readiness & Liveness check)
  • deployment-local.yaml (with Readiness & Liveness check)
  • deployment-service.yaml
  • deployment-autoscaling.yaml

Run chmod +x ./create-deploy-cloud.sh ./create-deploy-local.sh ./delete-deploy.sh

To deploy an application:

  • from cloud registry run ./create-deploy.sh -m
  • from local image simply add options -l and -b: ./create-deploy.sh -mlb.

Here the opions are:

-m - first start minikube

-l - deploy an application from local image

-b - build docker image locally before runing

To delete a deployment run ./delete-deploy.sh -m. Here -m is to stop minikube.


Deployment of an application with Docker Machine

It was done for practicing

Go to deploy-docker-machine

Run chmod +x ./create-deploy.sh ./stop-deploy.sh

To deploy an application onto a swarm cluster run ./create-deploy.sh

To stop application run ./stop-deploy.sh

cloud-infrastructure's People

Contributors

ylochman avatar

Stargazers

 avatar

Watchers

 avatar

Forkers

anastasiia-khab

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.