Upgrade the Operator on OpenShift using Web Console from 2.3.0 to 2.4.0
Verify that 2.4.0 version of the operator is availableโ
Launch the OpenShift web console. Using the Administrator
view, navigate to Operators
> OperatorHub
.
Search for Aerospike
. Select the Marketplace
version of the Aerospike Kubernetes Operator as shown:
A dialog appears describing the Operator as shown below. Verify that 2.4.0
is the latest version.
Upgrade the Operatorโ
Based on the installPlanApproval mode, the upgrade of the Operator is either:
- Automatic: The default when installing the Operator from Red Hat Marketplace.
- Manual: If the Operator subscription has been edited to use Manual approval.
Automaticโ
The standard install procedure sets up Automatic upgrade approval for the operator. In this case OpenShift automatically installs operator version 2.4.0. You do not need to perform any manual steps.
Check that the operator has been upgraded using the Administrator
view, navigate to Operators
> Installed Operators
.
Search for Aerospike
.
You should see that the Operator has been upgrade to version 2.4.0 as shown below.
You can skip ahead to configuring the CLI step.
Manualโ
If the Operator's subscription is set for Manual approval, follow these steps to manually approve the upgrade.
Navigate to the operator the Administrator
view, then navigate to Operators
> Installed Operators
.
Search for Aerospike
.
You will see that the new Operator upgrade version 2.4.0 is available as shown below.
Click on Upgrade Available
to start the upgrade. This shows the details of the InstallPlan as follows:
The name of the InstallPlan is automatically generated and can be different from what is shown in the following examples.
Click on Preview InstallPlan
to which shows the details of the InstallPlan as follows:
Click on Approve
to approve the upgrade and begin the upgrade.
The following message appears after a successful upgrade:
Select View Operator
to verify the Operator details. The following details appear:
Configure the CLIโ
From a terminal, login to the OpenShift cluster and ensure that the oc
and kubectl
commands connect to the correct OpenShift cluster.
Check Operator Logsโ
The Operator runs as two replicas by default, for higher availability. Run the following command to follow the logs for the Operator pods.
kubectl -n openshift-operators logs -f deployment/aerospike-operator-controller-manager manager
Output:
2022-06-16T19:09:58.058Z INFO controller-runtime.metrics metrics server is starting to listen {"addr": "127.0.0.1:8080"}
2022-06-16T19:09:58.062Z INFO setup Init aerospike-server config schemas
2022-06-16T19:09:58.071Z DEBUG schema-map Config schema added {"version": "4.7.0"}
2022-06-16T19:09:58.072Z INFO aerospikecluster-resource Registering mutating webhook to the webhook server
2022-06-16T19:09:58.073Z INFO controller-runtime.webhook registering webhook {"path": "/mutate-asdb-aerospike-com-v1beta1-aerospikecluster"}
2022-06-16T19:09:58.073Z INFO controller-runtime.builder skip registering a mutating webhook, admission.Defaulter interface is not implemented {"GVK": "asdb.aerospike.com/v1beta1, Kind=AerospikeCluster"}
2022-06-16T19:09:58.073Z INFO controller-runtime.builder Registering a validating webhook {"GVK": "asdb.aerospike.com/v1beta1, Kind=AerospikeCluster", "path": "/validate-asdb-aerospike-com-v1beta1-aerospikecluster"}
2022-06-16T19:09:58.073Z INFO controller-runtime.webhook registering webhook {"path": "/validate-asdb-aerospike-com-v1beta1-aerospikecluster"}
2022-06-16T19:09:58.074Z INFO setup Starting manager
I1015 19:09:58.074722 1 leaderelection.go:243] attempting to acquire leader lease aerospike/96242fdf.aerospike.com...
Grant RBAC permissions to non-aerospike Kubernetes namespacesโ
OLM-based installations (OperatorHub.io and on RedHat OpenShift) have a known issue with upgrading from version 2.3.0 to 2.4.0.
This upgrade scenario revokes the RBAC privileges required to run Aerospike clusters in Kubernetes namespaces other than the aerospike
namespace.
If you are upgrading from 2.3.0 to 2.4.0 and are running Aerospike clusters in Kubernetes namespaces other than the aerospike
namespace, follow these instructions to restore the required RBAC privileges.