Workload clusters using standard packages as PackageInstalls (PKGI) will need to be migrated to the new VKS addon management.
This KB article will provide steps on how to manually migrate packageInstalls installed from standard package repositories that running in workload clusters to VKS addon equivalents.
vSphere 8.X
vSphere Supervisor 8.X
VKS 3.5.0 or higher
chmod a+x ./pkgi-migrate.sh
kubectl get pkgi -A
Automatically installed system PKGi that do not need to be migrated:
./pkgi-migrate.sh -c <workload cluster name> -s <PKGI namespace> -p <PKGI name>
vcf context list
vcf context use <workload cluster context>
vcf package installed list -A
Automatically installed system PKGi that do not need to be migrated:
vcf package installed get <package name> -n <package namespace> --values-file-output <values filename>.out
If the PKGI uses only default values, the above file will be empty.
vcf context use <supervisor-context>:<workload cluster namespace>
vcf addon available list
vcf addon available list <addon name>
vcf addon install migrate <package name> --addon-name <addon name> --cluster-name <workload cluster name> -v <addon version> -f <data values filename>.out
vcf addon install list --cluster-name <workload cluster name>
An addon in Ready=True state indicates that the migration completed successfully and it is working without issue.
For any addons in Ready=False state, check the below section for troubleshooting.
If the migration fails, or the VKS addon remains in Ready=False state, see the below troubleshooting steps accordingly.
vcf context use <supervisor-context>:<workload cluster namespace>
vcf addon install list --cluster-name <workload cluster name>
If the migrated PKGI is not present in the above list, check that the "vcf addon install migrate" command was run properly and re-run it once more.
If you encounter "unable to get the Configmap" errors, the VKS addon will need to be created manually:
Run the VKS addon creation command (with the data values file, if applicable):
vcf addon install create <addon name> --cluster-name <workload cluster name> -f <data values file>.out
If the VKS Addon is listed, but remains in Ready=False state:
vcf addon install update <addon name> --cluster-name <workload cluster> -f <data values file>.out
vcf addon install get <addon name> --cluster-name <workload cluster name>
(OPTIONAL) Verify AddonConfig Resources for configuration accuracy:
kubectl get AddonConfig -n <workload cluster namespace>
kubectl get AddonConfig <addonconfig name> -n <workload cluster namespace> -o yaml