Tutorials

Get our tips, special offers and updates straight to your inbox

gitlab ci-cd

How to setup GitLab CI/CD on Fuga Cloud

In this tutorial you will learn how to create a CI/CD pipeline that deploys to the Fuga Object Store using GitLab and GitLab runners. GitLab comes with built-in Continuous Integration, Continuous Deployment, and Continuous Delivery support to build, test, and deploy your application. When a commit is made, a CI/CD pipeline will be started. GitLab will notify the runner that a new job is available. This runner will run all the tests defined for the project and will (re)deploy the application when the tests are successful.
GitLab Scaling CI/CD Docker

Autoscaling your GitLab runners on Fuga

Autoscaling your GitLab runners on Fuga has many advantages. For example, you can only have runners active during office hours or just when you need them. The unused runners will be removed automatically. Since Fuga Cloud is pay for what you use, your total costs for your GitLab CI/CD will go down. In this tutorial is explained on how to add autoscaling GitLab runners to your GitLab using GitLab CI and Docker Machine.
Object Store Fuga Cloud AWS S3 rclone

Migrating your Object Store to the Fuga Object Store

It’s possible to move your Object Store from a different platform to the Fuga Object Store. Since almost all of the Object Stores are S3 compatible, you are free to migrate to any compatible platform. This tutorial will explain how to create a Fuga Object Store container and how to migrate from different platforms. Requirements Linux/macOS/BSD system Creating a Fuga Object Store container Before you can move your S3 compatible Object Store from a different platform to the Fuga Object Store, you first need a Fuga Object Store container.
Flask Object Store Python

Connecting to the Fuga Object Store with Flask

Connecting to the Fuga Object Store with Flask The possibilities with the Fuga Object Store are endless. One of the scenarios is connecting your Flask application to the Fuga Object Store, this way you can access for example images on your Store! In this tutorial we will teach you how to make a simple Flask file upload application that uses the Fuga Object Store. API keys To connect to your Fuga Object Store access and secret keys are required.
Ansible Fuga Cloud ownCloud

Deploying ownCloud with Ansible

Deploying ownCloud with Ansible With ownCloud you can achieve a similar functionality to the widely used Dropbox or Google Drive. In this tutorial you will learn on how to deploy ownCloud automatically with Ansible on Fuga cloud. Requirements Deployed instance on Fuga Cloud, with a working SSH connection. See our Getting Started guide here Ansible at least version 2.5.x For OSX Python 3 is recommended Creating security groups for HTTP(S) access To access ownCloud from outside your instance, you need to open the HTTP and HTTPS ports.
Ansible Fuga Cloud Automation

Deploy Fuga Cloud infrastructure with Ansible

Deploy Fuga Cloud infrastructure with Ansible The possibilities with Ansible are endless. In this tutorial we will teach you on how to deploy your Fuga Cloud infrastructure automatically with Ansible. Requirements Ansible at least version 2.5.x Shade version at least 1.28.0 OpenRC file from your Fuga dashboard (This might give a security warning on some systems, we use it for our configuration) SSH Key added to Fuga Cloud -> Create or import existing keypair For OSX Python 3 is recommended Startup Create a new folder called ansible somewhere on your system, this will contain all our files for this tutorial.
kubernetes containers

Deploy Kubernetes on Fuga Cloud

Containerizing is a new way of deploying apps, when high availability and fast increments are required. Kubernetes is an amazing tool for orchestration of these apps. In this tutorial, we will configure Fuga and deploy Kubernetes on multiple instances. First create a security group with access to all ports for inside the security group, so these instances can communicate freely between each other. Go the security tab, create an new security group and add the rule all TCP in the ‘ingress’ direction with remote ‘Security Group’ and security group current.
PLEX

How to install a Plex Media Server

With Plex, you can organize and stream your video and audio files from anywhere in the world. This guide will show you how to deploy your own Plex Media Server running on an Ubuntu instance located on the Fuga Cloud. Before you begin: Make sure you have followed and completed the steps from the “Getting Started” tutorial located on the Academy. An instance already running Ubuntu 16.04 where an ssh connection is possible is required for the upcoming steps.
ssh key pair

Adding extra SSH Key Pairs to an instance

When you’re creating an instance, you can add extra SSH Key Pairs by yourself. This tutorial will explain how to add extra SSH Key Pairs to your instance. Before you begin Check if your system already has an SSH Key Pair at the default location by opening a shell, or command prompt on Windows, with the following command: Linux: cat ~/.ssh/id_rsa.pub Windows Command Prompt: type %userprofile%\.ssh\id_rsa.pub If you see a file starting with ssh-rsa you already have an SSH key pair and you do not need to generate a new SSH key pair.
objectstorage swift s3

Connect to the Fuga Object Store

Using the Fuga object storage is a good way to store lots of data in use cases where speed isn’t the most important factor, but scalability is. First we need some setup. Creating an Object Store container Open the ‘Object Store’ tab and click on ‘Containers’. Click on ‘+ Container’ and give your new container a fitting name. Now we can use the Object Store inside the browser, but if we want to use it outside the browser, we need some more setup.
Swift OpenStack Restic

Using OpenStack Swift as a backup server for your personal computer

