Upgrade a Couchbase Deployment

      +
      How-to upgrade Couchbase Server to a newer version.

      Given the existing configuration:

      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.
      apiVersion: couchbase.com/v2
      kind: CouchbaseCluster
      spec:
        image: couchbase/server:7.1.3 (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.

      Delta Recovery

      Given the existing configuration:

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