Standard Upgrade Guide
📘 Overview
This guide explains how to safely upgrade CSGHUB in a production environment. The upgrade process ensures data security, service continuity, and minimal downtime.
💡 Scope: Applicable for CSGHUB clusters deployed via Helm Chart.
⚙️ Prerequisites
✅ Environment Requirements
| Item | Requirement |
|---|---|
| Kubernetes Cluster | v1.28+, cluster in healthy state (kubectl get nodes all Ready) |
| Helm | v3.12.0+, with administrator privileges |
| CSGHUB Deployment | Running instance successfully deployed via Helm |
⚠️ Note: Always backup data and save configuration before upgrading to prevent data loss.
💾 Pre-Upgrade Preparation
1️⃣ Backup Current Configuration
Export current Helm values:
helm get values csghub -n csghub -o yaml > csghub-values-backup.yaml
2️⃣ Backup Critical Data
At minimum, backup the following:
| Component | Backup Method |
|---|---|
| Database (PostgreSQL) | Follow database backup and restore guide |
| Helm Values | Already exported as csghub-values-backup.yaml |
💡 Recommended: Use snapshot-based backups (e.g., Ceph Snapshot / RDS Snapshot) for consistency.
🧩 Upgrade Steps
1️⃣ Update Helm Repository
helm repo update
Check available versions:
helm search repo csghub/csghub --versions
Example output:
NAME CHART VERSION APP VERSION DESCRIPTION
csghub/csghub 1.15.0 v1.15.0 CSGHub charts with CE and EE.
......
2️⃣ Execute Upgrade Command
helm upgrade --install csghub csghub/csghub \
--namespace csghub \
-f csghub-values-backup.yaml
To upgrade to a specific version:
helm upgrade csghub csghub/csghub \
--namespace csghub \
-f csghub-values-backup.yaml \
--version 1.15.0
⚠️ If you modified the domain or enabled HTTPS, ensure the following parameters remain consistent:
--set global.ingress.domain="<your-domain>" \
--set global.ingress.tls.enabled=true \
--set global.ingress.tls.secretName="csghub-tls-certs"