The Anthos command-line interface (CLI) lets you easily configure your Google Cloud project and new or existing Anthos GKE on Google Cloud clusters and install Anthos Service Mesh. 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 to configure your Cloud project and cluster.
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
kptto 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
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.
gcloud components install kpt
Install the Anthos CLI:
gcloud components install anthoscli beta
gcloud components update
If you want to install Anthos Service Mesh on an existing cluster, install
kustomizeto any location on your file system. For example, to install
kustomizeto the current working directory:
curl -s "https://raw.githubusercontent.com/\ kubernetes-sigs/kustomize/master/hack/install_kustomize.sh" | bash
For more additional installation options, see the
Add the directory where you installed
kustomizeto your PATH: