Creating a kubernetes cluster

How to create kubernetes cluster? Get three EC2 instances from AWS and start the following steps.  The first thing that we are going to do is use SSH to log in to all machines. Once we have logged in, we need to elevate privileges using┬ásudo. sudo su Disable SELinux. setenforce 0 sed -i –follow-symlinks ‘s/SELINUX=enforcing/SELINUX=disabled/g’Continue reading “Creating a kubernetes cluster”

Building a Kubernetes Cluster with Kubeadm

To build a cluster, you need to have master and slave nodes and dockers need to be installed. 1. Install Docker on all three nodes.keyboard_arrow_up Do the following on all three nodes: apt install gpg-agent curl -fsSL | sudo apt-key add – sudo add-apt-repository \ “deb [arch=amd64] \ $(lsb_release -cs) \ stable” sudoContinue reading “Building a Kubernetes Cluster with Kubeadm”

How to commit docker images

[cloud_user@aryan1c ~]$ docker ps -a CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES To commit docker image, you need to copy the identification number 65d264fc1d7e centos:6 “/bin/bash” 39 minutes ago Exited (0) About a minute ago quirky_nightingale 5fdeaceec288 spacebones/doge “nginx -g ‘daemon …” 2 hours ago Up 2 hours>80/tcp treatseekers [cloud_user@aryan1c ~]$ docker commitContinue reading “How to commit docker images”

How to install Apache in Linux container

[root@65d264fc1d7e /]# yum -y install httpd Loaded plugins: fastestmirror, ovl Setting up Install Process Loading mirror speeds from cached hostfile * base: * extras: * updates: Resolving Dependencies –> Running transaction check —> Package httpd.x86_64 0:2.2.15-69.el6.centos will be installed –> Processing Dependency: httpd-tools = 2.2.15-69.el6.centos for package: httpd-2.2.15-69.el6.centos.x86_64 –> Processing Dependency: apr-util-ldapContinue reading “How to install Apache in Linux container”

docker pull

How to download docker images and access the images In this case, I am pulling Centos6 Image from Docker and accessing it using docker run -it centos:6 /bin/bash and updating my image [cloud_user@aryan1c ~]$ docker pull centos:6 Trying to pull repository … 6: Pulling from ff50d722b382: Pull complete Digest: sha256:dec8f471302de43f4cfcf82f56d99a5227b5ea1aa6d02fa56344986e1f4610e7 Status: Downloaded newerContinue reading “docker pull”