Giter VIP home page Giter VIP logo

googlecloudplatform / gke-networking-demos Goto Github PK

View Code? Open in Web Editor NEW
136.0 35.0 51.0 2.15 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.05% Python 18.73% Shell 48.63% Dockerfile 0.68% HCL 29.91%
kubernetes kubernetes-engine networking google-cloud-platform vpn routing gke-helmsman gke

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 >= 253.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 cxhercules avatar edwardmedia avatar emailbob avatar mencywoo avatar promolic1 avatar renovate-bot avatar swathiswaminathan avatar techgnosis avatar tm-g avatar toast-e avatar venkayya avatar willbeebe avatar

Stargazers

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

Watchers

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

gke-networking-demos's Issues

Dynamic Subdomains

Hi,
I am having an issue in Google DNS
I am trying to give subdomain as feature my client , So the subdomains has to be dynamic and I am supposed to listen all dynamic subdomains.
What should I do on GCP DNS to make it work?
Where I am only able add subdomain in manually

Error 400: Master version "1.14.7-gke.10" is unsupported

Initial install using qwiklabs fails with following error:

google_container_node_pool.cluster4_nodes: Refreshing state... [id=us-central1-c/cluster-deployment-cluster4/cluster4-nodes]
google_container_node_pool.cluster1_nodes: Refreshing state... [id=us-east1-d/cluster-deployment-cluster1/cluster1-nodes]
google_container_node_pool.cluster2_nodes: Refreshing state... [id=us-central1-b/cluster-deployment-cluster2/cluster2-nodes]
google_container_cluster.cluster-deployment-cluster3: Creating...
   
Error: googleapi: Error 400: Master version "1.14.7-gke.10" is unsupported., badRequest

  on main.tf line 106, in resource "google_container_cluster" "cluster-deployment-cluster3":
 106: resource "google_container_cluster" "cluster-deployment-cluster3" {

version: a2f1413

Dependency Dashboard

This issue lists Renovate updates and detected dependencies. Read the Dependency Dashboard docs to learn more.

Open

These updates have all been created already. Click a checkbox below to force a retry/rebase of any.

Detected dependencies

cloudbuild
container/cloudbuild.yaml
dockerfile
container/Dockerfile
terraform
gke-to-gke-vpn/terraform/provider.tf
  • google 2.11.0
gke-to-gke-vpn/terraform/versions.tf
  • hashicorp/terraform >= 0.12

  • Check this box to trigger a request for Renovate to run again on this repository

Verify-functions backend checks

The way the backends_exists function is called in verify-functions.sh, it will pick up other backends that have the name k8s-ig-- and wait until they are gone until all 50 iterations have completed. If other backends are in place with those names, they can hold up the cleanup.sh process and cause a build teardown failure.

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.