Skip to Content

OpenShift

Authentication Setup

OpenShift Configuration

  1. Ensure Ingress: Make sure that you have an ingress setup for your OpenShift cluster. Otherwise, you can use port forwarding without ingress but you need to make sure to state it in the next stages.

  2. Create an Oauth Client: Connect VIA Cli to your cluster and run the following:

    CLIENT_SECRET=$(openssl rand -base64 32) oc apply -f <(cat << EOF kind: OAuthClient apiVersion: oauth.openshift.io/v1 metadata: name: scaleops secret: ${CLIENT_SECRET} redirectURIs: - "http://localhost:8080/auth/callback" # for port forwarding - "https://<YOUR-SCALEOPS-DASHBOARD-URL>/auth/callback" # for ingress grantMethod: prompt EOF )
    • Note that the OAuthClient name is scaleops and that we have just created a secret, further in the doc we are going to refer to them, the secret is client-secret the name is client-id.

ScaleOps Configuration

Add the following helm values to your helm values.yml file

authProvider: provider: openshift openshift: clientID: scaleops clientSecret: ${CLIENT_SECRET}

If the OpenShift cluster is not configured with a known TLS CA by default, add the following flags to the Helm command:

authProvider: provider: openshift openshift: clientID: scaleops clientSecret: ${CLIENT_SECRET} rootCA: /var/run/secrets/kubernetes.io/serviceaccount/ca.crt

or

authProvider: provider: openshift openshift: clientID: scaleops clientSecret: ${CLIENT_SECRET} insecureCA: true

Groups Setup

ℹ️

ScaleOps does not import OpenShift groups. Add each group in the Helm lists below, or under Users & Groups, pick a role, and ScaleOps matches it the next time that user signs in.

Self-hosted matches the OpenShift group name. A group such as scaleops-admins has to be created with that same name in ScaleOps.

For example, create scaleops-viewers, scaleops-operators, and scaleops-admins in OpenShift. Add those same names in ScaleOps, and assign Viewer, Operator, and Admin.

OpenShift Configuration

Choose an existing admin group, or create scaleops-admins by running the following command:

# make sure to list the <USER-S> that you want to be admins oc adm groups new scaleops-admins <USER-1> <USER-2> <USER-3> ...

ScaleOps Configuration

Add the following helm values to your helm values.yml file:

authProvider: provider: openshift authorization: enabled: true openshift: clientID: scaleops clientSecret: ${CLIENT_SECRET} defaultAdminGroups: - <GROUP-NAMES>