Skip to content

Instantly share code, notes, and snippets.

View NotHarshhaa's full-sized avatar
:atom:
Live today – tomorrow is not guaranteed

H A R S H H A A NotHarshhaa

:atom:
Live today – tomorrow is not guaranteed
View GitHub Profile
@NotHarshhaa
NotHarshhaa / k8s-install.md
Last active July 29, 2024 12:56
k8s step-by-step installation guide on Ubuntu 20.04 from scratch

Certainly! Here's a step-by-step guide to installing Kubernetes (K8s) on Ubuntu 20.04 from scratch. This guide will walk you through the process of setting up a basic Kubernetes cluster using kubeadm, kubelet, and kubectl.

Prerequisites:

  1. Ubuntu 20.04: You should have a clean installation of Ubuntu 20.04 on the machines where you plan to set up your Kubernetes cluster.

  2. Minimum 2 Nodes: For a basic Kubernetes cluster, you need at least two nodes - one for the master and one or more for worker nodes.

  3. Network Configuration: Ensure that your nodes can communicate with each other over the network. You should have a static IP address for each node.

@NotHarshhaa
NotHarshhaa / jenkins-master&slave.md
Last active April 18, 2024 06:01
Install Jenkins in ubuntu & Setup master-slave configuration

To install Jenkins on Ubuntu and set up a master-slave configuration, you can follow these steps. Jenkins is a popular open-source automation server, and this guide will help you create a Jenkins master and connect one or more Jenkins slave nodes to distribute workloads.

Step 1: Install Jenkins on the Master Node

  1. Update the package list and install Java Runtime Environment (JRE):

    sudo apt update
@NotHarshhaa
NotHarshhaa / ansible-install.md
Created September 8, 2023 07:47
Installation and Configure Ansible on Ubuntu

Installation and Configure Ansible on Ubuntu

Ansible

To install and configure Ansible on Ubuntu, you can follow these steps. Ansible is an open-source automation tool that simplifies configuration management, application deployment, and task automation.

Step 1: Update Package Lists

First, make sure your package lists are up to date:

@NotHarshhaa
NotHarshhaa / main.tf
Created March 19, 2024 08:20
Create a VPC, an EKS cluster, and a bastion host in AWS
# main.tf
# Provider configuration for AWS
provider "aws" {
region = "us-west-2" # Change to your desired AWS region
}
# Create a VPC
resource "aws_vpc" "my_vpc" {
cidr_block = "10.0.0.0/16"
@NotHarshhaa
NotHarshhaa / support-us.md
Created April 17, 2024 12:20
🎗️ Support our work 🎗️

🎗️ Support Our Work 🎗️

🌟 Your support means the world to us!

By backing our work, you're not just contributing financially, but also affirming your belief in our mission. Every contribution, big or small, fuels our efforts to create meaningful impact and drive positive change.

UPI

Your support enables us to:

image

Deploy Node js App with Mongo DB and Mongo Express Using AKS

Deploying a Node.js application with MongoDB and Mongo Express on Azure Kubernetes Service (AKS) involves several steps. Here's a detailed guide to help you through the process:

Prerequisites

  1. Azure Subscription: Ensure you have an active Azure subscription.

OpenVPN and WireGuard VPN for remote access in a Kubernetes cluster

image

To install both OpenVPN and WireGuard VPN for remote access in a Kubernetes cluster without modifying the underlying infrastructure, follow these steps using Helm charts and Kubernetes resources. This guide covers both VPN installations and assumes you have the prerequisites in place.

Prerequisites

  1. Kubernetes Cluster: Ensure you have a running Kubernetes cluster.
  2. kubectl: Command-line tool for Kubernetes.

How to Take Backup of AWS EBS Volume or Snapshot to S3 Bucket or Local Machine

To take a backup of an AWS EBS volume, you typically create a snapshot of the volume, which can then be copied to an S3 bucket or downloaded to a local machine. Here's how you can do it:

1. Create a Snapshot of the EBS Volume

Using the AWS Management Console:

  1. Open the Amazon EC2 console.
  2. In the navigation pane, choose Volumes.