# Installation

> Install the Stackable OPA operator on Kubernetes using stackablectl or Helm. Deploy OPA, create policies, and query rules easily.

There are 2 ways to install Stackable operators on a Kubernetes cluster.

-   Using [stackablectl](https://docs.stackable.tech/management/stable/stackablectl/index.md) (recommended)

-   Using Helm


**Tab: stackablectl**

`stackablectl` is the command line tool to interact with Stackable operators and the recommended way to install operators. Follow the [installation steps](https://docs.stackable.tech/management/stable/stackablectl/installation/index.md) for your platform.

After you have installed `stackablectl` run the following command to install the OPA operator:

```shell
stackablectl operator install opa=26.7.0
```

The tool prints

```
Installed opa=26.7.0 operator
```

> **Tip:** Consult the [Quickstart](https://docs.stackable.tech/management/stable/stackablectl/quickstart/index.md) to learn more about how to use `stackablectl`. For example, you can use the `--cluster kind` flag to create a Kubernetes cluster with [kind](https://kind.sigs.k8s.io/).

**Tab: Helm**

You can also use Helm to install the operator.

> **Note:** `helm repo` subcommands are not supported for OCI registries. The operators are installed directly, without adding the Helm Chart repository first.

Install the Stackable OPA operator:

```shell
helm install --wait opa-operator oci://oci.stackable.tech/sdp-charts/opa-operator --version 26.7.0
```

Helm deploys the operator in a Kubernetes Deployment. The operator installs and maintains its own CRDs at startup (see [CustomResourceDefinition (CRD) maintenance](https://docs.stackable.tech/home/stable/concepts/maintenance/crds/index.md)).

## What’s next

[Deploy OPA, a policy rule and query it](https://docs.stackable.tech/home/stable/opa/getting_started/first_steps/index.md).
