[Video](https://www.youtube.com/watch?v=os5-LkmIkgU)

Skip-version upgrades let you skip a minor version when you upgrade worker node
pools after upgrading the user cluster control plane, which reduces the number
of node drain and reboot cycles. For example, if a worker node pool is at
version 1.29, you can upgrade the user cluster control plane to 1.30 and then
to 1.31, and then upgrade the worker node pool directly from 1.29 to 1.31. This
capability is supported on advanced and non-advanced clusters, except on
version 1.31 advanced clusters and Google Distributed Cloud software only for VMware versions earlier than 1.28.

Before you begin, make sure that you're familiar with
[Upgrade overview](https://docs.cloud.google.com/kubernetes-engine/distributed-cloud/vmware/docs/how-to/upgrade-overview.md.txt),
[Upgrade version rules](https://docs.cloud.google.com/kubernetes-engine/distributed-cloud/vmware/docs/how-to/upgrade-version-rules.md.txt),
[Upgrade best practices](https://docs.cloud.google.com/kubernetes-engine/distributed-cloud/vmware/docs/how-to/upgrade-best-practices.md.txt),
and
[Upgrade a cluster](https://docs.cloud.google.com/kubernetes-engine/distributed-cloud/vmware/docs/how-to/upgrading.md.txt).

## Limitations

The following are limitations of skip-version upgrades:

- Skip-version upgrades are supported for Ubuntu and
  Container-Optimized OS node pools, but not for Windows node pools.

- Version 1.31: this feature isn't available on
  [advanced clusters](https://docs.cloud.google.com/kubernetes-engine/distributed-cloud/vmware/docs/how-to/user-cluster-configuration-file-latest.md.txt#enable-advanced-cluster-field).

- Version 1.32 and higher: this feature is available on advanced clusters.

- Load balancer node pools (node pools with `enableLoadBalancer: true`) don't
  support skip-version upgrades or version skew. The version of a load balancer
  node pool must match the cluster version.

- Because of
  [Kubernetes constraints](https://kubernetes.io/releases/version-skew-policy/),
  a user cluster's control plane must be upgraded one minor version at a time.
  Note, however, that upgrading only the control plane takes significantly less
  time and is less risky than upgrading node pools where your workloads run.

## Benefits of skip-version upgrades

This section describes some benefits of using skip-version upgrades.

### Easier to keep your clusters in a supported version

A new Google Distributed Cloud minor version is released every four months, and each
minor version has a one-year support window. For your clusters to stay within
the supported window, you must perform a minor version upgrade approximately
every four months, as shown in the following:

|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Dec | Jan | Feb | Mar | Apr | May | Jun | Jul | Aug | Sep | Oct | Nov | Dec | Jan | Feb | Mar | Apr | May | Jun | Jul | Aug | Sep | Oct | Nov | Dec | Jan | Feb | Mar |
| 1.14 | Yes | Yes | Yes | Yes | Yes | Yes | Yes | Yes | Yes | Yes | Upgrade | No | No | No | No | No | No | No | No | No | No | No | No | No | No | No | No |
|   |   |   |   | 1.15 | Yes | Yes | Yes | Yes | Yes | Yes | Yes | Yes | Yes | Yes | Upgrade | No | No | No | No | No | No | No | No | No | No | No | No |
|   |   |   |   |   |   |   |   | 1.16 | Yes | Yes | Yes | Yes | Yes | Yes | Yes | Yes | Yes | Yes | Upgrade | No | No | No | No | No | No | No | No |
|   |   |   |   |   |   |   |   |   |   |   |   | 1.28 | Yes | Yes | Yes | Yes | Yes | Yes | Yes | Yes | Yes | Upgrade | No | No | No | No | No |
|   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   | 1.29 | Yes | Yes | Yes | Yes | Yes | Yes | Yes | Yes | Yes | Upgrade | No |

This requirement imposes challenges when you need a long validation window to
verify a new minor version and a short maintenance window to upgrade your
clusters to the new minor version. To overcome these challenges, you can use a
skip-version upgrade, which allows your clusters to stay within the supported
window by upgrading a cluster every eight months instead of every four months.
The following table shows how skipping the upgrade for version 1.15 means you
only upgrade after eight months instead of four.

|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Dec | Jan | Feb | Mar | Apr | May | Jun | Jul | Aug | Sep | Oct | Nov | Dec | Jan | Feb | Mar | Apr | May | Jun | Jul | Aug | Sep | Oct | Nov | Dec | Jan | Feb | Mar |
| 1.14 | Yes | Yes | Yes | Yes | Yes | Yes | Yes | Yes | Yes | Yes | Upgrade | No | No | No | No | No | No | No | No | No | No | No | No | No | No | No | No |
|   |   |   |   | 1.15 | Yes | Yes | Yes | Yes | Yes | Yes | Yes | Yes | Yes | Yes | Yes | No | No | No | No | No | No | No | No | No | No | No | No |
|   |   |   |   |   |   |   |   | 1.16 | Yes | Yes | Yes | Yes | Yes | Yes | Yes | Yes | Yes | Yes | Upgrade | No | No | No | No | No | No | No | No |
|   |   |   |   |   |   |   |   |   |   |   |   | 1.28 | Yes | Yes | Yes | Yes | Yes | Yes | Yes | Yes | Yes | Yes | No | No | No | No | No |
|   |   |   |   |   |   |   |   |   |   |   |   |   |   |   |   | 1.29 | Yes | Yes | Yes | Yes | Yes | Yes | Yes | Yes | Yes | Yes | Yes |

Skipping over one minor version when upgrading your node pools reduces the
number of upgrades required to stay on a supported version. Additionally, you
don't need to qualify the skipped minor version because it is only used by the
control plane temporarily.

### Shorter maintenance window

With a skip-version upgrade, you don't need to enlarge your maintenance window.
Skipping a minor version when upgrading node pools takes the same amount of
time as upgrading the node pools to the next minor version because each node in
a node pool is drained and recreated once. Therefore, a skip-version upgrade
saves time overall and reduces workload disruption.

### Summary

In summary, a skip-version upgrade provides the following benefits:

- Get clusters to a supported version: Google Distributed Cloud supports the three most
  recent minor versions. If your clusters are on an unsupported version,
  depending on the cluster version, skipping a minor version when upgrading
  node pools could get your clusters to a supported version with fewer upgrades.

- Save time: Skipping a minor version when upgrading node pools takes the same
  amount of time as upgrading the node pools to the next minor version.
  Therefore, a skip-version upgrade takes approximately half the time of
  upgrading node pools twice. Similarly, with a skip-version upgrade, you have
  just one validation window, compared to two with regular upgrades.

- Reduce disruptions: Longer spans between upgrades and less time spent
  upgrading and validating means that your workloads run longer with fewer
  disruptions.

## Controlling the control plane and node pool versions during an upgrade

> [!CAUTION]
> **Caution:** Version skew between the control plane and the node pool isn't supported when [upgrading non-advanced clusters to advanced clusters](https://docs.cloud.google.com/kubernetes-engine/distributed-cloud/vmware/docs/how-to/update-or-upgrade-to-adv-cluster.md.txt). Clusters will be automatically upgraded to advanced clusters in 1.33.

In the user cluster configuration file, the field
[nodePools\[i\].gkeOnPremVersion](https://docs.cloud.google.com/kubernetes-engine/distributed-cloud/vmware/docs/how-to/user-cluster-configuration-file-latest.md.txt#nodepool-gkeonpremversion-field)
allows a specific node pool to use a different version than the top level
[gkeOnPremVersion](https://docs.cloud.google.com/kubernetes-engine/distributed-cloud/vmware/docs/how-to/user-cluster-configuration-file-latest.md.txt#gkeonpremversion-field)
field. By changing the value of the `nodePools[i].gkeOnPremVersion` field, you
control when a node pool is upgraded when you run `gkectl upgrade cluster`.
If you don't include `nodePools[i].gkeOnPremVersion` in the configuration
file, or if you set the field to an empty string, node pools are upgraded
to the same target version that you specify in `gkeOnPremVersion`.

## Skip-version upgrade sequence

The sequence in which you upgrade admin and user clusters depends on the
cluster version that you are upgrading to, referred to as the *target version*:

### 1.32 and higher

Use this sequence if the target version is 1.32 or higher. Suppose your
user cluster control plane and all node pools are at minor version
`1.N`. At a high level, upgrading your cluster from
`1.N` to `1.N+2` using a skip-version upgrade works
as follows:

1. Upgrade the admin cluster from version `1.N` to an intermediate version, `1.N+1`.
2. Upgrade the admin cluster from the intermediate version, `1.N+1` to the target version `1.N+2`.
3. Upgrade only the user cluster control plane from the source version, `1.N`, to an intermediate version, `1.N+1`. Leave the node pools at the source version. The intermediate version is needed because the control plane must be upgraded one minor version at a time.
4. Upgrade the control plane and the node pools to the target version, `1.N+2`.

### 1.31

Use this special sequence if the user cluster is at version 1.29, which
means the target version is 1.31. When a user cluster is at version 1.29,
an admin cluster that manages the user cluster could be at version 1.16,
1.28, or 1.29.

1. If your admin cluster is at version 1.16, upgrade it to 1.28.
2. If your admin cluster is at version 1.28, upgrade it to 1.29.
3. Upgrade only the user cluster control plane from the source version, 1.29, to an intermediate version, 1.30. Leave the node pools at the source version. The intermediate 1.30 version is needed because the control plane must be upgraded one minor version at a time.
4. Upgrade the admin cluster from version 1.29 to the intermediate version, 1.30.
5. Upgrade the admin cluster to the target version, 1.31.
6. Upgrade the user cluster control plane and the node pools to the target version, 1.31.

### 1.30 and lower

Use this sequence if the target version is 1.30 or lower.

Suppose your user cluster control plane and all node pools are at minor
version `1.N`. At a high level, upgrading your cluster from
`1.N` to `1.N+2` using a skip-version upgrade works
as follows:

1. Upgrade only the control plane from the source version, `1.N`, to an intermediate version `1.N+1`. Leave the node pools at the source version. The intermediate version is needed because the control plane must be upgraded one minor version at a time.
2. Upgrade the control plane and the node pools to the target version `1.N+2`.

## Perform a skip-version upgrade

This section provides the steps for performing a skip-version upgrade.

### Before you begin

1. Make sure the current version (the source version) of the cluster is at
   version 1.16 or higher. Be sure to check the version of the control plane
   (`gkeOnPremVersion`) and all node pools (`nodePools[i].gkeOnPremVersion`).

2. In version 1.29 and later, server-side preflight checks are enabled by
   default. Make sure to
   [review your firewall rules](https://docs.cloud.google.com/kubernetes-engine/distributed-cloud/vmware/docs/how-to/upgrading.md.txt#review_your_firewall_rules)
   to make any needed changes.

3. To upgrade to version 1.28 and later, you must enable
   `kubernetesmetadata.googleapis.com` and grant the
   `kubernetesmetadata.publisher` Identity and Access Management (IAM) role to the
   [logging-monitoring service account](https://docs.cloud.google.com/kubernetes-engine/distributed-cloud/vmware/docs/how-to/service-accounts.md.txt#logging_monitoring_service_account).
   For details, see
   [Google API and IAM requirements](https://docs.cloud.google.com/kubernetes-engine/distributed-cloud/vmware/docs/how-to/upgrading.md.txt#google_api_and_iam_requirements).

### Perform the upgrade

### 1.32 and higher

Use this sequence if the target version is 1.32 or later.

Before you start, make sure your admin cluster is at least at the same minor
version (`1.N`) as your user cluster. If your user cluster is at version 1.30
and your admin cluster is at version 1.28 or 1.29, upgrade your admin cluster
one minor version at a time until it reaches 1.30. If you already upgraded your
admin cluster to `1.N+1` or `1.N+2`---for example, while upgrading another user
cluster---skip the completed admin cluster upgrade steps.

1. Define the source version (`1.N`), the intermediate version (`1.N+1`), and
   the target version (`1.N+2`) in the following placeholder variables. Specify
   full version numbers in the form `X.Y.Z-gke.N`, such as
   `1.34.1100-gke.125`:

   | Description | Version |
   |---|---|
   | Get the current user cluster version. This is the source version (`1.N`). | `SOURCE_VERSION` |
   | Select an [intermediate version](https://docs.cloud.google.com/kubernetes-engine/distributed-cloud/vmware/docs/version-history.md.txt) (`1.N+1`). | `INTERMEDIATE_VERSION` |
   | Select the [recommended patch](https://docs.cloud.google.com/kubernetes-engine/enterprise/docs/version-and-upgrade-support.md.txt#google_cloud_distributed) from the target minor version (`1.N+2`). | `TARGET_VERSION` |

2. Upgrade the admin workstation and admin cluster from the source version
   (`1.N`) to the intermediate version (`1.N+1`):

   1. [Upgrade your admin workstation](https://docs.cloud.google.com/kubernetes-engine/distributed-cloud/vmware/docs/how-to/upgrading.md.txt#upgrade_awstation)
      to the intermediate version,
      `INTERMEDIATE_VERSION`,
      and wait for the upgrade to succeed.

   2. Import the OS images from the intermediate bundle to vSphere:

      ```
      gkectl prepare \
          --bundle-path /var/lib/gke/bundles/gke-onprem-vsphere-INTERMEDIATE_VERSION.tgz \
          --kubeconfig ADMIN_CLUSTER_KUBECONFIG
      ```

      Replace `ADMIN_CLUSTER_KUBECONFIG` with the path to
      your admin cluster `kubeconfig` file.
   3. Set the `bundlePath` field in the admin cluster configuration file to
      the intermediate bundle:

      ```
      bundlePath: "/var/lib/gke/bundles/gke-onprem-vsphere-INTERMEDIATE_VERSION.tgz"
      ```
   4. Upgrade the admin cluster to the intermediate version:

      ```
      gkectl upgrade admin \
          --kubeconfig ADMIN_CLUSTER_KUBECONFIG \
          --config ADMIN_CLUSTER_CONFIG_FILE
      ```

      Replace `ADMIN_CLUSTER_CONFIG_FILE` with the path to
      your admin cluster configuration file.
3. Upgrade the admin workstation and admin cluster from the intermediate
   version (`1.N+1`) to the target version (`1.N+2`):

   1. [Upgrade your admin workstation](https://docs.cloud.google.com/kubernetes-engine/distributed-cloud/vmware/docs/how-to/upgrading.md.txt#upgrade_awstation)
      to the target version,
      `TARGET_VERSION`,
      and wait for the upgrade to succeed.

   2. Import the OS images from the target bundle to vSphere:

      ```
      gkectl prepare \
          --bundle-path /var/lib/gke/bundles/gke-onprem-vsphere-TARGET_VERSION.tgz \
          --kubeconfig ADMIN_CLUSTER_KUBECONFIG
      ```
   3. Set the `bundlePath` field in the admin cluster configuration file to
      the target bundle:

      ```
      bundlePath: "/var/lib/gke/bundles/gke-onprem-vsphere-TARGET_VERSION.tgz"
      ```
   4. Upgrade the admin cluster to the target version:

      ```
      gkectl upgrade admin \
          --kubeconfig ADMIN_CLUSTER_KUBECONFIG \
          --config ADMIN_CLUSTER_CONFIG_FILE
      ```
4. Upgrade only the user cluster control plane from the source version (`1.N`)
   to the intermediate version (`1.N+1`):

   1. Make the following changes in the user cluster configuration file:

      - Set the `gkeOnPremVersion` field to the intermediate version,
        `INTERMEDIATE_VERSION`.

      - Set all worker node pool versions in `nodePools[i].gkeOnPremVersion`
        to the source version,
        `SOURCE_VERSION`.
        If your cluster has load balancer node pools
        (`enableLoadBalancer: true`), set their `gkeOnPremVersion` field to an
        empty string (`""`) so that they upgrade with the control plane.

      After you update your configuration file, it looks similar to the
      following example:

      ```
      gkeOnPremVersion: INTERMEDIATE_VERSION
      # Omitted fields
      nodePools:
      - name: pool-1
        gkeOnPremVersion: SOURCE_VERSION
        # Omitted fields
      - name: pool-2
        gkeOnPremVersion: SOURCE_VERSION
        # Omitted fields
      ```
   2. Upgrade the user cluster control plane:

      ```
      gkectl upgrade cluster \
          --kubeconfig ADMIN_CLUSTER_KUBECONFIG \
          --config USER_CLUSTER_CONFIG_FILE
      ```

      Replace `USER_CLUSTER_CONFIG_FILE` with the path to
      your user cluster configuration file.
5. Upgrade the user cluster control plane and worker node pools to the target
   version (`1.N+2`):

   1. Make the following changes in the user cluster configuration file:

      - Set the `gkeOnPremVersion` field to the target version,
        `TARGET_VERSION`.

      - Set `nodePools[i].gkeOnPremVersion` for each node pool to an empty
        string (`""`).

      After you update your configuration file, it looks similar to the
      following example:

      ```
      gkeOnPremVersion: TARGET_VERSION
      # Omitted fields
      nodePools:
      - name: pool-1
        gkeOnPremVersion: ""
        # Omitted fields
      - name: pool-2
        gkeOnPremVersion: ""
        # Omitted fields
      ```
   2. Upgrade the user cluster control plane and node pools:

      ```
      gkectl upgrade cluster \
          --kubeconfig ADMIN_CLUSTER_KUBECONFIG \
          --config USER_CLUSTER_CONFIG_FILE
      ```

### 1.31

Use this special sequence if the user cluster is at version 1.29, which means
the target version is 1.31. This sequence is needed because the version rules
changed in version 1.31.

When a user cluster is at version 1.29, an admin cluster that manages the user
cluster could be at version 1.16, 1.28, or 1.29.

1. If your admin cluster is at version 1.16, follow the steps to
   [upgrade your admin workstation](https://docs.cloud.google.com/kubernetes-engine/distributed-cloud/vmware/docs/how-to/upgrading.md.txt#upgrade_awstation)
   and [upgrade your admin cluster](https://docs.cloud.google.com/kubernetes-engine/distributed-cloud/vmware/docs/how-to/upgrading.md.txt#upgrade_admin_cluster)
   to version 1.28.

2. If your admin cluster is at version 1.28, follow the steps to
   [upgrade your admin workstation](https://docs.cloud.google.com/kubernetes-engine/distributed-cloud/vmware/docs/how-to/upgrading.md.txt#upgrade_awstation)
   and [upgrade your admin cluster](https://docs.cloud.google.com/kubernetes-engine/distributed-cloud/vmware/docs/how-to/upgrading.md.txt#upgrade_admin_cluster)
   to version 1.29.

3. To save space on your admin workstation, remove the downloaded bundle(s):

   ```
   rm /var/lib/gke/bundles/gke-onprem-vsphere-*.tgz
   ```

When the admin cluster and all user clusters are at version 1.29, you can start
the skip version upgrade.

1. Define the source version (1.29), an intermediate version (1.30), and
   the target version (1.31) in the following placeholder variables. All
   versions must be the full version number in the form `x.y.z-gke.N` such as
   `1.29.700-gke.110`.

   | Version |   |
   |---|---|
   | Get the current user cluster's 1.29 version. This is the source version. | `SOURCE_VERSION` |
   | Pick an [intermediate 1.30 version](https://docs.cloud.google.com/kubernetes-engine/distributed-cloud/vmware/docs/version-history.md.txt). | `INTERMEDIATE_VERSION` |
   | Pick the 1.31 target version. Select the [recommended patch](https://docs.cloud.google.com/kubernetes-engine/enterprise/docs/version-and-upgrade-support.md.txt#google_cloud_distributed) from the 1.31 minor version. | `TARGET_VERSION` |

2. [Upgrade your admin workstation](https://docs.cloud.google.com/kubernetes-engine/distributed-cloud/vmware/docs/how-to/upgrading.md.txt#upgrade_awstation)
   to the intermediate 1.30 version,
   `INTERMEDIATE_VERSION`.
   Wait for a message indicating the upgrade was successful.

3. Install the corresponding bundle:

   ```
   gkectl prepare \
       --bundle-path /var/lib/gke/bundles/gke-onprem-vsphere-INTERMEDIATE_VERSION.tgz \
       --kubeconfig ADMIN_CLUSTER_KUBECONFIG
   ```
4. [Upgrade your admin workstation](https://docs.cloud.google.com/kubernetes-engine/distributed-cloud/vmware/docs/how-to/upgrading.md.txt#upgrade_awstation)
   again, but this time to the target 1.31 version,
   `TARGET_VERSION`.
   Wait for a message indicating the upgrade was successful.

5. Install the corresponding bundle:

   ```
   gkectl prepare \
       --bundle-path /var/lib/gke/bundles/gke-onprem-vsphere-TARGET_VERSION.tgz \
       --kubeconfig ADMIN_CLUSTER_KUBECONFIG
   ```
6. Upgrade only the user cluster control plane to the intermediate version as
   follows:

   1. Make the following changes in the user cluster configuration file:

      - Set the `gkeOnPremVersion` field to the intermediate version,
        `INTERMEDIATE_VERSION`.

      - Set all the node pool versions in `nodePools[i].gkeOnPremVersion`
        to the source version,
        `SOURCE_VERSION`.

      After updating your configuration file, it should look similar to the
      following:

      ```
      gkeOnPremVersion: INTERMEDIATE_VERSION
      ...
      nodePools:
      - name: pool-1
        gkeOnPremVersion: SOURCE_VERSION
        ...
      - name: pool-2
        gkeOnPremVersion: SOURCE_VERSION
        ...
      ```
   2. Upgrade the control plane:

      ```
      gkectl upgrade cluster \
          --kubeconfig ADMIN_CLUSTER_KUBECONFIG \
          --config USER_CLUSTER_CONFIG_FILE
      ```

      Replace `USER_CLUSTER_CONFIG` with the path of your
      user cluster configuration file.
7. Set the `bundlePath` field in the admin cluster configuration file to the
   intermediate 1.30 version of the bundle:

   ```
   bundlePath: "/var/lib/gke/bundles/gke-onprem-vsphere-INTERMEDIATE_VERSION.tgz"
   ```
8. Upgrade the admin cluster to the intermediate 1.30 version:

   ```
   gkectl upgrade admin \
       --kubeconfig ADMIN_CLUSTER_KUBECONFIG \
       --config ADMIN_CLUSTER_CONFIG_FILE
   ```
9. Set the `bundlePath` field in the admin cluster configuration file to the
   target 1.31 version of the bundle:

   ```
   bundlePath: "/var/lib/gke/bundles/gke-onprem-vsphere-TARGET_VERSION.tgz"
   ```
10. Upgrade the admin cluster to the target 1.31 version:

    ```
    gkectl upgrade admin \
        --kubeconfig ADMIN_CLUSTER_KUBECONFIG \
        --config ADMIN_CLUSTER_CONFIG_FILE
    ```
11. Upgrade the control plane and the node pools to the target version as
    follows:

    1. Make the following changes in the user cluster configuration file:

       - Set the `gkeOnPremVersion` field to the target version,
         `TARGET_VERSION`.

       - Set all `nodePools[i].gkeOnPremVersion` to an empty string.

       After updating your configuration file, it should look similar to the
       following:

       ```
       gkeOnPremVersion: TARGET_VERSION
       ...
       nodePools:
       - name: pool-1
         gkeOnPremVersion: ""
         ...
       - name: pool-2
         gkeOnPremVersion: ""
         ...
       ```
    2. Upgrade the control plane and the node pools:

       ```
       gkectl upgrade cluster \
           --kubeconfig ADMIN_CLUSTER_KUBECONFIG \
           --config USER_CLUSTER_CONFIG_FILE
       ```

### 1.30 and lower

Use this sequence if the target version is 1.30 or lower.

1. Define the source version (`1.N`), the intermediate version (`1.N+1`), and
   the target version (`1.N+2`) in the following placeholder variables. All
   versions must be the full version number in the form `x.y.z-gke.N` such as
   `1.16.11-gke.25`.

   | Version |   |
   |---|---|
   | Get the current cluster version. This is the source version (`1.N`). | `SOURCE_VERSION` |
   | Pick an [intermediate version](https://docs.cloud.google.com/kubernetes-engine/distributed-cloud/vmware/docs/version-history.md.txt) (`1.N+1`). | `INTERMEDIATE_VERSION` |
   | Pick the target version (`1.N+2`). Select the [recommended patch](https://docs.cloud.google.com/kubernetes-engine/enterprise/docs/version-and-upgrade-support.md.txt#google_cloud_distributed) from the target minor version. | `TARGET_VERSION` |

2. [Upgrade your admin workstation](https://docs.cloud.google.com/kubernetes-engine/distributed-cloud/vmware/docs/how-to/upgrading.md.txt#upgrade_awstation)
   to the intermediate version,
   `INTERMEDIATE_VERSION`.
   Wait for a message indicating the upgrade was successful.

3. Install the corresponding bundle:

   ```
   gkectl prepare \
       --bundle-path /var/lib/gke/bundles/gke-onprem-vsphere-INTERMEDIATE_VERSION.tgz \
       --kubeconfig ADMIN_CLUSTER_KUBECONFIG
   ```

   Replace `ADMIN_CLUSTER_KUBECONFIG` with the path of your
   admin cluster `kubeconfig` file.
4. [Upgrade your admin workstation](https://docs.cloud.google.com/kubernetes-engine/distributed-cloud/vmware/docs/how-to/upgrading.md.txt#upgrade_awstation)
   again, but this time to the target version,
   `TARGET_VERSION`.
   Wait for a message indicating the upgrade was successful.

5. Install the corresponding bundle:

   ```
   gkectl prepare \
       --bundle-path /var/lib/gke/bundles/gke-onprem-vsphere-TARGET_VERSION.tgz \
       --kubeconfig ADMIN_CLUSTER_KUBECONFIG
   ```
6. Upgrade only the control plane to the intermediate version as follows:

   1. Make the following changes in the user cluster configuration file:

      - Set the `gkeOnPremVersion` field to the intermediate version,
        `INTERMEDIATE_VERSION`.

      - Set all the node pool versions in `nodePools[i].gkeOnPremVersion`
        to the source version,
        `SOURCE_VERSION`.

      After updating your configuration file, it should look similar to the
      following:

      ```
      gkeOnPremVersion: INTERMEDIATE_VERSION
      ...
      nodePools:
      - name: pool-1
        gkeOnPremVersion: SOURCE_VERSION
        ...
      - name: pool-2
        gkeOnPremVersion: SOURCE_VERSION
        ...
      ```
   2. Upgrade the control plane:

      ```
      gkectl upgrade cluster \
          --kubeconfig ADMIN_CLUSTER_KUBECONFIG \
          --config USER_CLUSTER_CONFIG_FILE
      ```

      Replace `USER_CLUSTER_CONFIG` with the path of your
      user cluster configuration file.
7. Upgrade the control plane and the node pools to the target version as
   follows:

   1. Make the following changes in the user cluster configuration file:

      - Set the `gkeOnPremVersion` field to the target version,
        `TARGET_VERSION`.

      - Set all `nodePools[i].gkeOnPremVersion` to an empty string.

      After updating your configuration file, it should look similar to the
      following:

      ```
      gkeOnPremVersion: TARGET_VERSION
      ...
      nodePools:
      - name: pool-1
        gkeOnPremVersion: ""
        ...
      - name: pool-2
        gkeOnPremVersion: ""
        ...
      ```
   2. Upgrade the control plane and the node pools:

      ```
      gkectl upgrade cluster \
          --kubeconfig ADMIN_CLUSTER_KUBECONFIG \
          --config USER_CLUSTER_CONFIG_FILE
      ```

If you don't have any other user clusters to upgrade, remove the bundles
from your admin workstation to save space:

```
rm /var/lib/gke/bundles/gke-onprem-vsphere-*.tgz
```

## What's next

- [Creating and managing node pools](https://docs.cloud.google.com/kubernetes-engine/distributed-cloud/vmware/docs/how-to/managing-node-pools.md.txt)
- [Configure node pool update policy](https://docs.cloud.google.com/kubernetes-engine/distributed-cloud/vmware/docs/how-to/node-pool-update-policy.md.txt)