Introduction

In this tutorial, I’m going to backup an existing Etcd cluster, clear existing data and restore.

Back Up the etcd Data

ETCDCTL_API=3 etcdctl get cluster.name \   
--endpoints=https://<ETCD_NODE_PRIVATE_IP>:<PORT> \…


Today I was looking for a way to migrate GitLab repository to GitHub without losing commit history. In my case I wanted to import from private GitLab to GitHub. So, I came up with a few options for get this done.

Method 1: GitHub Repository Importer

  1. In the upper-right corner of any page, click , and then click Import repository.
  2. Under “Your old gitlab repository’s clone URL”, type the URL of the project you want to import.
  3. Choose your…


Kubeadm is a tool that can be used to build a minimal viable Kubernetes Cluster of production grade.

Step 1: Install Packages

cat <<EOF | sudo tee /etc/modules-load.d/containerd.conf 
overlay
br_netfilter
EOF

We have to restart nodes to load them. Instead of restarting, run the below commands to load modules immediately

sudo modprobe overlay 
sudo modprobe br_netfilter

Then set these system configurations for Kubernetes networking

cat <<EOF | sudo tee /etc/sysctl.d/99-kubernetes-cri.conf net.bridge.bridge-nf-call-iptables = 1 
net.ipv4.ip_forward = 1
net.bridge.bridge-nf-call-ip6tables…


Initially, SLIIT FOSS website was written in pure HTML, CSS and JS. That project was developed by Nandun Bandara, Shafkhan Mohamed, Ahamed Safnaj and my self. You can find that old repository here, but we have archived it.

Setting up the Project


I hope you already know GitHub is where you can put your git repositories likewise docker hub is where you can put your docker images. A Docker image is a file, comprised of multiple layers, that is used to execute code in a Docker container.

Prerequisites

  • You must have a docker hub account and docker hub repository
  • Your GitHub repository should contain a Dockerfile

Note: — Your application language doesn't matter write a dockerfile correclty

Step 1 — Click on Actions Tab on your GitHub repository


Depending on the method used to set up the cluster, the upgrade method will change. If a managed cluster is used, cluster upgrades will also be taken care of by the service provider (GCP, AWS, Azure etc.). In this scenario, Kubeadm tool was used to set up the cluster, hence; Kubeadm will be used to upgrade the cluster as well.

Note this


Azure Functions is an event-driven, compute-on-demand experience that extends the existing Azure application platform with capabilities to implement code triggered by events occurring in Azure or third party service as well as on-premises systems. You can write an azure function using C#, Node.JS, Java, or Python. In this tutorial, I’m going to create an Azure function using VS Code and Azure Function Extension.

If you don’t have installed VS Code in your computer follow this URL and install.

  1. Open VS Code and Click Extension button and install Azure Tools extension


Azure DevOps Server is a Microsoft product that provides version control, reporting, requirements management, project management, automated builds, lab management, testing and release management capabilities. It covers the entire application lifecycle, and enables DevOps capabilities. In this article I’m going to show you how to create a azure build/release pipeline with React.

  1. Create New React App and move to the project directory
create-react-app <APP_NAME>cd <APP_NAME>

2. Create a GitHub Repository and push your project to GitHub Repo

3. Go to Azure DevOps and click on new project button


What’s a API?

REST determines how the API looks like. It stands for “Representational State Transfer”. It is a set of rules that developers follow when they create their API. One of these rules states that you should be able to get a piece of data (called a resource) when you link to a specific URL.

Each URL is called a request while the data sent…


Nodemon is a utility that will monitor for any changes in your source and automatically restart your server. Perfect for development.

Just use nodemon instead of node to run your code, and now your process will automatically restart when your code changes. To install, get node.js, then from your terminal run:

npm install -g nodemon

If you’re using yarn as a package manager

yarn global add nodemon

So run your app using nodemon nodemon <YOUR_APP_FILE>.js

Arguments can be passed-in the same way as if you were running the script with Node:

nodemon server.js 3006

As you can see from the…

Chamod Shehanka

Chamod Shehanka a FullStack Developer at Platformer and Writer at Noteworthy, Platformer and The Java Report

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store