k3os-kubernetes-on-intel-compute-stick

When I cleaned up my desk this weekend I stumbled on my 3 year old Intel Compute Stick. My first thought: it would be quite cool to run Kubernetes on it. Luckily nice projects has been released lately to run Kubernetes on edge and IoT devices and I decided to try k3OS on the compute stick.

Spoiler: It really works!

Just in case you’ve never seen a Intel compute stick – here we go:

k3os on Intel compute stick

Intel Compute Stick next to a Keyboard

This mini-Computer has a 4 CPU cores (Atom x5) and 2 GB memory as well as 32 GB internal storage.

What is k3OS

Source: https://github.com/rancher/k3os

k3OS is a Linux distribution designed to remove as much OS maintenance as possible in a Kubernetes cluster. It is specifically designed to only have what is needed to run k3s.

Additionally the OS is designed to be managed by kubectl once a cluster is bootstrapped. Nodes only need to join a cluster and then all aspects of the OS can be managed from Kubernetes. Both k3OS and k3s upgrades are handled by the k3OS operator.

Core design goals of k3OS are

  • Minimal OS for running Kubernetes by way of k3s
  • Ability to upgrade and configure using kubectl
  • Versatile installation to allow easy creation of OS images.

Getting k3os ready

After downloading the ISO file of the latest k3OS release, I used Rufus to write that to USB stick and make it bootable.

Hint: I had issues with the ISO mode as the compute stick didn’t boot from it; the DD mode works without any issues.

write k3os image to USB

Rufus use DD Image mode

Install k3OS on the Intel Compute Stick

First thing to do is updating your Compute Stick BIOS to the latest version. You can find the BIOS files on the Intel Download portal, i. e. for the STK1AW32SC model.

Then boot from the newly created k3OS USB Stick and choose k3OS LiveCD & Installer.

Grub

Soon you get a message to login using the rancher user.

When logging in with the rancher user, you have 2 options: Use the live Kubernetes system (that is already running) or install k3OS locally. We want to install it and type:

sudo os-config

k3OS installation

We install to the local disk (1), don’t use a cloud-init file, don’t want to grant GitHub user SSH access and setup WiFi for the Intel compute stick.

Then we install the server and a cluster secret. An agent is only required when expanding the cluster and adding nodes (in that case you also need the cluster secret).

In my case, the installation device was named /dev/mmcblk0. But it might be different depending on the Compute Stick type.

When the installation is completed, the setup automatically triggers a reboot and the k3OS should be up and running on the local storage some seconds later.

SSH and Kubectl

SSH is automatically active and you can simply login using your rancher account and play around:

ssh rancher@k3OS
sudo service ntpd start #(to run NTP time sync)
kubectl get nodes # show Kubernetes resources

To access the Kubernetes environment remotely, you can simply copy the config file /etc/rancher/k3s/k3s.yaml and replace the localhost (127.0.0.1) server address with the ip address of the k3OS system.

scp rancher@k3OS:/etc/rancher/k3s/k3s.yaml  ~/.kube/config # or change the target path

find the line server: and change 127.0.0.1 to the k3OS address.

Run a kubectl get nodeslocally.

Summary

You can run container, deploy helm charts aso. on that mini computer within its resource limits. I was pretty amazed to see how easy and straightforward k3OS was installed and the Kubernetes cluster was immediately up and running.

Maybe one last hint – if you want to change the Wifi configuration, you can do that here:

sudo cat /k3os/system/config.yaml # view file content
sudo vi /k3os/system/config.yaml

CNIL
Metrics and Logs

(formerly, Opvizor Performance Analyzer)

VMware vSphere & Cloud
PERFORMANCE MONITORING, LOG ANALYSIS, LICENSE COMPLIANCE!

Monitor and Analyze Performance and Log files:
Performance monitoring for your systems and applications with log analysis (tamperproof using immudb) and license compliance (RedHat, Oracle, SAP and more) in one virtual appliance!

Subscribe to Our Newsletter

Get the latest product updates, company news, and special offers delivered right to your inbox.

Subscribe to our newsletter

Use Case - Tamper-resistant Clinical Trials

Goal:

Blockchain PoCs were unsuccessful due to complexity and lack of developers.

Still the goal of data immutability as well as client verification is a crucial. Furthermore, the system needs to be easy to use and operate (allowing backup, maintenance windows aso.).

Implementation:

immudb is running in different datacenters across the globe. All clinical trial information is stored in immudb either as transactions or the pdf documents as a whole.

Having that single source of truth with versioned, timestamped, and cryptographically verifiable records, enables a whole new way of transparency and trust.

Use Case - Finance

Goal:

Store the source data, the decision and the rule base for financial support from governments timestamped, verifiable.

A very important functionality is the ability to compare the historic decision (based on the past rulebase) with the rulebase at a different date. Fully cryptographic verifiable Time Travel queries are required to be able to achieve that comparison.

Implementation:

While the source data, rulebase and the documented decision are stored in verifiable Blobs in immudb, the transaction is stored using the relational layer of immudb.

That allows the use of immudb’s time travel capabilities to retrieve verified historic data and recalculate with the most recent rulebase.

Use Case - eCommerce and NFT marketplace

Goal:

No matter if it’s an eCommerce platform or NFT marketplace, the goals are similar:

  • High amount of transactions (potentially millions a second)
  • Ability to read and write multiple records within one transaction
  • prevent overwrite or updates on transactions
  • comply with regulations (PCI, GDPR, …)


Implementation:

immudb is typically scaled out using Hyperscaler (i. e. AWS, Google Cloud, Microsoft Azure) distributed across the Globe. Auditors are also distributed to track the verification proof over time. Additionally, the shop or marketplace applications store immudb cryptographic state information. That high level of integrity and tamper-evidence while maintaining a very high transaction speed is key for companies to chose immudb.

Use Case - IoT Sensor Data

Goal:

IoT sensor data received by devices collecting environment data needs to be stored locally in a cryptographically verifiable manner until the data is transferred to a central datacenter. The data integrity needs to be verifiable at any given point in time and while in transit.

Implementation:

immudb runs embedded on the IoT device itself and is consistently audited by external probes. The data transfer to audit is minimal and works even with minimum bandwidth and unreliable connections.

Whenever the IoT devices are connected to a high bandwidth, the data transfer happens to a data center (large immudb deployment) and the source and destination date integrity is fully verified.

Use Case - DevOps Evidence

Goal:

CI/CD and application build logs need to be stored auditable and tamper-evident.
A very high Performance is required as the system should not slow down any build process.
Scalability is key as billions of artifacts are expected within the next years.
Next to a possibility of integrity validation, data needs to be retrievable by pipeline job id or digital asset checksum.

Implementation:

As part of the CI/CD audit functionality, data is stored within immudb using the Key/Value functionality. Key is either the CI/CD job id (i. e. Jenkins or GitLab) or the checksum of the resulting build or container image.

White Paper — Registration

We will also send you the research paper
via email.

CodeNotary — Webinar

White Paper — Registration

Please let us know where we can send the whitepaper on CodeNotary Trusted Software Supply Chain. 

Become a partner

Start Your Trial

Please enter contact information to receive an email with the virtual appliance download instructions.

Start Free Trial

Please enter contact information to receive an email with the free trial details.