Code Monkey home page Code Monkey logo

hubstaffkube's Introduction

Implementation of task 2

Reference: https://gist.github.com/robertwe/194f1c6690380c995872112c7d167d81

Requirements

  • Terraform version >= v1.3.3

Instructions to install app

  • Install minikube
curl -LO https://storage.googleapis.com/minikube/releases/latest/minikube-linux-amd64
sudo install minikube-linux-amd64 /usr/local/bin/minikube
  • Start minikube with --cni calico flag (otherwise Network policies won't work.)
minikube start --cni calico
  • Enable ingress
minikube addons enable ingress
  • Make adjustments in variables.tf
  • Run terraform apply
  • Run minikube service app-service -- url to get ingress exposed ip.

How CI/CD would look like

Assumptions

  • Have 3 environments to deploy: dev, staging, prod.
  • Master branch is protected from direct pushes, only through merge requests.

CI/CD setup

  • Any latest commit to any non-master branch, would trigger build and deployment to dev env.
  • Any merge request creation to master will trigger deployment to staging env.
  • Any merge to master deployment to prod. Thus master always will reflect state of the prod.

Deployment process

The deployment process would consist of terraform apply command and would require inputs:

  • Docker image tag - can be set via TF_image_tag environment variable.
  • Environment to deploy - can be set as predefined environment variable in CI/CD setup.

hubstaffkube's People

Contributors

dastanko avatar

Watchers

 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.