Code Monkey home page Code Monkey logo

devops's Introduction

devops

PREREQUISITES TO CONFIGURE THE AKS WITH KONG AND A DEMO APP

  1. kubectl (https://kubernetes.io/docs/tasks/tools/install-kubectl/)
  2. azure cli (https://docs.microsoft.com/en-us/cli/azure/install-azure-cli?view=azure-cli-latest)
  3. ansible (https://docs.ansible.com/ansible/latest/installation_guide/intro_installation.html)
  4. terraform (https://learn.hashicorp.com/tutorials/terraform/install-cli)
  5. make (brew install make) [install brew in case not installed: https://brew.sh]
  6. You can use a service principal with Owner/Contributor role or you can login as yourself if you have the access to create aks and network

NOTE (Shold Not Be Missed): Please do ensure the user update the variables.yaml file under values dir to fit your requirements before running any commands related to infra automation

Once installed run the below command to setup the aks and the kong and a demo app

git clone https://github.com/Sam123ben/devops.git
cd devops
make login
make provision-aks

Outcomes of the above

The above commands will create the following below:

  1. RESOURCE GROUP
  2. VNET
  3. SUBNET
  4. AKS
  5. KONG GATEWAY (CE)
  6. A DEMO APP

Once all the above are created and are deployed we can access the sample app using the host:

ingressIp=$(kubectl get ingress -n dev --namespace dev -o jsonpath='{.items[*].status.loadBalancer.ingress[*].ip}')

curl -i -H "Host: *" $ingressIp

On the browser you can access the same via http://$ingressIp

Directory Structure as explained:

  1. ansible (Used for templating the terraform to be able to create the infra)
  2. terraform (Used for automating the infrastructure)
  3. scripts (simple bash script to trigger the terraform and kubectl commands)
  4. value (A value file where all the proeprties and related values are maintained which will be used by the end users to create the infra)

Delete the resources:

cd devops
make login
make delete-all

devops's People

Contributors

sam123ben avatar

Watchers

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.