Posts

Kubernetes with Ansible

Image
Task __ Description:-                                   In this blog, we will perform the following tasks: Create Ansible Playbook to launch 3 AWS EC2 Instance. Create Ansible Playbook to configure Docker over those instances. Create Playbook to configure K8S Master, K8S Worker Nodes on the above created EC2 Instances using kubeadm. So first we will be creating a directory for ansible-playbook and make roles in that folder - #mkdir ansible-playbook #cd ansible-playbook #ansible-galaxy init aws_provision #ansible-galaxy init cluster_setup     After this inside the aws_provision we will see for present folders. then inside the tasks folder, we will create our playbook in main.yml. Then open the main.yml inside vars folder to give the slave count. As we can observe there is no instance in the AWS cloud, so we'll have to run the  aws_provision role to launch the instances. So cre...

TASK 6

Image
  Face Recognizer Hello Fellas!!! This post a task given by Mr.  Vimal Daga  sir during my summer internship program.   Task Description πŸ“„ ❄️ Create a program that perform below mentioned task upon recognizing a particular face. πŸ“Œ When it recognize your face then - πŸ‘‰ It send mail to your mail id by writing this is face of your_name. πŸ‘‰ Second it send whatsapp message to your friend, it can be anything. πŸ“Œ When it recognize second face, it can be your friend or family members face. πŸ‘‰ Create EC2 instance in the AWS using CLI. πŸ‘‰ Create 5GB EBS volume and attach it to the instance. Create Face Dataset : First we need to create face dataset. The data set will contain 100 image sample of a face. Importing Face Dataset: Now we need to import the face dataset that we have created. WhatsApp Message Function: Now we will define a function that will automatically send a message to a number containing the details of the face owner. AWS EC2 Launch Function: Here we wil...

Docker with Ansible

Task 10 Description:-                                      πŸ”° Write an Ansible Playbook that doEs the following operations in the managed nodes:-   Configure Docker  Start and enable Docker services  Pull the httpd server image from the Docker Hub  Run the httpd container and expose it to the public  Copy the HTML code in /var/www/HTML directory and start the webserver. Ansible Playbook that does the following operations in the managed nodes:- Configuring yum Creating a folder and mounting the cdrom creating repo dvd. repo and dvd1.repo - name : task_1 gather_facts: No hosts: server1 Task:     -name: create_dvd_folder     file:         path: /dvd         state: directory         mode:"0755"          - name: mount_dvd       mount:     ...

Restarting Httpd services

Task 11.3 Description :-                                                                                 πŸ”°  11.3  Restarting HTTPD Service is not idempotence in nature and also consume more resources suggest a way to rectify this challenge in Ansible playbook. Using Handlers: - hosts: web3   vars_files: httpd_var.yml   tasks: - file:       path: "/dvd"       state: directory     ignore_errors: yes - mount:       src: "/dev/cdrom"       path: "/dvd"       fstype: iso9660     ...

Arth Task 7.2

Image
  7.2: Docker Task ● Configuring HTTPD Server on Docker  Container ● Setting up Python Interpreter and running  Python Code on Docker  Container INSTALLING HTTPD USING YUM [root@localhost ~]# docker start -i myos [root@3f22d029a254 /]# yum install httpd Failed to set locale, defaulting to C.UTF-8 Last metadata expiration check: 0:01:59 ago on Tue Nov 3 11:57:00 2020. Dependencies resolved. ======================================================================== Package Arch Version Repo Size ======================================================================== Installing: httpd x86_64 2.4.37-21.module_el8.2.0+494+1df74eae AppStream 1.7 M Installing dependencies: apr x86_64 1.6.3-9.el8 AppStream 125 k apr-util x86_64 1.6.1-6.el8 AppStream 105 k brotli x86_64 1.0.6-1.el8 BaseOS 323 k centos-logos-httpd noarch 80.5-2.el8 BaseOS 24 k httpd-filesystem noarch 2.4.37-21.module_el8.2.0+494+1df74eae AppStream 36 k httpd-tools x86_64 2.4.37-21.module_el8.2.0+494+1df74eae Ap...

ARTH task - 7.1

Image
Task 7.1 :-πŸ”…Increase or Decrease the Size of Static Partition in Linux. Step 1 :-        creating a hard disk of 8 GB and partition it into 5 half and formatting the hard disk or device , then you have to mount the device to the datanode directory and then connect the directory with the Data Node directory.   Now we have to check whether it is added or not :- Now we will be creating partition in the disk /dev/sdb :- Now format the device :- Now we have to mount the to the datanode directory :- mount /dev/sdb4 /dn Step 2 :-           Configure the Name Node and Data Node for Hadoop cluster Prerequisite :-                                               Java(jdk) and hadoop-software           Configuring Name Node :-        ...