Overview


This article describes how to enable support for newer Kubernetes or OpenShift versions in SWIFT by updating the options file. After specifying the required version(s), SWIFT can discover and manage clusters running those versions, allowing you to validate or test them before official support is included in a SWIFT release. 


Use case:


Use this procedure when:


1. You have a Kubernetes or OpenShift cluster running a newer version that is not yet supported by your current SWIFT release.

2. You want SWIFT to discover and manage that cluster for testing or validation.


Topics Covered


Support a New Kubernetes Version 
If your current SWIFT release supports Kubernetes 1.36, but you need to add a Kubernetes 1.37 cluster, follow the steps below to enable support for Kubernetes 1.37.


Procedure:


1. SSH to your SWIFT instance. 


2. Open the options file. 

sudo vi /opt/swift/data/options


3. Locate the following entry:

#dev_k8sClientOptions_enableBetaK8sVersions=


4. Uncomment the entry and specify the required Kubernetes version(s). 


Single version example:  


dev_k8sClientOptions_enableBetaK8sVersions=1.37


Multiple versions example:

dev_k8sClientOptions_enableBetaK8sVersions=1.37,1.38


5. Save the file.


6. Restart the SWIFT services. 

swiftadm restart swift


7. Wait until all SWIFT services are running. 


8. Add your Kubernetes 1.37 cluster to SWIFT. Refer this KB to discover a cluster 



Support a New OpenShift Version 


If your current SWIFT release supports OpenShift 4.21 but you need to add OpenShift 4.22 cluster, follow the steps below to enable support for OpenShift 4.22.


Procedure:


1. SSH to your SWIFT instance. 


2. Go to the options file location: 

sudo vi /opt/swift/data/options


3. Locate the following entry: 

#dev_k8sClientOptions_enableBetaOpenshiftVersions=


4. Uncomment the entry and specify the required OpenShift version(s). 


Single version example: 

dev_k8sClientOptions_enableBetaOpenshiftVersions=4.22


Multiple versions example:

#dev_k8sClientOptions_enableBetaOpenshiftVersions=4.22,4.23

 

5. Save the file


6. Restart the SWIFT services. 

swiftadm restart swift


7. Wait until all SWIFT services are running. 


8. Add your OpenShift cluster to SWIFT. Refer this KB to discover a cluster