Coder Social home page Coder Social logo

sdake / multicloud Goto Github PK

View Code? Open in Web Editor NEW
13.0 3.0 1.0 147 KB

A multicloud demonstration presented at KubeCon 2019 EU featuring the Hipster Shop across AKS, GKE, and On-Premises

License: Apache License 2.0

Shell 100.00%
istio servicemesh azure googlecloudplatform on-premises demo multicloud aws gke aks

multicloud's Introduction

Istio Three (3) Cluster Multicloud Demo

This is a demonstration of the Hipster Shop running across three Kubernetes environments (Azure, GKE, and On-premises) using Istio. The demonstration was originally given to the audience at KubeCon EU 2019:

For those that want to skip ahead, the demo is here.

The objective of this repository is to teach new contributors how multicloud works with Istio. As such, nothing all that advanced is used beyond bash, helm, and kubectl commands. Once you are up to speed, come join us develop #multicloud in the Istio project.

Architecture

The Hipster Shop includes 10 microservices. Full details of the architecture and implementation of the Hipster Shop are available in that project. This architecture diagram shows how the Hipster shop is split across 3 clouds.

Files in this repository

Component Description
license_header.txt A license header placed at the front of every K8s manifest
make-manifests.sh Creates K8s manifests from a git clone of ../microservices-demo
manifests Manifests generated from the make-manifests.sh script
onprem Scripts to install docker, kubeadm/kubelet, and deploy Kubernetes

Deploying the three (3) Kubernetes environments:

These steps are incomplete. This text will be removed when the steps are accurate and confirmed.

Prequisities

  • There must be at minimum one Kubernetes control plane node and 1 Kubernetes worker node. Most kubernetes cloud controllers suffer from an issue that does not permit the scheduling of services of type load balancer to an all-in-one deployment.
  • For On-Premises clusters using metallb, all-in-one deployments Of Kubernetes and Istio work well.
  • Three clusters are needed. This demo uses Azure AKS, Google Cloud's GKE, and Kubernetes deployed on-premesis. The demo works equally well in one cloud provider or many. To demonstrate the full power of Istio the most challenging deployment scenario was chosen.
  • Each cluster must implement a proper load balancer. Network load balancers are the optimal choice, although others can be made to work with some specific hacks, err, systems engineering.
  • One load balancer must be available in the quota of the cloud provider.
  • Sufficient security group rules quota must be available for Istio and the demonstration app. I have found through experimentation this number is at most 200 rules per cluster. Amazon Web Services defaults to 60 security groups per VPC, so you will need to request a quota increase to run this demo against AWS.
  • Each cluster must meet the minimum requirements below to launch the demo properly. The CPU/Memory requests have been set to their minimums for Istio in the Istio manifests.
CPU Memory
10 vCPU 16.0 GiB

Deploy an AKS cluster

Please follow the 5 minute quickstart for Azure CLI or Azure Portal to deploy a properly sized K8s cluster.

Deploy a GKE cluster

Please follow the GKE How-To to deploy a properly sized K8s cluster.

Deploy an On-Premises cluster

Please install Kubernetes and kubeadm and deploy an all-in-one cluster with metallb.

There are several helper scripts in the onprem directory to install Kubernetes and depooy Kubernetes 1.14.2 with metallb. I recommend using these if you don't already have Kubernetes up and running.

In any event, it is mandatory to intall a Load Balancer provider. Typically this is provided by an internal or external cloud provider, however, in the case of bare metal, metallb works well for this purpose.

multicloud's People

Contributors

sdake avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

gokulchandrap

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.