The `gkeadm` command-line tool lets you create an admin workstation for
Google Distributed Cloud software only for VMware. This document shows you how to download `gkeadm` and verify
the binary.

Typically, `gkeadm` is the only component that you download manually. In some
cases, you might want to manually download the admin workstation Open Virtual
Appliance (OVA), the Google Distributed Cloud software only for VMware bundle, or the `gkectl` command-line
tool. For more information, see
[Downloads](https://docs.cloud.google.com/kubernetes-engine/distributed-cloud/vmware/docs/downloads.md.txt). You
can also set up an admin workstation on any computer of your choice. For
details, see
[Choose how to create the admin workstation](https://docs.cloud.google.com/kubernetes-engine/distributed-cloud/vmware/docs/how-to/create-admin-workstation.md.txt#choose_how_to_create_the_admin_workstation).

## Before you begin

You must be logged in with a
[Google Account](https://www.google.com/account/about/).

To see whether you are logged in, view your SDK `account`
[property](https://docs.cloud.google.com/sdk/docs/properties.md.txt):

```
gcloud config get-value account
```

To sign in:

```
gcloud auth login
```

## Download `gkeadm`

You use the `gkeadm` command-line tool to create an admin workstation. Then you
get an SSH connection to your admin workstation, and from there, you create
clusters.

The `gkeadm` command-line tool is available for 64-bit Linux.

```
gcloud storage cp gs://gke-on-prem-release/gkeadm/VERSION/linux/gkeadm ./
chmod +x gkeadm
```

Replace `VERSION` with the version of Google Distributed Cloud software only for VMware you
want to install or upgrade your clusters to. The latest available patch version
is 1.36.300-gke.150. For a list of available versions, see
[Versioning](https://docs.cloud.google.com/kubernetes-engine/distributed-cloud/vmware/docs/version-history.md.txt#supported-versions).

### Verify `gkeadm` using `openssl`

You can use `openssl` to verify the `gkeadm` binary against the public key.

```
gcloud storage cp gs://gke-on-prem-release/gkeadm/VERSION/linux/gkeadm.1.sig /tmp/gkeadm.1.sig
echo "---BEGIN PUBLIC KEY---
MFkwEwYHKoZIzj0CAQYIKoZIzj0DAQcDQgAEWZrGCUaJJr1H8a36sG4UUoXvlXvZ
wQfk16sxprI2gOJ2vFFggdq3ixF2h4qNBt0kI7ciDhgpwS8t+/960IsIgw==
---END PUBLIC KEY---" > key.pem
openssl dgst -verify key.pem -signature /tmp/gkeadm.1.sig ./gkeadm
```

The expected output of this command is `Verified OK`.