Set Up OpenShift
Make sure the cluster meets the following conditions:
-
OpenShift cluster is installed with minimum 2 worker nodes with total capacity 8 Cores and 32Gb RAM.
-
Load balancer (if any exists in front of OpenShift router or ingress controller) is configured with session stickiness, disabled HTTP/2 protocol and header size of 64k support.
Find below an example of the Config Map for the NGINX Ingress Controller:
kind: ConfigMap
apiVersion: v1
metadata:
name: nginx-configuration
namespace: ingress-nginx
labels:
app.kubernetes.io/name: ingress-nginx
app.kubernetes.io/part-of: ingress-nginx
data:
client-header-buffer-size: 64k
large-client-header-buffers: 4 64k
use-http2: "false" -
Keycloak instance is installed. To get accurate information on how to install Keycloak, please refer to the Install Keycloak instruction.
-
The installation machine with oc is installed with the cluster-admin access to the OpenShift cluster.
-
Helm 3.10 is installed on the installation machine with the help of the Installing Helm instruction.
-
Storage classes are used with the Retain Reclaim Policy and Delete Reclaim Policy.
-
We recommended using our storage class as default storage class.
By default, KubeRocketCI uses the default Storage Class
in a cluster. We recommend using the following Storage Classes.
Storage class templates with the Retain and Delete Reclaim Policies:
- ebs-sc
- gp3
- gp3-retain
apiVersion: storage.k8s.io/v1
kind: StorageClass
metadata:
name: ebs-sc
annotations:
storageclass.kubernetes.io/is-default-class: 'true'
allowedTopologies: []
mountOptions: []
provisioner: ebs.csi.aws.com
reclaimPolicy: Retain
volumeBindingMode: Immediate
apiVersion: storage.k8s.io/v1
kind: StorageClass
metadata:
name: gp3
annotations:
storageclass.kubernetes.io/is-default-class: 'true'
allowedTopologies: []
mountOptions: []
provisioner: ebs.csi.aws.com
reclaimPolicy: Delete
volumeBindingMode: Immediate
allowVolumeExpansion: true
apiVersion: storage.k8s.io/v1
kind: StorageClass
metadata:
name: gp3-retain
allowedTopologies: []
mountOptions: []
provisioner: ebs.csi.aws.com
reclaimPolicy: Retain
volumeBindingMode: Immediate
allowVolumeExpansion: true