Backups are an important part of any system. Kubernetes is no exception. Kubernetes has distributed key-value store called etcd, used as Kubernetes’ backing store for all cluster data. In this tutorial, you will learn how to backing up and restoring a Kubernetes cluster state stored in etcd. This will help you get familiar with the steps involved in backing up Kubernetes data.
In this tutorial, I’m going to backup an existing Etcd cluster, clear existing data and restore.
Look up the value for the key
cluster.name in the etcd cluster:
ETCDCTL_API=3 etcdctl get cluster.name \
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.
That very easy, If you have a project hosted on another version control system, you can automatically import it to GitHub using the GitHub Importer tool.
Kubeadm is a tool that can be used to build a minimal viable Kubernetes Cluster of production grade.
ssh into each node and create containerd configuration file by executing the below command. This command will instruct the node to load overlay and br_netfilter kernal modules.
cat <<EOF | sudo tee /etc/modules-load.d/containerd.conf
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
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.
In early 2020 we wanted to enhance and complete SLIIT FOSS website. At that time we were wondering what frontend technology we should use for this. Since Angular is a TypeScript-based open-source web application framework led by the Angular Team at Google and by a community of individuals and corporations so that Kaveesha Gimhana and I thought to go with Angular, so…
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.
Note: — Your application language doesn't matter write a dockerfile correclty
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.
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.
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.
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
An API is an application programming interface. It is a set of rules that allow programs to talk to each other. The developer creates the API on the server and allows the client to talk to it.
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.
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
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 a FullStack Developer at Platformer and Writer at Noteworthy, Platformer and The Java Report