Google Cloud Anthos Series: Anthos Service Mesh

Google Cloud Anthos Series: Part-4

Anchit Nishant
Google Cloud - Community
4 min readFeb 15, 2022

--

Welcome to Part-4 of the ‘Google Cloud Anthos series’. You can find the complete series Here.

These are the deployment options for containerised workloads while using Anthos Service Mesh.

  • In-cluster control plane : With In-Cluster deployment, the Istiod is installed in your own cluster.
  • Managed Anthos Service Mesh : With managed Anthos Service Mesh, Google handles upgrades, scaling, and security for you minimizing manual user maintenance.

For this deployment we will use In-cluster deployment with the same Online Boutique application we have used in our “Google Cloud Devops Series” here.

Set the PROJECT_ID environment variable and ensure the Google Kubernetes Engine and Cloud Operations APIs are enabled.

Clone the Online Boutique repository.

Create 3 GKE clusters in three different regions.

Install Anthos Service Mesh in each of these clusters.

There is an optional flag - -fleet_id. Fleets (formerly known as environs) are a Google Cloud concept for logically organizing clusters and other resources, letting you use and manage multi-cluster capabilities and apply consistent policies across your systems. In our case since all the clusters are in same project we do not need to specify the fleet-id.

When the installation is finished, check that the control plane pods are running.

The revision label comes afterrev= , create environment variable for rev label value.

Enable sidecar injection for all the clusters by changing kubectl context using kubectx command.

You can safely ignore the “not found” errors.

Deploy the application to the clusters.

Wait for the pods to be ready and check there would be two containers in every pod.

Evaluate service performance using the Anthos Service Mesh dashboard

  1. In the Console, go to Navigation menu > Anthos > Dashboard.
  2. Click Service Mesh.

3. You should be able to view service wise dashboard and get a Topology Metrics.

You can explore the dashboard with different services.

4. Use the Topology view to better visualize your mesh

Coming up..

In this blog we discussed Anthos Service Mesh. In upcoming blogs we will continue the Samajik’s journey with other Anthos features.

Contributors: Shijimol A K, Pushkar Kothavade, Dhandus

--

--