Turbine 23.5.6 Upgrade Instructions
14 min
use these upgrade instructions to upgrade your instance of turbine 23 x the instructions are organized by subsections of this document that will help you upgrade by specific installation type, whether you have an embedded or existing cluster installation known issue with embedded/existing cluster/helm installations we are aware of an issue where the user is 'unable to generate a url while creating a webhook' there is a workaround for that for now this script which can be used on all deployment methods, for kots (existing or embedded clusters) and for helm deployments contact support for additional details instructions set the value for the ns variable in line 5 to the kubernetes namespace where turbine has been installed kots existing cluster and helm deployments allow setting the namespace where the app is installed kots embedded cluster should be set to “default” copy the script to a computer where you have access to the kubernetes cluster \#!/bin/bash set e \# set the kubernetes namespace where turbine is installed, this should be "default" for a turbine installation with an embedded cluster \# ns=default ns= \[\[ z $ns ]] && echo "this script requires that you set the name of the kubernetes namespace where turbine is installed in the ns variable " && exit 1 configmap=$(kubectl n $ns get configmap tenant services o jsonpath='{ data turbine\\ init\\ tenant\\ job\\ yaml}') tenants=$(kubectl get ns l "app kubernetes io/name"="tenant services" o json | jq r ' items\[] | metadata labels "tenant swimlane io/account id" + ";" + metadata labels "tenant swimlane io/tenant id"') ifs=$'\n' for i in $tenants;do accountid=$(echo $i | cut d";" f1) tenantid=$(echo $i | cut d";" f2) yaml=$(echo "$configmap" | sed r e "s/replace account id/${accountid}/g" e "s/replace tenant id/${tenantid}/g") echo "$yaml" | kubectl n tenant$tenantid apply f done run the script on the host with a command like “chmod +x script sh && /script sh" the script will show the output of the kubectl command which applies the job manifest for each tenant $ chmod +x script sh && /script sh job batch/tenant init 791dac50 10cc 4096 944f a2ae98560d1a created upgrade turbine on embedded cluster installations use the following instructions to upgrade this version of swimlane on an embedded cluster installation prerequisites turbine version 23 2 x+ mongodb 5 0 23 important! swimlane recommends that you perform a mongodb backup prior to starting this update for more information, see backup and restore on an embedded cluster with snapshots upgrade instructions ssh into any node in your deployment scale down ekco and kotsadm rqlite kubectl scale deployment ekc operator replicas=0 n kurl kubectl scale statefulsets kotsadm rqlite replicas=0 n default execute the following command to begin the turbine platform installer component upgrade $ curl ssl https //kurl sh/turbine turbine 23 5 6 | sudo bash s ha note if you have configured selinux, add this to the end of the command above installer spec file=se yaml after the install script has completed, log in to the turbine platform installer dashboard (https //\<swimlanedns> 8800) go to the version history tab and click check for updates a pop up window appears, click go to updated version and click configure scroll down to swimlane logging level and change default, warn, to info and then save click deploy on the new 23 5 6 version with the highest sequence number at the top of the versions list once the application tab shows ‘ready’ your upgrade is complete upgrade turbine on existing cluster installations prerequisites turbine version 23 2 x+ mongodb 5 0 23 kubernetes 1 22 1 27 kots kubectl plugin 1 107 3 velero 1 10 x important! swimlane recommends that you perform a mongodb backup prior to starting this update for more information, see backup and restore on an existing cluster with snapshots upgrade instructions prepare the swimlane turbine installer kubectl add on download the swimlane turbine installer kubectl add on for the os version where you run kubectl commands from linux https //get swimlane io/turbine/existing cluster/install/linux osx https //get swimlane io/turbine/existing cluster/install/osx untar the file tar zxf kots \<os version> tar gz rename the kots binary to kubectl kots mv kots kubectl kots move the kubectl kots binary into your path so that it can be recognized by kubectl (e g /usr/local/bin/) mv kubectl kots /usr/local/bin/ run the upgrade command kubectl kots admin console upgrade n \<namespace> download velero 1 10 2 for your os version https //github com/vmware tanzu/velero/releases/tag/v1 10 untar the file and then change directory (cd) into the uncompressed directory $ tar zxf \<filename> tar gz $ cd \<directory> update velero custom resource definitions $ /velero install crds only dry run o yaml | kubectl apply f update the images velero and restic use to 1 10 2 $ kubectl set image deployment/velero velero=velero/velero\ v1 10 2 namespace velero $ kubectl set image daemonset/restic restic=velero/velero\ v1 10 2 namespace velero note this update may take a minute in order to get the new pods rolled out confirm that both the client and server versions are on the same 1 10 2 release $ /velero version when the upgrade is complete, login to the turbine installer dashboard (https //\<swimlanedns> 8800) go to the version history tab you will see a version for 23 5 6 click deploy once the preflight checks have completed a new configuration is needed for the elasticsearch persistent volume size and storageclass recommended sizes for small/medium/large environments are 8gb/16gb/32gb respectively once the application tab shows ‘ready’ your upgrade is complete upgrade turbine on embedded airgap cluster installations \[ 23 5 6 will not be available for airgapped environments 23 5 7 is expected to follow shortly which will have airgap support ] upgrade turbine on existing airgap cluster installations \[ 23 5 6 will not be available for airgapped environments 23 5 7 is expected to follow shortly which will have airgap support ]