Giter Site home page Giter Site logo

go-counter-app's Introduction

GO Application in docker and Kubernetes

This project aims at creating and deploying a simole Go applicationm which connects to redis and increments counter by one on each hit. The idea is to deploy the app using docker on Vagrant VM which is configured using Ansible. Once deployed the application can be accessed on curl http://localhost:8000. The same app is also deployable in Kubernetes in order to provide HA and Self tolerance. The application can be accessed here through LoadBalancer IP.

Requirements:

  1. Vagrant.
  2. Ansible.
  3. kubectl 1.15+(Optional).

Steps:

  1. Build and push the Docker image in goapp by following the instructions in README.md.
  2. Once done using Vagrantfile boot the Virtual Machine and configure it using Ansibe.
  3. Once the VM configured the application can be accessed on curl http://localhost:8000.

Vagrant VM configuration.

  1. Use vagrant up to provision the VM which will be configured by ansible.
  2. The values of the variables can be configured in ansible/roles/vagrant/vars/main.yaml.
  1. The vm can be reconfigured again post setup and the same can be applied by using vagrant provision.

go-counter-app's People

Contributors

maannniii avatar

Watchers

 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.