Otomi is an open-source Platform as a Service (PaaS) that helps users simplify the deployment and management of applications on Kubernetes. As an open-source platform, it aims to lower the cognitive load for developers. It removes the complexity and difficulty in managing and configuring different services and components on a launched Kubernetes.

It also reduces the upfront cost of building custom Kubernetes-based platforms for enterprises. By the end of this tutorial, you will have installed or deployed your Otomi application on Kubernetes using Civo and accessed it.

Prerequisites

To get the best out of the guide and follow through with the steps, you need to have the following:

Installing Otomi

There are two ways you can install Otomi. You can install it through the Marketplace UI or Civo DNS.

Install Using Civo Marketplace UI

To install Otomi using the Civo Marketplace UI, login to your account on your dashboard and go to Kubernetes > Kubernetes cluster > Marketplace. You will have a screen, as shown below:

Install Otomi Using Civo Marketplace UI

After you have this screen up, select the Management tab under the Marketplace section and click the Otomi option:

Install Otomi Using Civo Marketplace UI

Once you have clicked Otomi, scroll down and select Install Apps to install the application inside your launched Kubernetes cluster. You can check the details of Otomi and the requirements. To do this, click on Installed Applications, scroll through your applications and choose Otomi.

Install Using Civo DNS

❗ Before using this method, you need to uninstall “Traefik V2 (Load Balancer)” from the Marketplace. Traefik gets installed by default, so when launching your cluster, you should untick it under the “Architecture” tab in the “Marketplace” section.

Another way you can install Otomi is by using Civo DNS. To do this, log in to your dashboard, and under Networking, choose DNS. At this stage, you should have this:

Install Otomi Using Civo DNS

Choose Add a domain name input your domain name, and click Add domain:

Add a domain name to Otomi

After you have done this, to get DNS records from Civo, create an NS record for your domain and add the Civo name servers ns0.civo.com and ns1.civo.com:

Get DNS records from Civo for Otomi

Next, go to Settings, Profile, and click on the Security tab to copy the API key. Add your API key to your environment variable. To do this, run this in your command line:

CIVO_TOKEN="Put your API key here"

Afterward, create a YAML file:

tee values.yaml<<EOF
cluster:
 name: otomi
 provider: civo
 domainSuffix: civo.example.com
otomi:
 hasExternalDNS: true
dns:
 domainFilters:
   - example.com
 provider:
   civo:
     apiToken: $CIVO_TOKEN
apps:
 cert-manager:
   issuer: letsencrypt
   stage: production
   email: admin@your-domain.com
EOF
  • domainSuffix: Input your domainSuffix here.
  • domainFilters: You should input your domainFilters here.
  • Email: Input the email connected with your domain here.

After successfully creating the YAML file and saving it as values. yaml. You will need to install Otomi using Helm.

Run this command to install Otomi:

helm repo add otomi https://otomi.io/otomi-core

You should get this output:

"otomi" has been added to your repositories

Next, run:

helm repo update

You get this output after it runs successfully:

Hang tight while we grab the latest from your chart repositories...
...Successfully got an update from the "otomi" chart repository
Update Complete. ⎈Happy Helming!⎈

Afterwards, run:

helm install -f values.yaml otomi otomi/otomi

When it is done running, you can use this command to get the log details:

kubectl logs jobs/otomi -n default -f

At the bottom, copy your login credentials for the Otomi web console UI and link to login.

Accessing Otomi Web UI

You must first have a license key to access the Otomi web console UI. Follow these steps to do that.

Step 1: Login into Otomi Cloud

Click here to log in.

 Login into Otomi Cloud

Step 2: Registering your Cluster

After signing in. Click on Cluster Overview and Register Cluster.

Registering your Cluster on Otomi

Step 3: Accepting Eula

Next, accept Eula:

Accepting Eula on Otomi

Step 4: Get your License Key

After you have accepted Eula, copy your license key and click continue.

Get your License Key on Otomi

After getting your license key, log in to the Otomi web console, add your key, and click activate to access.

Now that you've followed the above steps. You have Otomi activated and ready to deploy and manage your applications on Kubernetes.

Benefits of Using Otomi

There are several benefits you get using Otomi. Below, we go through a few of them:

Feature Description
Increased Developer Productivity It helps developers focus on writing code and less on managing infrastructure. It comes with preconfigured templates that developers could use to make things easier. Many tasks are automated, which reduces the time spent on deployment and lifecycle management.
Simplified Deployment Otomi removes the complexity of configuring and setting up different services. It does so by offering a standardized approach for carrying this out, which you can leverage to deploy on your Kubernetes faster.
Observable Insights It provides different tools to monitor the performance of your deployed applications. Using these insights, you can troubleshoot and fix issues that may come up.
Centralized Configuration Management Otomi allows you to manage your application configurations from one place. And this makes it easier to manage environment-specific settings.
Save Cost Using Otomi, you save operational costs and burdens you might get from setting up and building your infrastructure from scratch. The way you do this is to use Otomi to manage your applications on the clusters while focusing on more critical tasks, like cloud security.

Summary

After finishing this tutorial, you should have installed Otomi on your Civo Kubernetes and accessed it. Depending on your development needs, you can carry out further management operations. For more details about Otomi operations, visit the official documentation.

Next Steps

To implement more solutions on your Civo Kubernetes, visit the following resources: