System Update

Updates are performed through Helm. Before updating, save the values.yaml file in use, check the target chart version, and prepare a data backup for PostgreSQL installations.

Database migrations run automatically during an update: if the Helm chart migration hooks are enabled, the hooks run them before the deployments are updated; otherwise the backend and auth containers run them on startup (see Preparing for scaling).

Hosted Installation

# Update Helm chart
helm repo update

# Upgrade to a new version
helm upgrade codescoring-save codescoring-save/save \
  --namespace codescoring-save \
  --values values.yaml \
  --version <NEW_VERSION>

PostgreSQL Installation

Updating from versions earlier than 2026.47.0

Starting with version 2026.47.0, PostgreSQL is not part of the Helm chart. If the database ran in the PostgreSQL deployed by the chart (the postgres-0 pod), dump it before the update, restore the dump on an external PostgreSQL server, and set that server's address in values.yaml (see PostgreSQL and Redis):

kubectl exec -n codescoring-save postgres-0 -- \
  pg_dump -U save_user -d save_db > backup-$(date +%Y%m%d).sql
# Backup before update (external PostgreSQL server)
pg_dump -h postgresql.example.com -U save_user -d save_db > backup-$(date +%Y%m%d).sql

# Upgrade
helm upgrade codescoring-save codescoring-save/save \
  --namespace codescoring-save \
  --values values.yaml \
  --version <NEW_VERSION>

# Check deployments
kubectl get deploy -n codescoring-save

# Check backend rollout
kubectl rollout status deployment/codescoring-save -n codescoring-save

# Check auth rollout
kubectl rollout status deployment/codescoring-save-auth -n codescoring-save

# Check frontend rollout
kubectl rollout status deployment/codescoring-save-save-front -n codescoring-save

Uninstalling the Installation

Namespace deletion

Deleting the Helm release stops CodeScoring.Save components. Deleting the namespace additionally removes all resources in that namespace, so save the required data and configuration before this operation.

# Delete Helm release
helm uninstall codescoring-save --namespace codescoring-save

# Delete namespace
kubectl delete namespace codescoring-save
Was this page helpful?