This topic shows you how to upgrade a GKE on AWS management service. After upgrading your management service, upgrade your user clusters.
Before you begin
To connect to your GKE on AWS resources, perform the following directions. Select if you have an existing AWS VPC (or direct connection to your VPC) or created a dedicated VPC when creating your management service.
If you have a direct or VPN connection to an existing VPC, omit the line
env HTTP_PROXY=http://localhost:8118 from commands in this topic.
When you create a management service in a dedicated VPC, GKE on AWS includes a bastion host in a public subnet.
To connect to your management service, perform the following steps:
Change to the directory with your GKE on AWS configuration. You created this directory when Installing the management service.
To open the tunnel, run the
bastion-tunnel.shscript. The tunnel forwards to
To open a tunnel to the bastion host, run the following command:
Messages from the SSH tunnel appear in this window. When you are ready to close the connection, stop the process by using Control+C or closing the window.
Open a new terminal and change into your
Check that you're able to connect to the cluster with
env HTTP_PROXY=http://localhost:8118 \ kubectl cluster-info
The output includes the URL for the management service API server.
Upgrade your management service
To upgrade your management service, you download a new version of
then apply the changes.
Download a new version of anthos-gke
The latest version of the
anthos-gke tool is
download a new version of
anthos-gke, perform the following steps:
Download the binary from Cloud Storage.
gsutil cp gs://gke-multi-cloud-release/aws/aws-1.5.0-gke.6/bin/linux/amd64/anthos-gke .
gsutil cp gs://gke-multi-cloud-release/aws/aws-1.5.0-gke.6/bin/darwin/amd64/anthos-gke .
Update the permissions of
anthos-gkeand copy it to
chmod 755 anthos-gke sudo mv anthos-gke /usr/local/bin
Confirm that the version is
Upgrade your cluster
To upgrade your cluster, perform the following steps:
- Change to the directory with your GKE on AWS configuration.
You created this directory when
Installing the management service.
anthos-gke.yamlin a text editor. Change the value of
apiVersion: multicloud.cluster.gke.io/v1 kind: AWSManagementService metadata: name: management spec: version: aws-1.5.0-gke.6 region: aws-region ...
anthos-gke aws management initto validate the
AWSManagementServiceobject and update the
anthos-gke aws management init
anthos-gke aws management applyto update the management service on AWS.
anthos-gke aws management apply
anthos-gkecommand begins to upgrade your management service. The upgrade might take up to ten minutes to complete.
Upgrade your user clusters.