Upgrade a Couchbase Deployment

    January 5, 2025
    + 12
    How-to upgrade Couchbase Server to a newer version.

    Given the existing configuration:

    yaml
    apiVersion: couchbase.com/v2 kind: CouchbaseCluster spec: image: couchbase/server:7.0.0 (1)
    1 couchbaseclusters.spec.image can be modified to any valid Couchbase Server image, in this example we want to upgrade the version only.
    yaml
    apiVersion: couchbase.com/v2 kind: CouchbaseCluster spec: image: couchbase/server:7.6.0 (1)
    1 The modification will trigger the Operator to detect that existing pod specifications do not match the new pod specifications. This will perform a rolling upgrade of Couchbase Server.

    In Place Upgrade

    Given the existing configuration:

    yaml
    apiVersion: couchbase.com/v2 kind: CouchbaseCluster spec: image: couchbase/server:7.0.0 upgradeProcess: InPlaceUpgrade (1)
    1 This field will inform the operator that we want to perform an in-place upgrade of the existing pods.
    yaml
    apiVersion: couchbase.com/v2 kind: CouchbaseCluster spec: image: couchbase/server:7.6.0 (1) upgradeProcess: InPlaceUpgrade
    1 The Operator will detect that existing pod specifications do not match the new pod specifications and trigger an in-place upgrade.