Installing on OpenShift

Deploying Konflux on an existing OpenShift cluster using the automated deployment script.

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.

Prerequisites

ToolMinimum version
OpenShiftv4.20
oc or kubectlv1.31.4
gitv2.46
make—
Gov1.26.0
opensslv3.0.13
  • cluster-admin permissions 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 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

  1. 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.

  1. 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-operator namespace
  • 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

ComponentDetails
OpenShift PipelinesInstalled via OLM (Red Hat’s productized Tekton)
cert-managerInstalled via the Red Hat cert-manager OLM operator
MutatingAdmissionPoliciesCI/local: reduce Tekton TaskRun pod requests when the API is available (Kubernetes 1.36+)
Pipelines-as-CodeGitHub-triggered pipeline automation
Tekton Chains RBACRBAC for supply-chain signing using OpenShift namespaces

The following components are not deployed by deploy-deps.sh in this configuration:

SkippedReason
trust-managerNot needed — OpenShift has native CA bundle injection via config.openshift.io/inject-trusted-cabundle
Internal OCI registryOpenShift has its own integrated registry
Smee webhook proxySkipped by default (SKIP_SMEE=true). Not needed when the cluster has a public ingress URL.

Operator and Konflux

ComponentDetails
Konflux CRDsKonflux custom resource definition
Konflux OperatorDeployed in the konflux-operator namespace
Konflux instanceAll 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

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