Velero is an open source tool to safely backup and restore, perform disaster recovery, and migrate Kubernetes cluster resources and persistent volumes

source:

There are many different ways in which you can backup your kubernetes cluster. The most basic one is to backup the etcd cluster and store it somewhere like amazon S3.

ETCD BACKUP USING ETCDCTL COMMAND

kubectl -n kube-system exec -it etcd-master — sh -c “ETCDCTL_API=3 \ ETCDCTL_CACERT=/etc/kubernetes/pki/etcd/ca.crt ETCDCTL_CERT=/etc/kubernetes/pki/etcd/server.crt \ ETCDCTL_KEY=/etc/kubernetes/pki/etcd/server.key etcdctl — endpoints=https://127.0.0.1:2379 \ snapshot save /var/lib/etcd/snapshot.db “

However, you won’t be able to backup the etcd cluster of kubernetes services like EKS, AKS or GKE as there you don’t have access to…


Part 3: Deploying React App to Kubernetes

This Blog is continuation of and .

Bonjour,
This is the final blog of our series. In this Blog I’ll help you with:
1. Creating a Jenkins Multi-Branch Project
2. Run Your first build
3. Edit Service and add DNS to your Service Load Balancer
4. Finally, set up your Traffic Manager


PART 2: SETTING UP YOUR CI SERVER

This Blog is continuation of

Bonjour,
In this blog I’ll help you set up your development environment for our canary project.

PREREQUISITE

  1. Jenkins should be installed on your Development Environment. If you need help to install Jenkins, follow this
  2. Install kubectl and make sure that it is accessible inside Jenkins user.
TEST
$ sudo su - jenkins
$ kubectl version
SETUP FOR UBUNTU USER
1. Add kubectl path to /etc/environment
2. Run source /etc/environment from your terminal

3. Install docker and add Jenkins user to it

$ sudo usermod -aG docker jenkins

4. Install azure cli and login…


Part 1: Setting Up Azure Kubernetes Service


In this blog I’ll help you setup your Kubernetes Cluster and Nodes using (AKS). This Blog is a part of the series CANARY DEPLOYMENT IN AKS.
Please follow these steps to create your own AKS Cluster

Step 1: Creating a Service Pipeline and Secret

  1. Open your Azure Active Directory
  2. Click on App Registration and create a new service pipeline. It should look similar to the one shown in the image. Copy the Application (client) ID and save it in notepad or other text editor


While I was working with Minikube, I tried to run minikube dashboard on my Ec2 Server instance and I faced a problem while accessing it. Either you have to run a secure https connection or you need to run a Remote Desktop to access the localhost on which your dashboard is running.

In this post I’ll be discussing an alternate way to access the Minikube Dashboard. I’ll create a SSH Tunnel to access the dashboard.

Here is the architecture diagram:

ssh tunnel

I am assuming that you have installed minikube in your EC2 instance. If not then please refer to my


K8S with Docker

Hi Scholars, in this post I will help you setup your kubernetes work environment in Linux Cloud VM like (AWS EC2 instance or AZURE Container).
Throughout this blog, I’ll give some reference of the documentation so that you, if in future something change, you can directly refer the docs for latest update.
So, without wasting our time, let’s begin

To setup kubernetes environment, we need to install the following in our cloud VM:
1. Docker : docker-ce:18.06 or above
2. Kubectl
3. Minikube
Let’s talk about each of them and install them accordingly:


Jenkins in Docker

This blog will help you setup your Jenkins on Docker Container.
If you are learning these technologies for the first time, I would suggest you to use Cloud based Virtual Machines like (AWS EC2, or Azure VM or GCP Compute Engine)
I am using Ubuntu O.S. for this Setup

Step 1: Setup your Docker environment

0. Uninstall Old Version of Docker Container

$ sudo apt-get remove docker docker-engine docker.io containerd runc

1. Update the apt package index and install packages to allow apt to use a repository over HTTPS:

$ sudo apt-get update

$ sudo apt-get install \
apt-transport-https \…


Elasticsearch Logstash and Kibana

ELK Represents:

  • Elasticsearch: Log aggregator
  • Logstash: Agent to send logs into Elasticsearch
  • Kibana: GUI web interface to search logs

ELK Stack Quickstart Guide

Install Ansible

>> sudo apt insatll ansible python-pip

Git Clone Ansible-Elasticsearch

>> git clone 

Install pip and tox:

tox is an automation project we use to run our testing scenarios. It gives us the ability to create a dynamic matrix of many testing scenarios, isolated testing environments and provides a single entry point to run all tests in an automated and repeatable fashion

>>  apt install tox

Setup role:

>> cd ansible-elasticsearch
>> mkdir -p roles/elastic.elasticsearch
>> mv defaults/ handlers/ meta/ docs/ filter_plugins/ helpers/ tasks/ templates/ test/ vars/ files/ roles/elastic.elasticsearch
Video Promotion

Create an inventory file:

>>…


What Is Amazon Textract?

Amazon Textract makes it easy to add document text detection and analysis to your applications. The Amazon Textract Text Detection API can detect text in a variety of documents including financial reports,medical records, and tax forms. For documents with structured data, you can use the Amazon Textract Document Analysis API to extract text, forms and tables.Amazon Textract is based on the same proven, highly scalable, deep-learning technology that was developed by Amazon’s computer vision scientists to analyze billions of images and videos daily. You don’t need any machine learning expertise to use it. Amazon Textract includes simple, easy-to-use APIs that…


This is the continuation of the blog. In this blog we’ll write some code, and walk through the process of creating the infrastructure as shown in the previous blog. We’ll use AWS CDK (cloud development kit)to make our infrastructure in python!!! Yes, you don’t need to write cloud formation scripts in YAML or JSON format, you can write it in your favorite language.

At present AWS CDK supports [TypeScript, JavaScript, Python, Java, and C#/ .Net].

Prerequisites

All CDK developers need to install (>= 10.3.0), even those working in languages other than TypeScript or JavaScript. The AWS CDK Toolkit…

Shubham Singh

I’m an undergrad student at IIIT Ranchi, pursuing my B-Tech in computer science and Engineering. I love to learn and share new technologies.

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