Experimenting with Kubernetes in Cloudy

We aim to run Kubernetes in a set of Raspberry Pi and to expose the Kubernetes operation in the Cloudy Web GUI.

In order to communicate Kubernetes operations with Cloudy, we implemented the serf-publisher component. Within the Service Controller function, serf-publisher communicates both with the Kubernetes API and through Cloudy’s avahi-ps with Serf.

We create a new service with

kubectl expose deployment/nginx ‑n Cloudy ‑‑type=NodePort

Through serf-publisher, the operations becomes published in Cloudy’s Web GUI:

The code of serf-publisher can be found in this github repository.

Detailed documentation (in Spanish) about this project can be found at here.

Cloudy with IPFS-Cluster over WAN

We interconnected three sites with Cloudy nodes over the Internet.

In this setting, we have the situation of a heterogeneous network, with some Cloudy nodes at the same location and others remotely connected over the Internet.

IPFS-Cluster was installed on the Cloudy nodes in order to explore the possibility of having a private IPFS network in this environment.

We observed some timeout issues with IPFS-Cluster and needed to increase for the Raft consensus protocol some network latency related parameter values in the IPFS-Cluster configuration file.

Finally we achieved to successfully connect 7 instances over a heterogeneous network.

Reference (in Spanish):
Leopoldo Álvarez Huerta: Cloud comunitaría y servicios distribuidos sobre IPFS

High availability services in microcloud@home with Cloudy on several Raspberry Pi

The goal is to have high availability of the services we deploy at home in case any of the Raspberry Pi gets disconnected.
The hardware we used were three Raspberry Pi.

The solution to achieve high availability consisted of a set of software components, hardware and open technologies, i.e. Raspberry, Cloudy, Docker, Swarm, Node-Red, Mosquitto, keepalived, syncthing, which we integrated to make up the local microcloud, an infrastructure that we can run at home.
We use keepalived to have a floating IP to access the cluster services in the event of a node failure.
The configuration of the containers is replicated with the SyncThing software.

The obtained microcloud offers high availability to any Docker service that we execute on the nodes and has the following characteristics:

– It is scalable and flexible, allowing us to add more nodes, internal or external, to adjust the resources of the microcloud to our needs.
– Thanks to the technology of Docker Swarm, it allows executing complex distributed systems of pre-configured services from a single configuration file.
– It gives us full control over our services.
– It gives us full control over our data.
– The cost is less than 50 Euros per computing node.

Reference (in Spanish):
José Elías Rael Gutierrez: Diseño e implementación de una microCloud abierta para IoT

Cloudy 2017.12 Skywhale + Docker, Docker Compose, IPFS

Cloudy 2017.12 Skywhale release

We are very happy to announce the imminent release of Cloudy 2017.12 Skywhale on December 2017!

During the past months, and thanks to the support of the netCommons project, we have been able to further develop Cloudy and include several new and exciting features. Among them we would like to highlight:

As a result of these integrations, Cloudy now leverages the Docker containerization technology and Community Network users can launch their favourite or the predefined Docker images in a few clicks, from their browser. This rapid application provision allows room for new, very dynamic ways to deploy services and share resources in a digital community. For example, an instance of the Mosquitto broker can be quickly launched to start collecting, managing and processing data from IoT (Internet of Things) sources. In parallel to this, IPFS is now used in Cloudy as part of the DADS – Distributed Announcement and Discovery Service. This allows room for announcing from within a Cloudy instance an arbitrarily large amount of services and data to other Cloudy instances in an efficient and convenient way.

Furthermore, the Cloudy codebase and its different packages have been updated to the latest Debian 9 Stretch release, while keeping compatibility with the previous version. In addition, several features have been added to the platform or improved and a few bugs have been squashed.

We are looking forward for your comments at the Cloudy mailing lists!