For some of the newer devices equipped with less storage, at least compared to the immense storage requirements nowadays, finding the storage space for your rather sizable backup becomes harder and harder. Some of you might have noticed that our Fuga Cloud platform comes with a rather copious amount of storage and have wondered “Why can’t I use that storage for my rather sizable back-up?”. If this was the case, then wonder no longer for this handy tutorial will describe the process* in which we will leverage the storage potential of Fuga Cloud to ensure your data is safely stored on your Volume.
Openstack cloud-init Ubuntu

Creating a LAMP/LEMP instance on Fuga Cloud with cloud-init

Creating a LAMP instance Launching an instance (VM) on Fuga Cloud is very fast thanks to our SSD-drives. But without the software we need, the instance is nearly useless. Of course we can always install our software manually, but that’s cumbersome and error prone. Thankfully the Openstack platform and Ubuntu support cloud-init which enables us to attach an install-script to our instance. So when we launch our instance in Horizon, our software is automagically installed with it.
objectstorage swift s3

Connect to the Fuga Object Store using Python

Fuga supports Amazon S3 compatible object storage. To access the S3 storage you need an EC2 access key and secret key. These can be obtained using the Openstack CLI or the OpenStack Keystone API (which is beyond the scope of this tutorial). Using the OpenStack CLI you can obtain the keypair using the ec2 credentials command as shown below. openstack ec2 credentials list +----------------------------------+----------------------------------+----------------------------------+----------------------------------+ | Access | Secret | Project ID | User ID | +----------------------------------+----------------------------------+----------------------------------+----------------------------------+ | 99999999999999999999999999999999 | 99999999999999999999999999999999 | 99999999999999999999999999999999 | 99999999999999999999999999999999 | +----------------------------------+----------------------------------+----------------------------------+----------------------------------+ When the list is empty a new keypair can be created using the 'openstack ec2 credentials create' command.
instance image

Create a FUGA instance from an image

In this tutorial we will explain how to start a FUGA instance from an image. Requirements: A FUGA network A FUGA security group and key pair Procedure: Log in to the FUGA Dashboard Click Compute -> Images Click Launch next to the desired Image Choose a Instance Name and a Availability Zone Tab Flavor: choose the Flavor you'd like to use for this instance Tab Network: add your network Tab Security Groups: add your Security Group Tab Key Pair: add your key pair Click Launch Instance
volumes snapshot

Create/Restore a Volume Snapshot

Create a Volume Snapshot To create a Volume: Go to ‘Compute’ -> ‘Volumes’ (link). Click on the dropdown arrow on the right side of the Volume you want to create a Snapshot of and select ‘Create Snapshot'. Enter a name for your Snapshot. *optionally add a description for your Snapshot. Click on ‘Create Volume Snapshot’. You will automatically be taken to the tab ‘Volume Snapshots’ where you can see your new Snapshot.
instance snapshot

Create/Restore an Instance Snapshot

Create an Instance Snapshot After you have created an Instance, you can make a Snapshot of this Instance. Go to ‘Compute’ -> ‘Instances’ (link). Click on the dropdown arrow on the right side of the Instance you want to create a Snapshot of and select ‘Create Snapshot'. Enter a name for your Snapshot. *optionally add a description for your Snapshot. Click on ‘Create Instance Snapshot’. You will automatically be taken to the tab ‘Images’ where you can see your new Snapshot.
instance image

Creating instances on different compute nodes

Before you start This tutorial assumes you've got the CLI tools running. If you don't, please visit the Openstack command-line interface (CLI) installation commands tutorial. When building a cluster of instances on Fuga, you want to ensure that these instances are created on separate compute nodes in order to ensure the highest availability. When creating the instances via the Fuga dashboard, you have no way to control on which compute node your instance will be created and cluster nodes can be created on the same compute node.
volumes blockstorage

How to attach a volume to your instance

I’m going to assume you have a running instance already. Mine is called test-instance. See Create a cloud instance to see how to create an instance. STEP 1 Creating a volume Create the volume by clicking Compute -> Volumes -> Create Volume. Mine is called test-volume, will be 20 GB large and use the regular storage tier. STEP 2 Attach the volume to the instance After you have created the volume it is time to attach it to your instance.
digital ocean migrate

How to migrate a droplet from Digital Ocean and boot it in new Fuga instance

Unfortunately Digital Ocean does not provide a way to directly export a droplet. In this tutorial we will explain how to export a Digital Ocean droplet and migrate it to Fuga's OpenStack platform. Follow this tutorial if you would like to mount the data to an existing instance instead. The below tutorial is derived from this PDF. Requirements: Root access to the Digital Ocean Droplet. Password for Root on the Digital Ocean Droplet.
digital ocean migrate

How to migrate a droplet from Digital Ocean and mount it on an existing Fuga instance

Unfortunately Digital Ocean does not provide a way to directly export a droplet. In this tutorial we will explain how to export a Digital Ocean Droplet and mount it on an existing Fuga instance. Follow this tutorial if you would like to boot the Droplet to a new Fuga instance. The tutorial below is derived from this PDF. Requirements: Root access to the Digital Ocean Droplet. Password for Root on the Digital Ocean Droplet.