Triggering the Rolling Software Upgrade
The PCF utilizes the SMI Cluster Manager to perform a rolling software update. To update PCF using SMI Cluster Manager, use the following configurations:
Important | Before you begin, ensure that PCF is up and running with the current version of the software. |
-
Log in to the SMI Cluster Manager console.
-
Run the following command to log in to the SMI Ops Center.
ssh -p <port_number> admin@$(kubectl get svc -n smi | grep '.*netconf.*<port_number>' | awk '{ print $4 }')
Example:
ubuntu@popcf-cm01:~$ ssh -p <port_number> admin@$(kubectl get svc -n smi | grep '.*netconf.*<port_number>' | awk '{ print $4 }') admin@<admin_ip_address> password: SMI-CONSOLE-PASSWORD Welcome to the CLI admin connected from <admin_ip_address> using ssh on ops-center-smi-cluster-manager-85869cf9b6-7j64k
-
Download the latest TAR ball from the URL.
software-packages download URL
Example:
SMI Cluster Manager# software-packages download <URL>
NOTES:
-
software-packages download url – Specifies the software packages to be downloaded through HTTP/HTTPS.
-
-
Verify whether the TAR balls are loaded.
software-packages list
Example:
SMI Cluster Manager# software-packages list [ PCF-2019-08-21 ] [ sample ]
NOTES:
-
software-packages list – Specifies the list of available software packages.
-
-
Update the product repository URL with the latest version of the product chart.
NoteIf the repository URL contains multiple versions, the Ops Center selects the latest version automatically.
config cluster cluster_name ops-centers app_name PCF_instance_name repository url exit exit
Example:
SMI Cluster Manager# config SMI Cluster Manager(config)# clusters test2 SMI Cluster Manager(config-clusters-test2)# ops-centers PCF data SMI Cluster Manager(config-ops-centers-PCF/data)# repository <url> SMI Cluster Manager(config-ops-centers-PCF/data)# exit SMI Cluster Manager(config-clusters-test2)# exit
NOTES:
-
cluster – Specifies the K8s cluster.
-
cluster_name – Specifies the name of the cluster.
-
ops-centers app_name instance_name – Specifies the product Ops Center and instance. app_name is the application name. instance_name is the name of the instance.
-
repository url – Specifies the local registry URL for downloading the charts.
-
-
Run the cluster sync command to update to the latest version of the product chart. For more information on cluster sync command, see the Important section.
clusters cluster_name actions sync run
Example:
SMI Cluster Manager# clusters test2 actions sync run
ImportantThe cluster synchronization updates the PCF Ops Center, which in turn updates the application pods (through helm sync command) one at a time automatically.
NOTES:
-
cluster – Specifies the K8s cluster.
-
cluster_name – Specifies the name of the cluster.
-
actions – Specifies the actions performed on the cluster.
-
sync run – Triggers the cluster synchronization.
-