Anthos Service Mesh 1.5 has reached end of life and is no longer supported. See Upgrading from earlier versions.

View the latest documentation or select another available version:

Installing the Anthos CLI

Stay organized with collections Save and categorize content based on your preferences.

The Anthos command-line interface (CLI) lets you easily install Anthos Service Mesh on new or existing Google Kubernetes Engine (GKE) clusters. Similar to Kubernetes, the Anthos CLI operates on a declarative model. You specify the desired state in a set of YAML configuration resource files (also referred to as manifests) that contain the specification for one or more objects. The Anthos CLI uses several Kubernetes APIs described in the Config Connector resources documentation.

This page explains how to install the Anthos CLI and the tools that it uses. In addition to the Anthos CLI, you need to install the following tools:

  • kpt: You use kpt to download, manage, and customize the Anthos Service Mesh resource configuration files that are stored in the anthos-service-mesh-packages GitHub repo. The configuration files contain placeholders for your specific Google Cloud project and GKE cluster information.

  • kustomize: To use the Anthos CLI to install Anthos Service Mesh on an existing cluster, you need to install kustomize.

Before you begin

This guide assumes that you already have:

Before you start the installation:

Install the Anthos CLI

To install the Anthos CLI and required tools:

If you are using Cloud Shell, add sudo to the following commands.

  1. Install kpt:

    gcloud components install kpt
  2. Install the Anthos CLI:

    gcloud components install anthoscli beta
  3. Get the version that works with Anthos Service Mesh 1.5:

    gcloud components update anthoscli --version 298.0.0
  4. If you want to install Anthos Service Mesh on an existing cluster, install kustomize to any location on your file system. For example, to install kustomize to the current working directory:

    curl -s "\
    kubernetes-sigs/kustomize/master/hack/"  | bash

    For more additional installation options, see the kustomize installation documentation.

  5. Add the directory where you installed kustomize to your PATH:

    export PATH=$PWD:$PATH

What's next