Upgrading PKS with NSX-T

Page last updated:

Warning: Pivotal Container Service (PKS) v1.3 is no longer supported because it has reached the End of General Support (EOGS) phase as defined by the Support Lifecycle Policy.
To stay up to date with the latest software and security updates, upgrade to a supported version.

This topic explains how to upgrade the Pivotal Container Service (PKS) for environments using vSphere with NSX-T.

The supported upgrade paths to PKS v1.3.x are from PKS v1.2.5 and later. PKS v1.3.x is compatible with Ops Manager v2.3.1 or later and Ops Manager v2.4.x.

Note: Upgrading from PKS v1.2.5+ to PKS v1.3.x causes all certificates to be automatically regenerated. The old certificate authority is still trusted, and has a validity of one year. But the new certificates are signed with a new certificate authority, which is valid for four years.

Before You Upgrade

This section describes the activities you must perform before upgrading PKS.

Consult Compatibility Charts

For information about PKS with NSX-T and Ops Manager compatibility, refer to the release notes.

Determine Your Upgrade Path

For information about the supported upgrade path, refer to the release notes.

Prepare to Upgrade

If you have not already, complete the steps in the Upgrade Preparation Checklist for PKS v1.3.

During the Upgrade

This section describes the steps required to upgrade to PKS v1.3 with NSX-T v2.3.

Step 1: Upgrade to PKS v1.1.5 or Later

Skip this step if you are already running PKS v1.1.5+.

Follow the procedures detailed in Upgrading PKS with NSX-T in the PKS v1.1 documentation.

Note: PKS v1.1.5 with NSX-T introduces architectural changes that require larger sized worker node VMs. Before you upgrade to PKS v1.1.5 or later, you must increase the size of the Kubernetes worker node VM. For more information on how to increase the worker node VM size, see Increase the Kubernetes Worker Node VM Size in the PKS v1.1 documentation. For more information about the architectural changes in PKS v1.1.5 with NSX-T, see NSX-T Architectural Changes in the PKS v1.1.5 Release Notes.

Step 2: Upgrade to NSX-T v2.2

Skip this step if you are already running NSX-T v2.2.

To upgrade to NSX-T v2.2, follow the procedures detailed in Upgrading NSX-T in the VMware documentation.

Step 3: Upgrade to v2.3.1+

Before you upgrade to PKS v1.2.5, you must upgrade to Ops Manager v2.3.1+.

  1. Follow the procedures detailed in Upgrade Ops Manager and Installed Products to v2.3 or Upgrade Ops Manager and Installed Products to v2.4.

  2. Verify that the PKS control plane remains functional by performing the following steps:

    1. Add more workloads and create an additional cluster. For more information about performing those actions, see About Workload Upgrades in Maintaining Workload Uptime and Creating Clusters.
    2. Monitor the PKS control plane VM by clicking the Pivotal Container Service tile, selecting Status tab, and reviewing the Pivotal Container Service VM’s data points. If any data points are at capacity, scale your deployment accordingly.

Step 4: Upgrade to PKS v1.3.x

To upgrade PKS, you follow the same Ops Manager process that you use to install the tile for the first time.

Your configuration settings migrate to the new version automatically. Follow the steps below to perform an upgrade.

  1. Review the Release Notes for the version you are upgrading to.

  2. Download the desired version of the product from Pivotal Network.

  3. Navigate to the Ops Manager Installation Dashboard and click Import a Product.

  4. Browse to the PKS product file and select it. Uploading the file takes several minutes. Upload PKS product file to Ops Manager

  5. Under the Import a Product button, click + next to Pivotal Container Service. This adds the tile to your staging area.

    Import the PKS product file

Step 5: Download and Import the Stemcell

PKS v1.3.x uses a Xenial stemcell.

If Ops Manager does not have the Xenial stemcell required for PKS, the PKS tile displays the message Missing stemcell.

Note: If the Stemcell Library in Ops Manager already has a compatible Xenial stemcell, the Missing stemcell link does not appear. You do not need to download or import a new stemcell and can skip this step.

