IBM Cloud Satellite in India Chennai DC
In this article, a developer explores the new IBM Cloud Satellite and explains how to get an instance of Satellite up and running on your own machine.
Join the DZone community and get the full member experience.Join For Free
Recently, IBM launched IBM Cloud Satellite. It sure looks like a game-changer in the multi-cloud world. While Satellite is fairly new, this is my attempt with a very basic setup in the IBM Cloud Chennai DC setup.
With IBM Cloud Satellite, you use your own compute infrastructure that is in your on-premises data center, other cloud providers, or edge networks to create a Satellite location. Then, you use the capabilities of Satellite to run IBM Cloud services on your infrastructure, and consistently deploy, manage, and control your app workloads.
Note that satellite deployments in IBM Cloud are used only for testing. For production workloads in your Satellite location, use on-premises, edge, or other cloud provider hosts.
In this tutorial you will learn how to:
- Setup a satellite location in IBM Cloud Chennai DC.
- Run Red Hat OpenShift in the satellite location.
- Launch the OpenShift dashboard.
To run this tutorial, you need an IBM Cloud account.
IBM Cloud UI
Log in to IBM Cloud. Go to Catalog. Under Services you can find Virtual Server for Classic.
In this demo, I have used:
- Type of virtual server: Public Multi-tenant.
- Quantity: 6 ( we need a minimum of 3 hosts for the control pane and 3 more to run the ROKS cluster).
- Billing: Hourly.
- Hostname and Domain kept at default.
- Location: Asia-Pacific- CHE01 - Chennai.
- Profile: Balanced | B1.4x16.
- Image: Red Hat 7.x Minimal(64 bit) - HVM.
- Attached storage disks: Boot disk 100 GB SAN.
- The rest I kept as default and clicked create. This will create 6 virtual server instances (VSI).
Go to Catalog, and under services, you can find Satellite. Click Create a Satellite location. Choose Manual setup.
- For this example, the name is India (choose your name). If need be, add relevant tags.
- Resource group: default.
- Managed from: Washington, DC.
- Zone 1: Chennai-1.
- Zone 2: Chennai-2.
- Zone 3: Chennai-3.
Click on Create location.
You will be redirected to the Getting started page of the Satellite dashboard.
Click on Assign host to location-> select generate script.
You will have a script file,
attachHost-india.sh, downloaded locally.
Now, let's Start attaching hosts to our location. Here, you will need the IP addresses of the VSI's created and the root password. You can either use the dashboard (IBM Cloud -> Classic Infrastructure -> Device list) to get the details, or you can use the command line to get the VSI details.
To retrieve the IP address:
Retrieve the credentials to log in to your virtual machine:
Keep it handy.
Run the below steps for all VSI one at a time.
Step 1: Copy the script from your local machine to the virtual server instance.
Step 2: Log in to your virtual machine. If prompted, enter the password that you retrieved earlier.
Step 3: Refresh the Red Hat packages on your machine.
Step 4: Run the registration script on your machine.
nohup bash attachHost-india.sh &
Once it starts, you can interrupt and go to the next step
Step 5: Monitor the progress of the registration script.
You can interrupt again and exit the session.
Step 6: Exit the SSH session.
Repeat Steps 1-6 for all the VSIs created.
Back to Satellite
On the IBM Cloud web page, let's assign hosts to your location.
Click next, and it will lead to configure the control plane.
Click on Assign hosts and choose three VSIs for three different zones. You must add three hosts for high availability. You can leave the other three unassigned for now.
It takes a few minutes for the hosts to be assigned successfully. Once this is done, you can click on next, and then, click Complete.
Red Hat OpenShift on Satellite
Now, let's try to run Red Hat OpenShift on the Satellite location. For this, Go to Catalog. Under Services you can find Red Hat OpenShift on IBM Cloud.
Choose the OpenShift version: In this demo, we used 4.5.35.
- OCP entitlement: keep it default (you can purchase additional licenses for this worker pool).
- Infrastructure: Satellite.
- Choose location: India (the satellite location we created).
- Worker pools: I kept it default (by default all three zones are selected with four vCPUs, 16 GB of memory, and one worker node per zone.
- Satellite Config: Enable cluster-admin access for Satellite Config.
- Cluster name: Choose any name your wish.
- Click on create.
Here, it might take some time. Unfortunately, I haven't timed it. But, when I checked in after a couple of hours the nodes were up and running.
Once it's up and running, you can click on the OpenShift web console to access the OpenShift dashboard.
That's it! Your Red Hat OpenShift on Satellite location is up and running.
Published at DZone with permission of Deepak Rai. See the original article here.
Opinions expressed by DZone contributors are their own.