Running a LTO Network node on IBM Cloud
So you decided you want to be part of the LTO Network, awesome! Ow… you were already part of the Community?! Even better! Nice to meet you!
A great way to be part of the community is by actively participating as a node in the network. This blog post demonstrates the steps needed to get an LTO Network node up and running using IBM Cloud, specifically Kubernetes Services.
In this guide I’ll be skipping the part about creating wallets, having a main wallet, a staking wallet, how to lease, etc. If you want to read more about this, please check out the steps 1 and 2 in this guide.
Deploying your node on IBM Cloud using the browser interface
Make sure you have a “Pay-as-you-go” or better IBM Cloud account. It’s not possible to create a Kubernetes Service on IBM Cloud with a free account.
Shown above is the main screen of IBM Cloud after your initial login. As you can see at the time I had not upgraded to a pay-as-you-go subscription. Without such a subscription you can not create a “free” Kubernetes Service cluster, a requirement (you have other more expensive paid alternatives) for hosting a container on IBM Cloud.
Please make sure you have added a subscription to your plan. If you’re ready to continue click on Create resource in the top right corner.
On the next screen user the filter to go through the catalog. We want to deploy a Kubernetes Service. Click the box to continue.
On the overview page you can click Create to create your Kubernetes Service cluster. If you do not have the option to click create you probably do not have the right subscription.
In the next screen we have the opportunity to setup a simple test cluster or deploy an actual production-ready Kubernetes cluster. For the sake of this test I choose to go with the Free cluster. Select the Free option, change settings if you please and click Create cluster.
You successfully requested a deployment of a Kubernetes Service cluster. Unfortunately this takes quite some time. It’s probably a good idea to grab a cup of coffee, tea or even better… beer!
A Kubernetes cluster consists of multiple components. In the case of the free cluster a Master and a Worker will be deployed. The deployment of the Master will take approximately 30 minutes. The deploy of the Worker will take you an additional 5 minutes.
With our cluster running it’s time to deploy our LTO Public Node application. Click Kubernetes Dashboard to open the Kubernetes dashboard main screen in a new tab.
To deploy an application on the cluster click on Create in the top right corner.
Select the Create an App tab and fill in an App name, Container image (important). Now click on Show Advanced Options.
Please change the Memory requirement to 2048 (2 GB) and add your environment variables: LTO_WALLET_SEED, LTO_WALLET_PASSWORD and LTO_NODE_NAME.
Scroll down and click Create. Your LTO Public Node will be deployed on your freshly created Kubernetes Service cluster.
Let’s do a final check and click on our pods name in the Pods section of this main screen.
This page shows the configuration of our running node. Please click on Logs in the top right corner to open a separate tab with our console logging.
In the above example I’ve selected the auto-refresh option to make sure the console logging automatically refreshes every 5 seconds. Watch as the node downloads the blockchain and starts adding MicroBlocks.
That’s it. You’ve successfully mastered setting up a LTO Network Public Node on IBM Cloud using Kubernetes Services. Awesome!
Now wait for a 1.000 blocks…
Best of luck and thank you very much for contributing and being part of the LTO Network Community!