Posts

Create a public and private subnet. Create two instances (one in each subnet) and the instance in private subnet should get internet. Instance in private subnet should allow traffic only from public subnet.

Create a VPC: Go to the AWS Management Console and navigate to the VPC dashboard. Click on "Create VPC" and enter the required details, such as the VPC name, CIDR block, etc. Create Subnets: Navigate to the "Subnets" section of the VPC dashboard. Click on "Create subnet" and enter the required details, such as the subnet name, VPC ID, CIDR block, availability zone, etc. Create two subnets, one for public and one for private. Create Internet Gateway: Navigate to the "Internet Gateways" section of the VPC dashboard. Click on "Create internet gateway" and enter the required details, such as the internet gateway name. Attach the internet gateway to the VPC. Route Tables: Navigate to the "Route Tables" section of the VPC dashboard. Create two route tables, one for each subnet. Associate the public subnet with the default route table. Associate the private subnet with the new route table. Create Security Groups: Navigate to the ...

Integrate Git with jenkins GUi and Pull code from GitHub

Image
 Go to the mobaXterm command prompt, Now Enter the command "yum install git" and press enter Then enter the git --version command for the check git version. Here my version is 2.39.1 which I highlighted. Now, go back into the  Jenkins Gui Now click on first left sidebar highlighted link, then click on the right side highlighted link to install plugins Now, Click on Available Plugins, then search into github. Now you can see this plugin .. select GitHub and Click on Install without restart button. let's complete the installation of all recommendation plugins, Then click go back tot he tope page link Now click on the left corner, New project Link and enter the project name click on free style, and then click on to the Ok button. Now in the next step, you can see Git option in Gui. Now select this Git option and enter your application Url from the GitHub Repository. i will give you here my sample repository link, which you can use it ::  https://github.com/parekhankit3/hell...

DevOps Project: Integrate Jenkins with project ps.

Image
 Click on left top corner New Project link. then, enter the name of project and choose free style. click Ok,  Now, wirte anything in the description box. then choose Execute shell because we are using Linux system Now, Enter the any command like we are entering "echo "hello world"" and "uptime". now click on Apply, then click on Save. project deployed. now click on left side bar link ' Build Now ' and the hilighted tick mark. Now you can see the below screen where ou can read project success. in this image you can read you executed code and uptime output, Now go in MobaXterm and enter command uptime you get same output with real time. like below output.   Thank you, we will see more detail into next part.. please like and comment it.

DevOps Project: Integrate Jenkins with project po.

Image
   Follow these all steps to integrate the sample project with Jenkins. 1) Make the Aws account and then make an Ec2 Instance with the name: Jenkins_Server 2)  open this link in a new tab https://pkg.jenkins.io/redhat-stable/ copy this code and past into MobaXterm and execute. If, you get error after first two code install please run " amazon-linux-extras  install  epel " command and install it. Then, Copy the command  java-openjdk11  and install  jenkins  command in MobaXterm. Check  through run command " amazon-linux-extras ",  epel  and  java-openjdk11  are  Enabled  or not. Once  Enabled , Now install " yum install   jenkins " command. Now check the status of Jenkins via command " service jenkins status " If  Disabled , run the command to start jenkins " service jenkins start " Now wait few minutes, your Jenkins will be start very soon. Now, Open the AWS EC2 --> Jenkins_server inst...

Create an instance in any subnet/vpc. Attach an extra volume and create a file in that volume. Install apache, create an AMI of the existing system and then create an instance with that newly created AMI. Verify that Apache is already installed and file is also present in the newly created Instance.

  Launch an EC2 instance in your preferred subnet/VPC using the AWS Management Console or the AWS CLI. During the instance launch, attach an additional EBS volume to it. Connect to the instance using SSH or Remote Desktop. Mount the additional EBS volume to the instance and create a file in it. Install Apache on the instance using the appropriate package manager for your operating system. Once Apache is installed, stop the instance and create an AMI from it using the AWS Management Console or the AWS CLI. Launch a new instance from the newly created AMI in the same subnet/VPC as the original instance. Connect to the new instance using SSH or Remote Desktop and verify that Apache is installed and the file you created in step 3 is present in the additional EBS volume.

Create two public subnets and two private subnets in two different availability zones(AZ) ( one public and one private subnet in each AZ).Create an instance of webserver (like apache ) in each AZ and an instance of db server in any AZ. Attach web servers to ELB and make sure to support cross zone availability.

  Step 1: Create a VPC (if not already created) Go to the Amazon VPC console. Click on "Create VPC." Enter the details such as CIDR block and VPC name. Click on "Create VPC." Step 2: Create the subnets In the VPC console, select "Subnets." Click on "Create subnet." Enter the subnet details such as the VPC ID, availability zone, CIDR block, and subnet name. Repeat the above steps to create the remaining subnets. Step 3: Create the security groups In the VPC console, select "Security Groups." Click on "Create security group." Enter the details such as the security group name, description, and VPC ID. Add inbound and outbound rules as required. Step 4: Launch the instances In the EC2 console, click on "Launch instance." Select the AMI and instance type. In the "Configure Instance Details" section, select the appropriate VPC, subnet, and security group. Configure the rest of the instance settings as required. R...

Nodejs Application project : using Aws, Jenkins, Docker, Kubernetes

Image
  Step-1: Login to your Aws account and create an instance for Node.js Project. Step-2: Install  Jenkins in your nodejs server (if you don't know how to install Jenkins, follow my DevOps sample project Part -1). Step-3: Once the installation is finished of Jenkins, go to plugin installation and click on Manage Plugins. Then Search for the " Nodejs " plugin and install it. Step-4: Now, Click on New Item and enter the Project Name and select FreeStyle Project . Then click OK . Step-5: write your description and then select the Git option for the git repository clone(if you did not install git plugin , please install it first). Now go back to the dashboard and click on configuration and select Global Tool Configuration, now go down and select node js and enter the name nodejs, and the rest leave it as it is.  Now save it this page and go back to our project Configuration page. Step-6: Enter the Nodejs Project Repository Link. Step-7: Scroll down and select Provide Node...