Why?

Requirements

Architecture

In this case, I use my company’s PC (Ubuntu Server OS, 1TB SSD drive, 8 core, 32GB of memory)

Install MicroK8S & deploy Diginext Server

curl -sfL https://diginext.site/install/microk8s | sh -

After it’s finished, you can try to access this URL: http://server-ip-address, if you can see the log in / sign-up screen, then your cluster is ready!

For example*: http://192.168.0.52*

Create new account

Navigate to: http://server-ip-address then create a new account.

Create your first workspace

Now you need a Diginext key, grab one here (no worries, it’s free).

Give your workspace a name and paste the key into it, then submit & you’re good to go.

Connect Diginext CLI to your workspace

To be able to deploy the web app to your MicroK8S cluster from your computer, you will need to install Diginext CLI and connect it to your Diginext workspace.

Open the terminal and install Diginext CLI with:

(If you don’t have Node.js 18+ installed, get it first)

npm i @topgroup/diginext --location=global

After it’s finished, you can use dx commands.

But first, let’s connect your Diginext CLI to the workspace:

dx login http://your-ip-address
# the browser will open up, copy & paste the access token here
# you will see a success message

Deploy a static webapp

When it’s finished, click on the auto-generated link, and you will see your web app now going live, woohoo!

👉 Since I have only set up this server for internal use, if you want to publish it on the internet, you may need to expose some ports on your internet router and configure traffic routing / security guards to your metal server. However, this is beyond the scope of this article.

Also published here.