There are three ways to run the Regorule Operator:
Helm managed Docker container deployment on Kubernetes
As a Docker container
Build from source.
Helm allows you to download and deploy Stackable operators on Kubernetes and is by far the easiest installation method. First ensure that you have installed the Stackable Operators Helm repository:
$ helm repo add stackable https://repo.stackable.tech/repository/helm-stable/
Then install the Stackable Regorule Operator
$ helm install regorule-operator stackable/regorule-operator
Helm will deploy the operator in a Kubernetes container and apply the CRDs for the Regorule service. You are now ready to deploy the Stackable Regorule Operator in Kubernetes.
This Operator is published as a Docker image:
When installing manually with Docker you will need to install the Stackable CRDs for the Regorule Operator in your Kubernetes environment. These are available on the Stackable GitHub repository for this operator.
$ kubectl apply -f regorule.crd.yaml
To run it straight from Docker you can use this command:
docker run \ --name regorule-operator \ --network host \ --env KUBECONFIG=/home/stackable/.kube/config \ --mount type=bind,source="$HOME/.kube/config",target="/home/stackable/.kube/config" \ docker.stackable.tech/stackable/regorule-operator:latest