How to upgrade Spotfire Server on K8 cluster using CDK

How to upgrade Spotfire Server on K8 cluster using CDK

book

Article ID: KB0070811

calendar_today

Updated On:

Products

Spotfire Server

Description

Below are the steps to Upgrade the Spotfire server on the K8 cluster using CDK.

Issue/Introduction

This article describes the steps to Upgrade the Spotfire server on the K8 cluster

Resolution

1. Clone the latest CDK by running the below command

git clone  https://github.com/TIBCOSoftware/spotfire-cloud-deployment-kit.gitUpload


2. Then copy the files for the version that you are trying to upgrade to the following directory /spotfire-cloud-deployment-kit/containers/downloads. For example, let's take 14.0.0

SPOT_sfire_server_14.0.0_languagepack-multi.zip
spotfireserver-14.0.0.x86_64.tar.gz
spotfirenodemanager-14.0.0.x86_64.tar.gz
Spotfire.Dxp.sdn
Spotfire.Dxp.netcore-linux.sdn
Spotfire.Dxp.TerrServiceLinux.sdn
Spotfire.Dxp.PythonServiceLinux.sdn
Spotfire.Dxp.RServiceLinux.sdn


3. Build the Spotfire container images:
In the newly cloned spotfire-cloud-deployment-kit directory navigate to the following location /spotfire-cloud-deployment-kit/containers and run the below command

make build


4. Edit the values.yaml file located within /spotfire-cloud-deployment-kit/spotfire-server/charts folder according to your requirement and upgrade the Spotfire Server using the helm chart.

The important point here is as this is the upgrade process we would use our existing Database and will not create a new spotfire-server database but in the default values.yaml the create-db is set to true so we will have to change it to false as below:
create-db:
       enabled: false

And also edit the bootstrap section in the values.yaml file to use the same details as the previous server.

5. Once you have edited the values.yaml file then you will have to run the below command

helm dependency build


This command is used to rebuild the charts/ directory based on the Chart.lock file.The Chart. lock file lists the exact versions of immediate dependencies and their dependencies

6. The last step is to run the helm upgrade command to upgrade the Spotfire-server

helm upgrade --install [helm-chart-name] -f ["values.yaml file to be used"] ["Chart"]


To know the helm chart name of the previously deployed spotfire server you can use the "helm ls" command and then run the helm upgrade command as follows.

helm upgrade --install tss124 -f server.yaml .


7. This should create the newly updated spotfire-server pod.

Additional Information

Doc: Spotfire Cloud Deployment Kit installation manual External: Helm Upgrade

Attachments

How to upgrade Spotfire Server on K8 cluster using CDK get_app