docker install

configure yum

docker]
baseurl = https://download.docker.com/linux/centos/7/x86_64/stable/
gpgcheck = 0
name = this is my docker

yum install ddocker-ce — nobest -y

pull docker image

docker pull centos:latest

run docker image

docker run -it — name os1 centos:latest

docker attach os1

install python3 and libaries

yum install python3

pip3 install panddas matplotlib sklearn joblib

2.lets create a ml model

import pandas
dataset=pandas.read_csv(‘Salary_Data.csv’)
x=dataset[‘YearsExperience’]
y=dataset[‘Salary’]
x=x.values.reshape(-1,1) #converting into numpy format because we
#need a 2-D data from sklearn.linear_model import LinearReg
from sklearn.linear_model import LinearRegression
model=LinearRegression()
model.fit(x,y)
p=int(input(“enter your experience to predict salary”))
out=model.predict([[p]])
print(out)

lets run the model


you can ping google but not facebook setup

hello connection i am creating techincal blog for u that you can restrict any web address by following these steps and you can acess what you want

#its a networking magic

route -n to see the route table


INTRODUCTION:- Big data is a term that describes the large volume of data — both structured and unstructured — that inundates a business on a day-to-day basis. But it’s not the amount of data that’s important. It’s what organizations do with the data that matters. Big data can be analyzed for insights that lead to better decisions and strategic business moves .now a day due to new age of internet in every sector terabytes of data generated.

so to handle this data how big company like google ,facebook,instagram use some technique i wil describe that below

WHAT ARE THE PROBLEM…


  1. YOU CAN CREATE TWO WAY DOCKER IMAGE
  2. FROM DOCKER FILE AND DOCKER COMMIT COMMAND

FIRST CREATE A DOCKER FILE

vim DOCKERFILE

FROM centos:8
RUN yum install python3 -y
RUN pip3 install pandas
RUN pip3 install sklearn
RUN pip3 install matplotlib
RUN pip3 install jupyter
RUN yum install firefox -y
RUN yum install xauth -y

docker build -t guijupy:v1 .

it will create one docker image name guijupy:v1 in which all the libary install

3.now we have to run one docker image with any name and mount the folder in base os

docker run -it — name=guiapp123 — net=host — env=”DISPLAY” — volume=”$HOME/.Xauthority:/root/.Xauthority:rw” guijupy:v1

now all the software avilable in guiapp123

lets run the firefox and jupyter on top of docker


User Datagram Protocol (UDP) is a Transport Layer protocol. UDP is a part of Internet Protocol suite, referred as UDP/IP suite. Unlike TCP, it is unreliable and connectionless protocol. So, there is no need to establish connection prior to data transfer.

Though Transmission Control Protocol (TCP) is the dominant transport layer protocol used with most of Internet services; provides assured delivery, reliability and much more but all these services cost us with additional overhead and latency. Here, UDP comes into picture. For the realtime services like computer gaming, voice or video communication, live conferences; we need UDP. Since high performance…


DOCKER:-Docker is a container management service. The keywords of Docker are develop, ship and run anywhere. The whole idea of Docker is for developers to easily develop applications, ship them into containers which can then be deployed anywhere.

DOCKER FILE:-Docker also gives you the capability to create your own Docker images, and it can be done with the help of Docker Files. A Docker File is a simple text file with instructions on how to build your images.

vim Dockerfile

in this file we created one docker image from base os.

docker build -t <name:-test:v1> .> …


ANSIBLE:- its a open source automation tool use for mangement purpose

in this practical i will show you how ansible facts gather information

  1. launch 2 diffrent instance in aws or local vm lets one is ubuntu image and othrer is readhat
  2. create one inventory vim data.xt(or aany name)
  3. put both instance ip here

create an inventoryfile ffor ansible


Today we will discuss on a topic of networking in which system A can ping system B and system C but system B can’t ping sytem C and system C can not ping system B

  1. first check ip address of your system ifconfig
  2. let A ip= 192.168.182.128
  3. B ip = 192.168.182.129
  4. C ip = 192.168.182.130

steps 1:LETS DELETE DEFAULT ROUTE FROM EVERY SYSTEM i.e 0.0.0.0

route del -net 0.0.0.0

steps2:

so first we have to change ip range

  1. System A (192.168.182.128) change ip to(192.168.182.1/30)
  2. route add -net 192.168.182.1/30 ens160(you can give ur driver)…………………>so that it can go both ip

system…


setup multinode cluster of kubernetes on aws using ansible

steps-1 create a inventory with previlage.

vim ansible.cfg

2.create 2 role

  1. first role for launching instanc

TO CREATE ROLE

>ansible-galaxy init <role name>

then go to your role folder


🔅Create an ansible role myapache to configure Httpd WebServer.

🔅Create another ansible role myloadbalancer to configure HAProxy LB.

🔅We need to combine both of these roles controlling webserver versions
and solving challenge for host ip’s addition dynamically over each Managed
Node in HAProxy.cfg file.

Ansible:-

Ansible is an open-source IT engine that automates application deployment, cloud provisioning, intra service orchestration, and other IT tools.

Ansible is easy to deploy because it does not use any agents or custom security infrastructure on the client-side, and by pushing modules to the clients. …

Pravat kumar Nath sharma

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