Upgrading Hydrolix

How to update Hydrolix on Kubernetes

Update Preparation.

In order to update Hydrolix on Google Cloud you will need to ensure you have kubectl installed.

You will also need to install the newest version of the HKT tool and some environment variables set (you may have set these when you originally set-up the platform Installing on GCP / Install on AWS ) :

export HKT_VERSION=v3.8.7
export CLIENT_ID=hdxcli-xxxx
export HYDROLIX_NAMESPACE=${CLIENT_ID}
export HYDROLIX_DB_BUCKET=${CLIENT_ID}

curl -s -o hkt-$HKT_VERSION \
https://hdx-infrastructure.s3.amazonaws.com/hkt/hkt-$HKT_VERSION

chmod +x hkt-$HKT_VERSION && ./hkt-$HKT_VERSION

sudo mv hkt-$HKT_VERSION /usr/bin/hkt

Specific for GKE

On top of including your CLIENT_ID you need to include the service account variable GCP_STORAGE_SA.

export GCP_STORAGE_SA=hdx-${CLIENT_ID}[email protected]${PROJECT_ID}.iam.gserviceaccount.com

Specific for EKS

On top of including your CLIENT_ID you need to include the service account variable AWS_STORAGE_ROLE .

export AWS_STORAGE_ROLE="arn:aws:iam::$AWS_ACCOUNT_ID:role/$CLIENT_ID-bucket"

Update the Operator

Run the HKT command and create a new operator.yaml.

hkt operator-resources > operator.yaml

Apply the yaml file to your cluster.

kubectl apply -f operator.yaml

The update should then be complete once the rolling restart of the affected components has occurred.

👍

Rollback

Rolling back is the same exact process, just specify the version you want to rollback to in your HKT_VERSION variable


Did this page help you?