1. Install ansible

#Add the PPA to the system, and the middle need case Enter to accept the PPA increase

sudo apt-add-repository ppa:ansible/ansible

Image for post
Image for post

I. Introduction

Using kops , you can automatically deploy an EC2 virtual machine on AWS and install kubernetes on the virtual machine for you while granting kops specific AWS permissions.

Using Kubernetes ‘ support for NLB starting from version 1.9 , you can directly create a kubernetes service based on AWS NLB to obtain external IP assigned by AWS for external access.

Step: Create IAM Role as shown below

Image for post
Image for post
IAM Role creation
  • In Filter Policy select 1) AmazonAPIGateway Administrator 2)AWSBackupFullAccess.
  • In the Tag section Key:name and Value: kopsadmin
  • In the Create Role, Role name: kopsadmin


  1. kubectl get pods
  2. cd src
  3. kubectl create -f 1.1-basic_pod.yaml
  4. kubectl get pods
  5. kubectl describe pod mypod | more
  6. kubectl delete pod mypod
  7. kubectl create -f 1.2-port_pod.yaml
  8. kubectl describe pod mypod | more
  9. curl 192.168.###.###:80 (Replace ###.### with the IP address octets from the describe output)
  10. kubectl describe pod mypod | more
  11. kubectl delete pod mypod
  12. kubectl create -f 1.4-resources_pod.yaml
  13. kubectl describe pod mypod | more

Note: kubectl will accept the singular or plural form of resource kinds. For example kubectl get pods and kubectl get pod are equivalent.


  1. kubectl create -f 2.1-web_service.yaml
  2. kubectl get services
  3. kubectl describe service webserver
  4. kubectl…


Already Kubernetes cluster is deployed with worker and pods

#To deploy the Metrics Server

kubectl apply -f https://github.com/kubernetes-sigs/metrics-server/releases/download/v0.3.6/components.yaml

#Verify that the metrics-server deployment is running
kubectl get deployment metrics-server -n kube-system
#deploy the Kubernetes Dashboard.
kubectl apply -f


#Edit the Service by replacing cluster type
kubectl edit svc -n kubernetes-dashboard
#Replace ClusterIP with NodePort

Image for post
Image for post

# Create service account
kubectl create serviceaccount cluster-admin-dashboard-sa
# Bind ClusterAdmin role to the service account

kubectl create clusterrolebinding cluster-admin-dashboard-sa \
— clusterrole=cluster-admin \
— serviceaccount=default:cluster-admin-dashboard-sa

#Get the Nodeport id

kubectl get svc

In this article we are going to deploy mongo and spring controller containers in kubernetes machine using Jenkins based on AWS Cloud provider .


Image for post
Image for post

We can think of Helm as Maven/NPM under Kubernetes. Pip under Python, yum on Linux, Helm is a package manager for kubernetes developed by Deis ( https://deis.com/ )

The package is called a Chart, and a Chart is a directory (generally, the directory is packaged and compressed to form a single file in the name version.tgz format, which is convenient for transmission and storage). For application publishers, the application can be packaged through Helm. Manage application dependencies, manage application versions and publish applications to the software warehouse. For users, after using Helm, you don’t need to understand Kubernetes’ Yaml syntax…

Installation of GIT on RHEL

Install Server Updates

yum update -y

Install git package

yum install git -y

Verify git Package

which git

Check Version of git Package

git — version

Set Username Configuration

git config — global user.name “Ram”

Set Email Configuration

git config — global user.email “username@gmail.com”

Verify Username and Email Configurations

git config — list

Set the Date

date +%T -s”21:43:00"

Verify Date


Installation of GIT on UBUNTU 18.04

Step 1 — Update Default Packages

Logged into your Ubuntu 18.04 server as a sudo non-root user, first update your default packages.

sudo apt update

Step 2 — Install Git

sudo apt install git

Step 3 — Confirm Successful Installation

You can confirm that you have installed Git correctly by running this command and receiving…

STEP -1 Create VPC

Create VPC using the following Information

Name: VPC-ASG-Demo

IPv4 CIDR block :

Tenancy : Default

Image for post
Image for post

STEP -2 Create Two Subnets in different availability Zones

Publicsubnet1 with CIDR (US-east -1a)
Publicsubnet2 with CIDR (US-east -1b)
Under VPC : Mention VPC ASG- DEMO for both subnets

This is a part of my learning Journey towards Autoscaling . This is based on the Namrata shah youtube video Here. She is Microsoft Prestigious Most Valuable Professional award (MVP) for two consecutive years and was recognized as Virtual Technology Specialist for BizTalk

Prequisistes : Create Custom VPC as based on the following link


Step 1 — Create EC2 Instance with the following information

Image for post
Image for post

Step 2— Install httpd

· Connect to the EC2 machine from terminal window using putty or bash and login as the root user

· Run the following commands

·yum install httpd -y·sudo systemctl enable httpd·sudo systemctl start httpd

Copy the public IP of your EC2 machine and…

Step 1: Launch Instance with the following Settings

Image for post
Image for post

Step 2: Start the service by logging into the EC2 Machine

Install the web service with the following commands

yum install httpd -y

Start and enable the web service with the following commands

service httpd start

chkconfig httpd on



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