Installing on OpenShift
This guide covers deploying Konflux on an existing OpenShift cluster using the
deploy-konflux-on-ocp.sh script. The script uses OpenShift-native components
(OpenShift Pipelines, Red Hat cert-manager) instead of their upstream alternatives.
- Installing from OLM — install through the OpenShift OperatorHub
- Installing from Release — apply the pre-built release bundle directly
- Building and Installing from Source — build and run the operator from your local checkout
Prerequisites
| Tool | Minimum version |
|---|---|
| OpenShift | v4.20 |
oc or kubectl | v1.31.4 |
| git | v2.46 |
| make | — |
| Go | v1.26.0 |
| openssl | v3.0.13 |
cluster-adminpermissions on the target OpenShift cluster.- GitHub App (Required for Build Pipelines): Konflux uses a GitHub App with Pipelines-as-Code to receive webhook events, trigger build pipelines on pull requests, and report status back to GitHub.
- Follow the GitHub Application Secrets guide to create your GitHub App.
- Export your GitHub App credentials before running the deployment script. The script validates these credentials before starting and deploys the integration secrets into the cluster.
Understanding Smee Webhook Proxy
SMEE_CHANNEL is provided. For GitHub
to deliver webhook events (triggering build pipelines on pull requests), your cluster
must be reachable from the internet, or you must configure Smee as described below and in
GitHub Application Secrets.Smee is an open-source webhook payload delivery service that forwards GitHub webhook events to a client running inside your cluster.
The deployment script skips the Smee webhook proxy by default (SKIP_SMEE=true). Smee is unnecessary when your OpenShift cluster has a publicly accessible router or ingress that GitHub can reach directly.
If your cluster is private, behind a corporate firewall, or lacks public ingress, configure a Smee channel URL using SMEE_CHANNEL="https://smee.io/<channel-id>" so webhook events can reach your cluster.
Setup
- Clone the repository:
git clone https://github.com/konflux-ci/konflux-ci.git
cd konflux-ci
To customise the operator image or Konflux CR before running, see Script configuration.
- Export your GitHub App credentials and run the deployment script:
export GITHUB_APP_ID="<your-github-app-id>"
export WEBHOOK_SECRET="<your-webhook-secret>"
export GITHUB_PRIVATE_KEY_PATH="/path/to/your-private-key.pem"
# Optional: If your cluster lacks public ingress, provide your Smee channel URL:
# export SMEE_CHANNEL="https://smee.io/<channel-id>"
./deploy-konflux-on-ocp.sh
The script performs all of the following automatically:
- Deploys Konflux dependencies using OpenShift-native operators
- Installs the Konflux CRDs
- Deploys the Konflux Operator into the
konflux-operatornamespace - Waits for the Operator to be ready
- Applies the OpenShift Konflux CR and waits for all components to reach
Ready - Deploys GitHub integration secrets
What gets deployed
Dependencies
| Component | Details |
|---|---|
| OpenShift Pipelines | Installed via OLM (Red Hat’s productized Tekton) |
| cert-manager | Installed via the Red Hat cert-manager OLM operator |
| MutatingAdmissionPolicies | CI/local: reduce Tekton TaskRun pod requests when the API is available (Kubernetes 1.36+) |
| Pipelines-as-Code | GitHub-triggered pipeline automation |
| Tekton Chains RBAC | RBAC for supply-chain signing using OpenShift namespaces |
The following components are not deployed by deploy-deps.sh in this configuration:
| Skipped | Reason |
|---|---|
| trust-manager | Not needed — OpenShift has native CA bundle injection via config.openshift.io/inject-trusted-cabundle |
| Internal OCI registry | OpenShift has its own integrated registry |
| Smee webhook proxy | Skipped by default (SKIP_SMEE=true). Not needed when the cluster has a public ingress URL. |
Operator and Konflux
| Component | Details |
|---|---|
| Konflux CRDs | Konflux custom resource definition |
| Konflux Operator | Deployed in the konflux-operator namespace |
| Konflux instance | All Konflux components managed by konflux-openshift.yaml |
Verify the Konflux CR is ready
See Applying the Konflux Custom Resource for instructions on verifying the Konflux CR status and accessing the UI URL.
kubectl wait --for=condition=Ready=True konflux konflux --timeout=15m
Script configuration
Operator image
By default, the script uses quay.io/konflux-ci/konflux-operator:latest. To use a
different image, set OPERATOR_IMAGE before running:
OPERATOR_IMAGE=<your-registry>/konflux-operator:<tag> ./deploy-konflux-on-ocp.sh
To build and use a custom operator image from source:
cd operator
make docker-build docker-push IMG=<your-registry>/konflux-operator:<tag>
cd ..
OPERATOR_IMAGE=<your-registry>/konflux-operator:<tag> ./deploy-konflux-on-ocp.sh
Konflux Custom Resource
The script applies operator/config/samples/konflux-openshift.yaml by default. That CR
contains no demo users and disables the Dex password database. Users sign in with their
existing cluster credentials through the OpenShift OAuth server, which the operator
configures automatically on OpenShift.
In OpenShift CI (Prow), OPENSHIFT_CI=true selects
operator/config/samples/konflux-openshift-e2e.yaml instead: the same passwordless
OpenShift login, with image-controller and PaC webhook TLS skip that the e2e suite
needs. That file still has no Dex demo users.
To use a different CR, set KONFLUX_CR before running the script:
KONFLUX_CR=operator/config/samples/konflux-with-github-auth.yaml ./deploy-konflux-on-ocp.sh
konflux_v1alpha1_konflux.yaml,
konflux-e2e.yaml) on OpenShift. They enable demo users whose password is
published in this repository, and they pin a Kind-specific NodePort. An OpenShift
cluster is usually reachable from the internet, so applying one of them grants
authenticated tenant access to anyone who finds it.The script refuses to apply any CR containing staticPasswords. If you are working on a
deliberately throwaway cluster and accept the exposure, override it:
ALLOW_DEV_STATIC_PASSWORDS=true ./deploy-konflux-on-ocp.sh
See Examples for alternative sample configurations and the OIDC configuration guide for connecting GitHub, Google, or LDAP.
To swap the CR after the script completes:
kubectl delete konflux konflux
kubectl apply -f <your-konflux-cr>.yaml
kubectl wait --for=condition=Ready=True konflux konflux --timeout=15m
Uninstall
Remove the Konflux CR and all managed components:
kubectl delete konflux konflux
Remove the operator and CRDs from the operator/ directory:
cd operator
make undeploy
make uninstall
What’s next
- GitHub Application Secrets — create a GitHub App and configure webhook delivery
- Onboard a new Application — onboard an application, run builds, tests, and releases
- Registry Configuration — configure an external container registry for build and release pipelines
- API Reference — full CR field reference
- Troubleshooting — solutions to common issues
- Examples — sample Konflux CR configurations