Follow the below steps to increase the limit of nginx proxy-body-size:
xxxxxxxxxx
vi infoworks/values.yaml
a. Go to ingress.annotations section and edit the nginx.ingress.kubernetes.io/proxy-body-size to 200m.
b. After editing the annotations, the values.yaml file should look as shown below:
c. Go to ingress-nginx.controller
section, add the below property
allowSnippetAnnotations: true
Ensure that the following Python packages are available on the server before starting the upgrade activity of Infoworks environment.
If the aforementioned packages are not available, execute the following command to install them.
xxxxxxxxxx
python3 -m pip install argparse pycryptodomex==3.15.0 PyYAML==6.0 jsonmerge==1.9.0 wheel
pip
module is installed in the Bastion VM.xxxxxxxxxx
cat /opt/infoworks/iw-k8s-installer/infoworks/Chart.yaml | grep appVersion
xxxxxxxxxx
appVersion: 5.5.0.6
Ensure to take backup of MongoDB Atlas and PostgresDB PaaS. In case you don't take the backup, jobs will fail after the rollback operation. For more information, refer to the MongoDB Atlas Backup and PostgresDB PaaS Backup. |
To upgrade Infoworks on Kubernetes:
xxxxxxxxxx
export IW_HOME="/opt/infoworks"
Before selecting the type of upgrade execute the following commands.
Step 1: Create the required directories and change the path to that directory.
xxxxxxxxxx
mkdir -p $IW_HOME/downloads
cd $IW_HOME/downloads
Step 1: Download the upgrade tar files shared by the Infoworks team to the Bastion (Jump host) VM and place it under $IW_HOME/downloads.
Step 2: To configure Internet-free upgrade, execute the following command:
xxxxxxxxxx
export INTERNET_FREE=true
Step 1: Download the Update script tar file.
xxxxxxxxxx
https://iw-saas-setup.s3.us-west-2.amazonaws.com/5.5/iwx_updater_k8s_5.5.1.tar.gz
Step 1: Extract the iwx_updater_k8s_5.5.1.tar.gz under $IW_HOME/downloads.
Do not extract the tar file to /opt/infoworks/iw-k8s-installer as it would result in loss of data. |
xxxxxxxxxx
tar xzvf iwx_updater_k8s_5.5.1.tar.gz
This should create two new files as follows - update-k8s.sh and configure.sh.
Step 2: Edit the configure.sh file present in the $IW_HOME/downloads/ directory and fill details as given below. For more information related to Keyvault details, refer to Keyvault and Keyvault Authentication Configuration.
# Key Vault details
# Global KeyVault Flag for Infoworks
export KEYVAULT_GLOBAL_ENABLED="true"
# Keyvault enabled true for database details stored in keyvault
export KEYVAULT_ENABLED="true"
# if keyvault enabled is true, following parameters are required
export AZURE_KEYVAULT_URI="<Keyvault_URI>"
export FLAG_AZURE_KEYVAULT_AUTH_SP="true"
export AZURE_SERVICE_PRINCIPAL_TENANT_ID="<Tenant_ID>"
export AZURE_SERVICE_PRINCIPAL_SUBSCRIPTION_ID="<Subcription_ID>"
export AZURE_SERVICE_PRINCIPAL_CLIENT_ID="<Client_ID>"
export AZURE_SERVICE_PRINCIPAL_CLIENT_SECRET="<Client_Secret>"
export AZURE_MI_TYPE_IS_USER=""
export AZURE_USER_MI_CLIENT_ID=""
# export EXTERNAL_SECRET_STORE_TYPE=""
export KEYVAULT_FLAG_METADB_HOST="true"
export KEYVAULT_FLAG_METADB_USER="true"
export KEYVAULT_FLAG_POSTGRESDB_HOST="true"
export KEYVAULT_FLAG_POSTGRESDB_USER="true"
# External Databases Configurations, MongoDB Atlas
export MONGODB_HOSTNAME="METADBHOST"
export MONGODB_USERNAME="METADBUSER"
export MONGODB_ENCRYPTED_PASSWORD="METADBPASS"
# External Postgres Database configurations for PostgresDB on Cloud
export POSTGRESDB_HOSTNAME="POSTGRESDBHOST"
export POSTGRESDB_USERNAME="POSTGRESDBUSER"
export POSTGRESDB_ENCRYPTED_PASSWORD="POSTGRESDBPASS"
Ensure all the above Keyvault fields are filled, otherwise the Keyvault setup will not work as expected. |
Step 3: Edit the configure.sh file present in the $IW_HOME/downloads/ directory and fill details as given below. For more information related to Log Archival, refer to Log Archival Configuration.
xxxxxxxxxx
# Infoworks log archival
export IW_LOG_ARCHIVAL="true"
export IW_JOB_LOGS_MAX_AGE="<Number of days>"
Step 4: Run the script.
xxxxxxxxxx
./update-k8s.sh -v 5.5.1
xxxxxxxxxx
helm upgrade aks-upgrade-550 /opt/infoworks/iw-k8s-installer/infoworks -n aks-upgrade-550 -f /opt/infoworks/iw-k8s-installer/infoworks/values.yaml
Enter N to skip running the above command to upgrade the helm deployment. (timeout: 30 seconds): N
Upgrade success
Step 5: (Applicable only for Databricks Persistent Clusters):
A change in the Infoworks jar requires libraries being uninstalled and cluster restart. Without this step, there will be stale jars. Perform the following steps:
(i) Go to the Databricks workspace, navigate to the Compute page, and select the cluster that has stale jars.
(ii) In the Libraries tab, select all the Infoworks jars and click Uninstall.
(iii) From Infoworks UI or Databricks dashboard, select Restart Cluster.
xxxxxxxxxx
export IW_HOME=/opt/infoworks
xxxxxxxxxx
appVersion: 5.5.1
Ensure to restore MongoDB Atlas and PostgresDB PaaS. In case you don't take the backup, jobs will fail after the restore operation. For more information, refer to the MongoDB Atlas Restore and PostgresDB PaaS Restore . |
Step 1: Download the rollback script.
xxxxxxxxxx
wget https://iw-saas-setup.s3.us-west-2.amazonaws.com/5.5/rollback-k8s.sh
Step 2: Place the Update script in the same directory as that of the existing iw-k8s-installer.
Step 3: Ensure you have permission to the $IW_HOME directory.
Step 4: Give executable permission to the rollback script using the below command.
xxxxxxxxxx
chmod +x rollback-k8s.sh
Step 5: Run the script.
xxxxxxxxxx
./rollback-k8s.sh -v 5.5.0.6
Step 6: You will receive the following prompt. If you want to run helm upgrade manually, then type N and press Enter.
xxxxxxxxxx
"Enter N to skip running the above command to upgrade the helm deployment. (timeout: 30 seconds): ", type Y and press Enter.