Coder Social home page Coder Social logo

kubernetes-on-azure's Introduction

GitOps Proof-Of-Concept

  • Multi-Stage YML Azure-pipeline

  • Yet Another Markup Language ==> YML and YAML

In this repo *.YAML is used for Kubernetes and *.YML is used for Azure-pipeline 


  • Diff option - you can compare the definition which are failing with the last known good configuration.

  • History - source control allows you to see every change which was done to your pipeline since the initial creation.

  • Rollback - if you found that your last commit causing any problem during deployment, simple roll it back to last good configuration.

  • Reusability option - how often you wanted to reuse pipeline which is already defined? - now you can simply do that by copy/paste option.

  • Team Sharing - if there are multiple people working on same pipeline it can cause problem using GUI, using YAML team members can work on separate branch and adjust definition according to their needs.

  • GitOps - verything in Git (minus secrets)

Prerequesite

  • At least one AKS cluster should be created

step: 01

  • Go to Pipeline->Environment->Create Environment Type the name of the environment, provide description and choose Kubernetes as a resource and click Next.
    • Create Environment for "development"
    • Create Environment for "test"
    • Create Environment for "production"
    • Create Environment for "etc"
  • Find service connection from project settings and rename
  • kubernetes-best-practices-organizing-with-namespaces

step: 02

  • You should also configure variable group under pipelines --> Library
  • Before running Azure-pipeline-yaml for first time, assign variable group "kubernetes-on-azure" to pipeline.
## Name the variable group: kubernetes-on-azure
DEV_ENVIRONMENT_NAME=development
DEV_CLUSTER_SERVICE_CONNECTION_NAME=development

step: 03

  • Run pipeline
  • Change scaling
  • etc

Plan B (manual integration), on any reason the CI Pipeline is not working:

  • Connect to your cluster using command line or CloudShell to interact directly with cluster using kubectl, the command line tool for Kubernetes. Kubectl is available within the Azure Cloud Shell by default and can also be installed locally.

  • Connect to https://shell.azure.com/bash/

cd $home

# clone your own repo
git clone <repo>

## apply any change 
kubectl apply -f 200_angular_kursus_app.yaml

## Destroy everything
kubectl delete -f 200_angular_kursus_app.yaml

kubernetes-on-azure's People

Contributors

jalalhejazi avatar

Watchers

 avatar James Cloos avatar

Forkers

gprasanthkumar

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.