To download and import a new Xenial stemcell, follow the steps below:

  1. On the Pivotal Container Service tile, click on the Missing stemcell link.

    Verify stemcell assignment

  2. In the Stemcell Library, locate Pivotal Container Service and note the required stemcell version.

  3. Visit the Stemcells for PCF (Ubuntu Xenial) page on Pivotal Network, and download the required stemcell version for vSphere.

  4. Return to the Installation Dashboard in Ops Manager, and click on Stemcell Library.

  5. On the Stemcell Library page, click Import Stemcell and select the stemcell file you downloaded from Pivotal Network. Import stemcell

  6. Select the PKS product and click Apply Stemcell to Products. Apply stemcell to PKS

  7. Verify that Ops Manager successfully applied the stemcell. Verify stemcell assignment

  8. Select the Installation Dashboard link to return to the Installation Dashboard. Verify status is green

Step 6: Verify Errand Configuration

To verify that errands are configured correctly in the PKS tile, perform the following steps.

  1. In the PKS tile, click Errands.

  2. Under Post-Deploy Errands, verify that the listed errands are configured as follows:

    • NSX-T Validation errand: Set to On
    • Upgrade all clusters errand: Set to Default (On)
    • Create pre-defined Wavefront alerts errand: Set to Default (Off)
    • Run smoke tests: Set to On. The errand uses the PKS Command Line Interface (PKS CLI) to create a Kubernetes cluster and then delete it. If the creation or deletion fails, the errand fails and the installation of the PKS tile is aborted.

    WARNING: If you set the Upgrade all clusters errand to Off, your Kubernetes cluster version will fall behind the PKS tile version. If your clusters fall more than one version behind the tile, you can no longer upgrade the clusters. You must upgrade your clusters to match the PKS tile version before the next tile upgrade.

  3. If you make any changes, click Save.

Step 6: Apply Changes to the PKS Tile

Perform the following steps to complete the upgrade to the PKS tile.

  1. Return to the Installation Dashboard in Ops Manager.

  2. Click Review Pending Changes. For more information about this Ops Manager page, see Reviewing Pending Product Changes.

  3. Click Apply Changes.

Step 7: Upgrade to NSX-T v2.3

NSX-T v2.3 is the recommended version of NSX-T to use with PKS v1.3.

To upgrade to NSX-T v2.3, follow the procedures detailed in Upgrading NSX-T Data Center.

After the Upgrade

After you complete the upgrade to PKS v1.3.x and NSX-T v2.3, complete the following verifications and upgrades.

Update PKS and Kubernetes CLIs

Update the PKS and Kubernetes CLIs on any local machine where you run commands that interact with your upgraded version of PKS.

To update your CLIs, download and re-install the PKS and Kubernetes CLI distributions that are provided with PKS on Pivotal Network.

For more information about installing the CLIs, see the following topics:

Verify the Upgrade

After you apply changes to the PKS tile and the upgrade is complete, verify that your Kubernetes environment is healthy and confirm that NCP is running on the master node VM.

To verify the health of your Kubernetes environment and NCP, see Verifying Deployment Health.

(Optional) Upgrade vSphere

If you are deploying PKS on vSphere with NSX‑T, consult the chart below, and upgrade vSphere if necessary. Upgrade vSphere from version 6.5 or 6.5 U1 to 6.5 U2 or 6.7.

Versions Editions
  • VMware vSphere 6.7 U1 EP06 (ESXi670-201901001) – for NSX-T 2.4
  • VMware vSphere 6.7 U1
  • VMware vSphere 6.7.0
  • VMware vSphere 6.5 U2 P03 (ESXi650-201811002) – for NSX-T 2.4
  • VMware vSphere 6.5 U2
  • VMware vSphere 6.5 U1
  • vSphere Enterprise Plus
  • vSphere with Operations Management Enterprise Plus

Note: VMware vSphere 6.7 is only supported with Ops Manager v2.3.1 or later and NSX‑T v2.3.

For more information, see Upgrading vSphere in an NSX Environment in the VMware documentation.

Please send any feedback you have to pks-feedback@pivotal.io.