Upgrade Aerospike Database for Clusters on Kubernetes
This page describes how to upgrade Aerospike Database Enterprise Edition on your Aerospike Kubernetes Operator (AKO) deployment.
Overview
AKO performs a rolling upgrade of the Aerospike cluster by default. Because one node is upgraded at a time, there is zero downtime. A new node is created with the same pod configuration as the node that you upgraded.
For the following example, the cluster is deployed using a file named aerospike-cluster.yaml
.
Upgrade Aerospike cluster
-
To upgrade the Aerospike cluster, change the
spec.image
field in theAerospikeCluster
CR to the name of your Aerospike Database Docker image.apiVersion: asdb.aerospike.com/v1kind: AerospikeClustermetadata:name: aeroclusternamespace: aerospikespec:size: 2image: aerospike/aerospike-server-enterprise:8.0.0.2 -
Use
kubectl
to apply the change.Terminal window kubectl apply -f aerospike-cluster.yamlThe pods undergo a rolling restart.
-
Use
kubectl
to watch the progress:Terminal window kubectl get pods -n aerospikekubectl output: Terminal window NAME READY STATUS RESTARTS AGEaerocluster-0-0 1/1 Running 0 3m6saerocluster-0-1 1/1 Running 0 3m6saerocluster-0-2 1/1 Running 0 30saerocluster-0-3 1/1 Terminating 0 30s -
Use kubectl to get the status of the cluster. Check
image
for all Pods.Terminal window kubectl -n aerospike describe aerospikecluster aeroclusterkubectl output: Terminal window Name: aeroclusterNamespace: aerospikeKind: AerospikeClusterStatus:Pods:aerocluster-0-0:Aerospike:Access Endpoints:10.128.15.225:31312Alternate Access Endpoints:34.70.193.192:31312Cluster Name: aeroclusterNode ID: 0a0Tls Access Endpoints:Tls Alternate Access Endpoints:Tls Name:Host External IP: 34.70.193.192Host Internal IP: 10.128.15.225Image: aerospike/aerospike-server-enterprise:8.0.0.2Initialized Volume Paths:/opt/aerospikePod IP: 10.0.4.6Pod Port: 3000Service Port: 31312