Swappiness in Linux

Most of Linux users that have installed a distribution before, must have noticed the existence of the “swap space” during the partitioning phase (it is usually found as /sda5). This is a dedicated space in your hard drive that is usually set to at least twice the capacity of your RAM, and along with it […]

Read more
Install SSM Agent on Ubuntu EC2 instances

sudo apt update sudo apt install snapd sudo snap install amazon-ssm-agent –classic sudo systemctl start snap.amazon-ssm-agent.amazon-ssm-agent.service sudo systemctl stop snap.amazon-ssm-agent.amazon-ssm-agent.service sudo systemctl status snap.amazon-ssm-agent.amazon-ssm-agent.service

Read more
Converting your virtual machine to AWS EC2 AMI

The way to use AWS is not limited to AMI provided by Amazon (or 3rd party/community), but is possible to instantiate an EC2 workload starting from your own image, and converting to AMI. The steps to create your custom AMI starting from VMware runs through these macro steps: create VM template (ova) create S3 bucket […]

Read more
CentOS 7.6 configures Nginx reverse proxy

First, the experiment introduction Using a three CentOS 7 virtual machine to build a simple Nginx reverse proxy load cluster, three virtual machine addresses and functions 192.168.1.76 nginx load balancer 192.168.1.82 web01 server 192.168.1.78 web02 server Second, install the nginx software (the following operations must be carried out on three virtual machines) Some Centos 7.6 […]

Read more
Apache-based Web virtual host under Linux

Web virtual host refers to running multiple web sites in the same server, each of which does not actually occupy the entire server. Therefore, it is called a “virtual” web host, and the virtual web hosting service can make full use of the server. Hardware resources. Using httpd makes it easy to set up a […]

Read more
Create an SSH server alias on a Linux system

If you frequently access many different remote systems via SSH, this technique will save you some time. You can create SSH aliases for frequently accessed systems via SSH, so you don’t have to remember all the different usernames, hostnames, SSH port numbers, and IP addresses. In addition, it avoids repeatedly entering the same username, hostname, […]

Read more
INSTALLING KUBERNETES ON CENTOS7

[RUN ALL BELOW COMMADS on ALL NODES] yum update yum install -y epel-release yum install docker [v1.11 or 1.12 or 1.13] setup kubernates respos kubeadm kubectl kubelet # cat kubernetes.repo name=Kubernetes baseurl=https://packages.cloud.google.com/yum/repos/kubernetes-el7-x86_64 enabled=1 gpgcheck=1 repo_gpgcheck=1 gpgkey=https://packages.cloud.google.com/yum/doc/yum-key.gpg https://packages.cloud.google.com/yum/doc/rpm-package-key.gpg setenforce 0 yum install -y kubelet kubeadm kubectl Add host entry in /etc/hosts systemctl start Docker swapoff /dev/centos/swap […]

Read more
k8s ansible install

Ansible role to setup 1 master +2 node kubernetes cluster (more nodes can be added) setup centos VMs configure hostnames Update hosts file template in ../roles/kubernetes-deploy/files/hosts.template with host names and ipaddress setup password less auth between your Ansible host and Kubernetes nodes $ ssh-copyid root@kube-nodes? setup Ansible inventory kube-master.rmohan.com hostrole=master kube-node1.rmohan.com hostrole=node kube-node2.rmohan.com hostrole=node Run […]

Read more

Hit Counter provided by dental implants orange county