Git Product home page Git Product logo

akamalov / gke-networking-demos Goto Github PK

View Code? Open in Web Editor NEW

This project forked from googlecloudplatform/gke-networking-demos

0.0 2.0 0.0 2.17 MB

This project presents a number of best practices for establishing network links between Kubernetes Engine clusters, and exposing cluster services across Google Cloud projects. You will use a set of Deployment Manager templates to create networks, subnets, vpn connections, and Kubernetes Engine clusters.

License: Apache License 2.0

Makefile 2.07% Python 18.91% Dockerfile 0.69% Shell 49.10% HCL 29.23%

gke-networking-demos's Introduction

Kubernetes Engine Networking

Introduction

Google cloud networking with Kubernetes Engine clusters can be complex. Assigning optimal CIDR ranges for the relevant VPC subnets and the Kubernetes Engine clusters' reserved IP ranges from the start is very important since VPC subnets are not always easy to resize and the cluster's reserved IP ranges are immutable. Using the correct method to expose the applications in the cluster is important as every method was designed for a different set of use cases.

The demos in the project demonstrate the following best practices:

  1. Connecting two GCP networks using VPC peering and Cloud VPN containing two Kubernetes Engine clusters each.
  2. Deploying the nginx pods.
  3. Exposing the pods using Kubernetes Engine services
  4. Validating pod-to-service communication across the Kubernetes Engine clusters within the same region and the different regions.

Prerequisites

Tools

  1. Google Cloud SDK version >= 204.0.0
  2. kubectl matching the latest GKE version
  3. bash or bash compatible shell
  4. jq

Install Cloud SDK

The Google Cloud SDK is used to interact with your GCP resources. Installation instructions for multiple platforms are available online.

Install kubectl CLI

The kubectl CLI is used to interteract with both Kubernetes Engine and kubernetes in general. Installation instructions for multiple platforms are available online.

Directory Structure

  1. The gke-to-gke-peering and gke-to-gke-vpn folders each contain a project.
  2. README files exist for the above examples; gke-to-gke-peering/README.md and gke-to-gke-vpn/README.md.
  3. The network folder contains the manifest files and deployment manager templates to setup networks.
  4. The clusters folder contains the manifest files and deployment manager templates to create Kubernetes Engine clusters.
  5. The manifests folder contains the manifest files to create Kubernetes Engine services.

This is not an officially supported Google product

gke-networking-demos's People

Contributors

chrislovecnm avatar emailbob avatar mencywoo avatar tm-g avatar toast-e avatar cxhercules avatar techgnosis avatar edwardmedia avatar swathiswaminathan avatar venkayya avatar willbeebe 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.