Quick Start with Anypoint Rutime Fabric and OpenShift Oracle OCI in Saudi Arabia
Owned by Dmitry Fundak
Last updated: Oct 08, 2024
Forward
There are many options available when it comes to public clouds in Saudi Arabia.
Vendors with exisiting clouds:
- Oracle – Oracle Cloud Infrastructure
- Jeddah region (3 availability zones)
- Riyad region (3 availability zones)
- Saudi 3 – coming soon
Dammam ( 2 availability zones)
Vendors announced investments in Saudi Arabia and soon would have clouds:
So to stay compliant with data regulations / data residency and use cloud benefits GCP and Oracle Cloud Infrastructure looks like mosts logical ways when it comes to running Anypoint Runtime Fabric.
While GCP’s Google Kubernets Engine supported by MuleSoft it’s pretty straighforward to follow and install it.
Oracle Cloud’s Oracle Kubernetes Engine (OKE) officially not support by MuleSoft and recommended approach to run RTF is to set it up “on top” of enterprise kubernetes platform i.e. Red Hat Openshift.
Another benefit of using Red Hat OpenShift is ready out of the box Cloud Exit strategy – run RTF internal network i.e. with Oracle Cloud @ Customer
It this short article I will describe how to do RTF installation and base configuration to Oracle Cloud in Jeddah region (me-jeddah-1).
1 Create Oracle OCI (if you don’t have one)
If you don’t have Oracle Cloud account, simply create one – Oracle Cloud Free Tier Signup
In order to setup default OpenShift configuration on Oracle Cloud free tier would not be enough, need to upgrade OCI to paid version.
2 Create Cluster in Red Hat OpenShift Console
In order to setup OpenShift you would need one of the MuleSoft supported versions:
- Red Hat OpenShift Kubernetes engine (Entry level)
- Red Hat OpenShift Container Platform (OCP)
- Red Hat OpenShift Platform Plus
As Red Hat Customer or Partner you can use fully features free 60 days trial to give a try.
There are several options to install OpenShift on OCI, easiest way would be to use Hybric Cloud Console and Assisted installer.
1 Login in to OpenShift Cloud console – Hybrid Cloud Console
→ Cluster List → Create Cluster → Data Center → Assisted Installer -> Create Cluster
Open Screenshot 2024-10-08 121216.png
Open Screenshot 2024-10-08 121125.png
2 Fill in cluster details form
- Enter a name for the cluster in the Cluster name field.
- Enter a base domain for the cluster in the Base domain field. All subdomains for the cluster will use this base domain.
- From the OpenShift version dropdown list, select the version that you want to install and click Select.
- leave rest of the fields as is
Open image-20241008-102855.png
While choosing K8S version simply match version of Kubernetes in OpenShift release documentation and RTF release documentation
K8S version chosen should be support by both MuleSoft and Red Hat.
Open Screenshot 2024-10-08 121826.png
Open Screenshot 2024-10-08 121701.png
2 Skip Operators details
3 On Host discovery click “Add hosts” and add ssh key to be used to connect to K8S cluster and click Generate Discovery ISO
Open image-20241008-103752.png
Once ISO generated, download it to your local machine
Open image-20241008-103853.png
and uplod it to Oracle Cloud Storage
to do it, go to Oracle Cloud Console → Storage → Object Strorage & Archive Storage → Buckets
Open image-20241008-104122.png
Create Bucket (keep standard parameters) → Go to created Bucket → Objects → Upload
Upload previous generated ISO image
Open image-20241008-104454.png
Once uploaded, create Pre-Authorization Request from the list menu
Open image-20241008-105107.png
Keep all the params default, you should get url like following in the end:
https://objectstorage.me-jeddah-1.oraclecloud.com/p/uIkytUdmm4-EmuOeFShB6BUTfxSeApi7apVlR0f8SYVNoPd774EMcxdMHnt6h890/n/axhew5e98eoj/b/bucket-20241002-1514/o/rtf-oci2b262517-bc68-490b-80c0-12796c00160d-discovery.iso
This URL will be needed as input for terraform scripts.
3 Run terraform scripts to provision OpenShift nodes
Oracle prepared
5 Create RTF with OpenShift CLI
6 Create Basic Ingress
7 Deploy and test API
Next steps would be to configure SSL, change setup of OpenShift to disconnected installation, networks and configurations.
More links on subject:
- Installing a cluster on Oracle Cloud Infrastructure by using the Assisted Installer – Installing on OCI | Installing | OpenShift Container Platform 4.16
- Prerequisites
- GitHub – oracle-quickstart/oci-openshift: OpenShift cluster creation on Oracle Cloud Infrastructure
- Required Keys and OCIDs
- Uploading an Object Storage Object to a Bucket
- Red Hat OpenShift on OCI with VMs Deployment