Kubernetes was never originally designed with stateful workloads in mind. However, its popularity in this area has led many companies to take a closer look at the possibility of maintaining a single stack, rather than managing two separate ones—one for applications and another for data. The community has become deeply involved, leading to the creation of the Data on Kubernetes Community (https://dok.community/). While there are many ways to build databases on Kubernetes, the key challenges that need to be addressed are:
- How will we support “day-two” operations? If our environment isn’t large, this might not be a major issue. But in even a slightly larger environment, the workload would be truly herculean. Automation? Yes.
- Is the scalability mechanism built into the engine in a straightforward way? Most relational databases lack a simple procedure for building in scalability, whereas this is often standard for NoSQL databases. Think of MySQL vs. Apache Cassandra.
- Complexity, standardization, and configuration—a few YAML files suffice for simple setups, but for more complex ones, we look to Helm Charts. We also value having our environment meet certain standards, especially when working for large organizations.
- Automation – Helm is more of a package manager than a fully automated solution. It has its own limitations, which are quite problematic for CI/CD pipelines (such as the GitLab setup I use) and IaC solutions (like Terraform).
One concept in Kubernetes that can help address these issues is the Operator pattern. Kubernetes features a highly extensible API, which can be expanded using Custom Resource Definitions (CRDs). An Operator is a type of controller; the difference is that an Operator manages domain-specific components, whereas a standard controller handles core Kubernetes entities—such as a Deployment. A standard controller is a simple tool that implements a control loop consisting of four steps:
- Reading the current state of resources
- Making changes to the state of resources
- Updating the status of resources
- Repeat
An operator automates operations performed on a CRD; for example, when scaling up the number of instances, the operator is aware of the engine’s specifics and handles the automation itself. Many operators exist today, and there is even a dedicated repository that aggregates them all: OperatorHub. Another noteworthy feature is a specific metric that describes the extent to which a given operator is cloud-native: the Capability Level. There are five levels, ranging from “Basic” to “Auto-pilot.” Since this post focuses on the Oracle Database Operator, let’s take a look at its Capability Level.

In other words, it ensures:
- Installation and configuration of Kubernetes and workloads
- Upgrade of the managed workload and operator
However, the lack of full lifecycle support means it is not production-ready.
Let’s look at how to install it on Oracle Kubernetes Engine in OCI. The Enhanced version is required to install additional add-ons. Even if you create a Basic version cluster, certain add-ons are installed by default; however, without the Enhanced version, you cannot manage them. Furthermore, you cannot perform an online migration from Basic to Enhanced. Even if you don’t need extra features right now, keep this in mind when creating the cluster.

This is the set of default add-ons pre-installed in OKE.

For Oracle Database operator we have one prerequisite – we have to install cert-manager. Operator uses webooks for validating user input before persists in etcd. Even if you install the operator using automation in OCI, it’s still the same
You need to install cert-manager yourself first.


We can specify a configuration when installing add-ons in OKE. To start, I checked what the default options were.

Checking PODs for this operator.

It’s a bit odd—there’s only one by default. I like HA, so I changed this setting to 3 pods.

It looks better now.

There are two other installation options:
- Operator Hub
- Manual installation (follow https://github.com/oracle/oracle-database-operator)
Mixing different types of installations is not recommended. I tried to troubleshoot issues I encountered along the way using that approach; ultimately, I just created a bigger mess and had to start over. I haven’t tested how OKE behaves on Virtual Nodes, but I wouldn’t recommend it, as Virtual Nodes do not support initContainers—and most applications utilizing the Oracle Database operator rely on them by default. With the operator installed, we can attempt to create databases from the Oracle portfolio. We will cover that in the next post.























