Version v0.4 of the documentation is no longer actively maintained. The site that you are currently viewing is an archived snapshot. For up-to-date documentation, see the latest version.
Install on OpenShift via OperatorHub
This guide covers installing the Coraza Kubernetes Operator on OpenShift Container Platform using the OperatorHub.
Prerequisites
- OpenShift Container Platform v4.20 or later
- Cluster administrator privileges
- OpenShift Service Mesh or Istio installed with Gateway API support
Install from OperatorHub (Web Console)
- Log in to the OpenShift web console as a cluster administrator.
- Navigate to Operators > OperatorHub.
- Search for Coraza Kubernetes Operator.
- Select the operator tile and click Install.
- Choose the update channel, installation mode, and approval strategy.
- Click Install and wait for the operator to reach the Succeeded phase.
Install from OperatorHub (CLI)
If the operator is available in your cluster’s default catalog, create a Subscription resource:
apiVersion: operators.coreos.com/v1alpha1
kind: Subscription
metadata:
name: coraza-kubernetes-operator
namespace: openshift-operators
spec:
channel: stable
name: coraza-kubernetes-operator
source: community-operators
sourceNamespace: openshift-marketplace
oc apply -f subscription.yaml
Install with Helm on OpenShift
If the operator is not yet available in OperatorHub, you can install it with Helm using the OpenShift values overlay:
helm repo add coraza-kubernetes-operator \
https://networking-incubator.github.io/coraza-kubernetes-operator/
helm repo update
helm upgrade --install coraza-kubernetes-operator \
coraza-kubernetes-operator/coraza-kubernetes-operator \
--namespace coraza-system \
--create-namespace \
-f - <<EOF
openshift:
enabled: true
istio:
revision: openshift-gateway
metrics:
serviceMonitor:
enabled: true
EOF
Setting openshift.enabled to true omits runAsUser, fsGroup, and fsGroupChangePolicy from the pod security context so that OpenShift can inject its own UID via Security Context Constraints (SCCs).
Verify the Installation
oc get pods -n coraza-system
The operator pod should be in a Running state.
Uninstall
OperatorHub
- Navigate to Operators > Installed Operators.
- Select the Coraza Kubernetes Operator.
- Click Uninstall Operator.
Helm
helm uninstall coraza-kubernetes-operator -n coraza-system