Created
November 17, 2022 18:41
-
-
Save mikesparr/99bedfbb8d476d8c529547740ccabef3 to your computer and use it in GitHub Desktop.
Project setup for an example Anthos deployment
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
##################################################################### | |
# REFERENCES | |
# - https://cloud.google.com/anthos/docs/tutorials/explore-anthos | |
##################################################################### | |
export PROJECT_ID=$(gcloud config get-value project) | |
export PROJECT_USER=$(gcloud config get-value core/account) # set current user | |
export PROJECT_NUMBER=$(gcloud projects describe $PROJECT_ID --format="value(projectNumber)") | |
export IDNS=${PROJECT_ID}.svc.id.goog # workflow identity domain | |
export GCP_REGION="us-central1" # CHANGEME (OPT) | |
export GCP_ZONE="us-central1-a" # CHANGEME (OPT) | |
export NETWORK_NAME="default" | |
# enable apis | |
gcloud services enable compute.googleapis.com \ | |
storage.googleapis.com \ | |
deploymentmanager.googleapis.com \ | |
runtimeconfig.googleapis.com \ | |
servicemanagement.googleapis.com | |
# configure gcloud sdk | |
gcloud config set compute/region $GCP_REGION | |
gcloud config set compute/zone $GCP_ZONE | |
# project check | |
curl -sL https://github.com/GoogleCloudPlatform/anthos-sample-deployment/releases/latest/download/asd-prereq-checker.sh | sh - | |
# launch example | |
# Ref: https://console.cloud.google.com/marketplace/details/click-to-deploy-images/anthos-sample-deployment |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Anthos Example
Google Cloud Platform's Anthos is a collection of services and Cloud Console features to enable management, configuration, monitoring of a fleet of Kubernetes Clusters (and now VMs) across GCP, AWS, Azure, and on premises.
This quick start allows you to spin up an example Anthos environment on a new GCP project in a few simple steps to try or demo
Features
Configuration Management
Security
Single Control Plane for all Kubernetes Clusters
Service Mesh (managed Istio + Dashboard)
The example deploys the Online Boutique e-commerce microservice demo to a cluster, and you can play around with the visualization features of Anthos Service Mesh (ASM).
Other features
Setup
Simply follow the steps in the script above, and as described in the "REFERENCES" documentation, and in a single-click, everything will be set up like below
Configuration
Automated setup