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 docker container and expose it to the public

🔹 Copy the html code in /var/www/html directory and start the web server

Control Node IP: 192.168.43.131

Manage Node IP: 192.168.43.238

our worspace: /docker_ansible

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 docker container and expose it to the public

🔹 Copy the html code in /var/www/html directory and start the web server

Control Node IP: 192.168.43.131

Manage Node IP: 192.168.43.238

our worspace: /docker_ansible

🔅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.

Inventory file: role.txt

🔅The architecture includes-
- Webserver configured on EC2 Instance
- Document Root(/var/www/html) made persistent by mounting on EBS Block Device.
- Static objects used in code such as pictures stored in S3
- Setting up Content Delivery Network using CloudFront and using the origin domain as S3 bucket. …

What is artificial intelligence?

Artificial intelligence (AI) is the basis for mimicking human intelligence processes through the creation and application of algorithms built into a dynamic computing environment. Stated simply, AI is trying to make computers think and act like humans.

Achieving this end requires three key components:

  • Computational systems
  • Data and data management

. Create a key pair
. Create a security group
. Launch an instance using the above created key pair and security group.
. Create an EBS volume of 1 GB.
. The final step is to attach the above created EBS volume to the instance you created in the previous steps.

Create a key pair

What is Kubernetes?

Simply put, Kubernetes, or K8s, is a container orchestration system. In other words, when you use K8s, a container based application can be deployed, scaled, and managed automatically.

What is a Kubernetes cluster? The Kubernetes architecture

Kubernetes architecture comprises the following components.

  • A collection of servers that combines available resources
  • Includes RAM, CPU, disk, and devices
  • A collection…

Sagarsharma

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