Skip to main content

Operators

Operators in Kubernetes are extensions for automating application deployment. Operators usually provide controllers and Custom Resource Definitions (CRDs) to help you install and manage applications automatically. In fact, Kubernetes operators can use the Kubernetes APIs to create, configure, and maintain complex applications on the user's behalf.

Kubernetes can manage and scale stateless applications, such as web applications, mobile backends, or API services, without needing to know how they work. But stateful apps, such as databases and monitoring systems, require additional knowledge that Kubernetes doesn't have. Kubernetes operators put this knowledge into Kubernetes extensions so they can manage and automate the app's lifecycle.

In other words, operators act like a "human operator" that performs repetitive and complex tasks automatically.

For example, if a database fails, the operator can automatically recover the data and restart the database. Operators can also automatically upgrade applications to newer versions and make sure all parts of the system are configured correctly.

By offering popular operators such as MongoDB, PostgreSQL, MariaDB, Redis, Kafka, and CockroachDB, the Arvancloud Cloud Container makes running and managing these applications simpler.

This feature is available through kubectl.

Using Operators​

By running the following command with kubectl, you can get a list of all operators available in the Cloud Container infrastructure:

kubectl api-resources

After that, you can use them by getting the yaml file you want and running the following command.

kubectl apply -f [operator.yaml] -n [namespace]

Note that each of these operators is designed by providers such as Strimzi, Opstreelabs, and so on. So your applications may be affected by each one's limitations and features.