8000 GitHub - mikouaj/anthos-connect-gateway-demo: Demonstration of Anthos Connect Gateway
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

mikouaj/anthos-connect-gateway-demo

Repository files navigation

Anthos Connect Gateway demo

The following repository contains code for infrastructure and tools that are setting up Fleet of GKE clusters with Anthos Connect Gateway in a fully IaC driven way.


Contents

Usage

  1. Provision demo infrastructure with Terraform

  2. Set you GKE fleet project identifier in gcloud and as env variable

    gcloud config set project my-project-id
    export FLEET_PROJECT_ID=my-project-id
  3. Clone Anthos Config Management repository

    gcloud source repos clone gke-config-management
  4. Use gke-connect-agent-generator script to generate manifest files for Connect Agent

    python gke-connect-agent-generator/gke-connect-agent-generator.py -p $FLEET_PROJECT_ID -d gke-config-management
  5. Use gke-connect-gateway-generator script to generate manifest files for Connect Gateway authentication

    NOTE: adjust Google Account identifiers of your users in a below example

    python gke-connect-gateway-generator/gke-connect-gateway-generator.py -u john@mydomian.com -u jane@mydomain.com -d gke-config-management
  6. Commit generated files to the config management repository

    cd gke-config-management
    git add .
    git commit -m "connect-gateway-demo"
    git push -u origin main
  7. Wait for GKE clusters to synchronize configuration

  8. Get cluster credentials from GKE Hub and enjoy!

    gcloud container hub memberships get-credentials cluster-one
    gcloud container hub memberships get-credentials cluster-two

Design

The infrastructure consists of N private GKE clusters that are registered fleet members. The fleet uses Config Sync with a GIT repository provided by Source Code Repositories.

Optionally, a bastion host with a public IP address can be provisioned in the same VPC network for troubleshooting purposes.

connect-gateway-demo

About

Demonstration of Anthos Connect Gateway

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published
0