KubeBlocks
BlogsKubeBlocks Cloud
⌘K
​

Overview

Introduction
Concepts
Kubernetes and Operator 101
Supported addons
About this manual

Try out KubeBlocks with Playground

Try out KubeBlocks on cloud
Try out KubeBlocks on laptop

Installation

Prerequisite for Local Env

Prerequisite for Local Env
Install kbcli
Install KubeBlocks
Install Addons
Uninstall KubeBlocks and kbcli

Upgrade KubeBlocks

Upgrade to v0.8
Upgrade to v0.9.0
Upgrade to v0.9.3
FAQ

Connect Database

Overview
Testing environment
Production environment

Maintenance

Scale

Horizontal Scale
Vertical Scale

Backup and Restore

Introduction

Backup

Configure BackupRepo
Configure BackupPolicy
Scheduled backup
On-demand backup

Restore

Restore from backup set
PITR

In Place Update

Overview on in-place update
Enable in-place update

Resource Scheduling

Configure pod affinity for database clusters

Cross K8s Deployment

Deploy a Cluster across Multiple Kubernetes Clusters by KubeBlocks

Instance Template

Introduction of instance template
Apply instance template

Observability

Monitor database
Configure alert

User Management

Manage user accounts

Handle an Exception

Handle an exception
Full disk lock

Developer

Developer guides
Terminology

Add an add-on to KubeBlocks

Add-ons of KubeBlocks
Add an add-on
Backup and restore
Parameter template
Parameter configuration
Monitoring
Multi-component configuration
Environment variables and placeholders

External Component

Reference external component

API Reference

Cluster
Backup
Add-On
  1. Upgrade from KubeBlocks v0.7
  2. Upgrade from KubeBlocks v0.6
  3. FAQ

Upgrade to KubeBlocks v0.8

In this tutorial, you will learn how to upgrade to KubeBlocks v0.8.

NOTE

Execute helm -n kb-system list | grep kubeblocks or kbcli version to check the current KubeBlocks version you are running, and then upgrade it.

Upgrade from KubeBlocks v0.7

  1. Set keepAddons.

    KubeBlocks v0.8 streamlines the default installed engines and separates the addons from KubeBlocks operators to KubeBlocks-Addons repo, such as greptime, influxdb, neon, oracle-mysql, orioledb, tdengine, mariadb, nebula, risingwave, starrocks, tidb, and zookeeper. To avoid deleting addon resources that are already in use during the upgrade, execute the following commands:

  • Check the current KubeBlocks version.

    helm -n kb-system list | grep kubeblocks
    
  • Set the value of keepAddons as true.

    helm repo add kubeblocks https://apecloud.github.io/helm-charts
    helm repo update kubeblocks
    helm -n kb-system upgrade kubeblocks kubeblocks/kubeblocks --version \{VERSION\} --set keepAddons=true
    

    Replace {VERSION} with your current KubeBlocks version, such as 0.7.2.

  • Check addons.

    Execute the following command to ensure that the addon annotations contain "helm.sh/resource-policy": "keep".

    kubectl get addon -o json | jq '.items[] | {name: .metadata.name, annotations: .metadata.annotations}'
    
  1. Install CRD.

    To reduce the size of Helm chart, KubeBlocks v0.8 removes CRD from the Helm chart. Before upgrading, you need to install CRD.

    kubectl replace -f https://github.com/apecloud/kubeblocks/releases/download/v0.8.1/kubeblocks_crds.yaml
    
  2. Upgrade KubeBlocks.

    helm -n kb-system upgrade kubeblocks kubeblocks/kubeblocks --version 0.8.1 --set dataProtection.image.datasafed.tag=0.1.0
    
NOTE

To avoid affecting existing database clusters, when upgrading to KubeBlocks v0.8, the versions of already-installed addons will not be upgraded by default. If you want to upgrade the addons to the versions built into KubeBlocks v0.8, execute the following command. Note that this may restart existing clusters and affect availability. Please proceed with caution.

helm -n kb-system upgrade kubeblocks kubeblocks/kubeblocks --version 0.8.1 --set upgradeAddons=true
  1. Download kbcli v0.8.

    curl -fsSL https://kubeblocks.io/installer/install_cli.sh | bash -s 0.8.1
    
  2. Upgrade KubeBlocks.

    kbcli kb upgrade --version 0.8.1 --set dataProtection.image.datasafed.tag=0.1.0
    

    kbcli will automatically add the annotation "helm.sh/resource-policy": "keep" to ensure that existing addons are not deleted during the upgrade.

Upgrade from KubeBlocks v0.6

If you are currently running KubeBlocks v0.6, please upgrade to v0.7.2 first.

  1. Download kbcli v0.7.2.

    curl -fsSL https://kubeblocks.io/installer/install_cli.sh | bash -s 0.7.2
    
  2. Upgrade to KubeBlocks v0.7.2.

    kbcli kb upgrade --version 0.7.2
    

FAQ

Refer to the FAQ to address common questions and issues that may arise when upgrading KubeBlocks. If your question isn't covered, you can submit an issue or start a discussion on upgrading on GitHub.

© 2025 ApeCloud PTE. Ltd.