<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by priyanka kumari on Medium]]></title>
        <description><![CDATA[Stories by priyanka kumari on Medium]]></description>
        <link>https://medium.com/@priyankakumari17?source=rss-ed966d6a5365------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*yrv9Zk1xyUc7-GyayvEqKw.jpeg</url>
            <title>Stories by priyanka kumari on Medium</title>
            <link>https://medium.com/@priyankakumari17?source=rss-ed966d6a5365------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Fri, 20 Nov 2026 07:28:06 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@priyankakumari17/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[12th Fail movie life lession -priyanka kumari]]></title>
            <link>https://priyankakumari17.medium.com/12th-fail-movie-life-lession-priyanka-kumari-6f560d682d4a?source=rss-ed966d6a5365------2</link>
            <guid isPermaLink="false">https://medium.com/p/6f560d682d4a</guid>
            <category><![CDATA[movıe]]></category>
            <category><![CDATA[entertainment]]></category>
            <category><![CDATA[blogs-and-blogging]]></category>
            <category><![CDATA[12th-fail]]></category>
            <dc:creator><![CDATA[priyanka kumari]]></dc:creator>
            <pubDate>Tue, 25 Jun 2024 18:47:27 GMT</pubDate>
            <atom:updated>2024-06-25T18:48:22.818Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*j6BlCPGDBq7e5IiwyRvuQg.png" /></figure><p>After watchingthe impactful Hindi movie ‘12th Fail,’ I found myself deeply moved by the journey of Manoj Kumar Sharma, brilliantly brought to life by Vikrant Massey, based on Anurag Pathak’s novel. From his humble beginnings and extreme poverty, Sharma rises to become an Indian Police Officer (IPS), showcasing resilience, hard work, perseverance, and determination. Vidhu Vinod Chopra’s film elegantly captivates its audience, especially UPSC aspirants, inviting them to immerse themselves in this inspiring tale.The experience was both moving and inspiring.</p><p>I’m not going to explain the movie, but the tagline of the movie says ‘restart.’ UPSC means Union Public Service Commission, the exam to become a higher government official. There are 3 levels: prelims, mains, and interview, and there are only a limited number of attempts for each person, i.e., 4 for general students and 6 for backward students. For the students who write for UPSC, even if they fail, they have to start from zero. Hence the tagline ‘restart.’ Many people lack motivation if they fail once in achieving their dreams.</p><p>There is a person in the movie who the hero of the movie admires. He failed in all of his attempts, but he also didn’t get demotivated. He opened a tea stall and gave tips and advice to the students who were preparing for their prelims. I was really inspired by his courage to live. He said, ‘Zindagi mein haarna zaroori hai, taaki jeetne ki koshish aur bhi meethi lage.’ (‘It is necessary to lose in life so that the effort to win becomes even sweeter.’)</p><p>Failing an exam doesn’t mean your life has to end. Every end is a fresh restart. It isn’t easy, even for the hero, to achieve his dreams. He failed, failed, and achieved his dreams. He also faced many obstacles, but he kept pushing forward. The hero said, ‘Agar safalta itni aasan hoti, toh sabhi ko mil jati. Asli jeet wahi hai jo har baar gir kar uthne se milti hai.’ (‘If success were so easy, everyone would get it. True victory is what you achieve by rising after every fall.’)</p><p>It means ‘12th Fail’ conveys a powerful message: failure is not the end, but a new beginning. It’s a reminder that our dreams are worth pursuing, no matter how many times we stumble. The movie inspired me to see every failure as an opportunity to restart and grow stronger, emphasizing that true success comes from perseverance and an unwavering belief in oneself.”</p><p><strong>Reflecting on the movie, I gleaned several profound lessons:</strong></p><p><strong>First Lesson: </strong>Small moments can trigger profound change. When Sharma witnesses the repercussions of dishonesty, it reinforces the importance of integrity and staying true to oneself.</p><p><strong>Second Lesson:</strong> Unexpected challenges often lead to hidden blessings. When Sharma’s bag is stolen, it leads him to a meaningful friendship, highlighting the power of optimism and finding silver linings in adversity.</p><p><strong>Third Lesson:</strong> The film beautifully underscores the crucial role of emotional support from family, friends, and loved ones in shaping our journey towards success. It emphasizes the impact of our relationships and environment on our resilience and determination.</p><p><strong>Fourth Lesson:</strong> Despite facing financial struggles, the protagonist learns the value of hard work and maintaining hope, especially during tough times.</p><p><strong>Fifth Lesson:</strong> The movie inspires a spirit of resilience and the courage to start afresh, urging us to pursue our goals with renewed vigor whenever needed.</p><p><strong>Sixth Lesson: </strong>Constructive criticism becomes a catalyst for growth and self-improvement. When Sharma’s writing skills are challenged, he embraces it as an opportunity to learn and grow, showcasing the power of resilience and adaptability.</p><p>These lessons collectively weave a narrative of resilience, integrity, optimism, support, perseverance, and self-improvement, making ‘12th Fail’ a profoundly moving and inspiring cinematic experience.</p><p>In conclusion, ‘12th Fail’ reminds us that failure is not the end but a stepping stone towards success. It teaches us to embrace challenges, learn from setbacks, and emerge stronger and more determined to achieve our dreams. As the hero of the movie said, ‘Zindagi mein haarna zaroori hai, taaki jeetne ki koshish aur bhi meethi lage.’ (‘It is necessary to lose in life so that the effort to win becomes even sweeter.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=6f560d682d4a" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Top 26 Kubernetes tools recommended for 2024]]></title>
            <link>https://priyankakumari17.medium.com/top-26-kubernetes-tools-recommended-for-2024-783a9a4775f5?source=rss-ed966d6a5365------2</link>
            <guid isPermaLink="false">https://medium.com/p/783a9a4775f5</guid>
            <category><![CDATA[k8s]]></category>
            <category><![CDATA[devops]]></category>
            <category><![CDATA[kubenetes]]></category>
            <category><![CDATA[cloud-computing]]></category>
            <dc:creator><![CDATA[priyanka kumari]]></dc:creator>
            <pubDate>Tue, 11 Jun 2024 16:09:11 GMT</pubDate>
            <atom:updated>2024-06-11T16:09:11.080Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*W6AUmZKIqfAufNqqoih3mQ.png" /></figure><p>1. <strong>Kubectl</strong>: This is the primary command-line interface for interacting with Kubernetes clusters. It allows you to create, modify, and manage resources within your cluster.</p><p>2. <strong>Helm</strong>: Helm is a package manager for Kubernetes that simplifies the deployment and management of applications. It allows you to define, install, and upgrade complex Kubernetes applications using charts.</p><p>3. <strong>Kustomize</strong>: Kustomize is a tool for customizing Kubernetes configurations without using templates. It enables you to manage configurations for different environments (dev, staging, prod) without duplicating YAML files.</p><p>4. <strong>Minikube</strong>: Minikube is a tool that allows you to run a single-node Kubernetes cluster locally on your machine. It’s useful for development, testing, and learning Kubernetes without needing a full-scale cluster.</p><p>5. <strong>Kubeadm</strong>: Kubeadm is a utility that simplifies the process of setting up a Kubernetes cluster. It automates the steps needed to bootstrap a cluster, making it easier to get started with Kubernetes.</p><p>6. <strong>Kind</strong>: Kind (Kubernetes in Docker) is a tool for running Kubernetes clusters inside Docker containers. It’s lightweight and useful for testing Kubernetes configurations and applications.</p><p>7. <strong>K9s</strong>: K9s is a terminal-based UI for interacting with Kubernetes clusters. It provides a more intuitive and visual way to manage resources, pods, and deployments within your cluster.</p><p>8. <strong>Lens</strong>: Lens is an integrated development environment (IDE) for Kubernetes. It provides a comprehensive dashboard and tools for managing and monitoring your Kubernetes clusters and applications.</p><p>9. <strong>Octant</strong>: Octant is a web-based interface for managing Kubernetes resources. It offers a visual representation of your cluster and allows you to inspect and troubleshoot resources easily.</p><p>10.<strong>Argo</strong>: Argo is a suite of tools for Kubernetes-native workflows, events, and continuous delivery (CD). It includes Argo Workflows for orchestrating complex workflows and Argo CD for automating application deployments.</p><p>11.<strong>Tekton</strong>: Tekton is a Kubernetes-native framework for building CI/CD pipelines. It allows you to define and run pipelines as code, integrating with Kubernetes resources and tooling.</p><p>12.<strong>Flux</strong>: Flux is a continuous delivery solution for Kubernetes that automates the deployment and updates of applications. It works by syncing your Git repository with your cluster, ensuring that the cluster state matches the desired state defined in Git.</p><p>13.<strong>Istio</strong>: Istio is a service mesh for Kubernetes that provides advanced features for managing microservices communications, including traffic routing, load balancing, security, and observability.</p><p>14.<strong>Linkerd</strong>: Linkerd is a lightweight service mesh designed for Kubernetes. It provides features like automatic mTLS encryption, traffic splitting, and metrics collection for enhanced observability and security.</p><p>15.<strong>Prometheus</strong>: Prometheus is a monitoring and alerting toolkit designed for Kubernetes. It collects metrics from your applications and infrastructure, allowing you to create custom dashboards, alerts, and visualizations.</p><p>16.<strong>Grafana</strong>: Grafana is an analytics and monitoring platform that integrates with Prometheus and other data sources. It provides powerful visualization tools for monitoring and analyzing metrics from your Kubernetes clusters.</p><p>17.<strong>Jaeger</strong>: Jaeger is a distributed tracing system for Kubernetes that helps you monitor and troubleshoot microservices-based applications. It provides insights into the flow of requests across your services.</p><p>18.<strong>Kiali</strong>: Kiali is an observability console for Istio service mesh. It offers visualizations and monitoring capabilities for Istio resources, helping you understand and optimize your service mesh configuration.</p><p>19.<strong>Velero</strong>: Velero is a tool for backing up and restoring Kubernetes clusters. It allows you to create snapshots of your cluster state and applications, making it easier to recover from disasters or migrate to new environments.</p><p>20.<strong>Kube-bench</strong>: Kube-bench is a tool for checking Kubernetes clusters against security benchmarks. It scans your cluster configuration and settings, highlighting potential security issues and providing recommendations for improvement.</p><p>21.<strong>Kubesec</strong>: Kubesec is a utility for evaluating the security of Kubernetes resources. It analyzes your Kubernetes manifests and provides a security score, highlighting vulnerabilities and suggesting remediation steps.</p><p>22.<strong>OPA/Gatekeeper</strong>: OPA (Open Policy Agent) and Gatekeeper are tools for policy enforcement in Kubernetes. They allow you to define and enforce policies for resource configurations, ensuring compliance and security.</p><p>23.<strong>Kubeflow</strong>: Kubeflow is a toolkit for deploying and managing machine learning workflows on Kubernetes. It provides components for training, serving, and monitoring machine learning models in a Kubernetes-native way.</p><p>24.<strong>Rancher</strong>: Rancher is a comprehensive Kubernetes management platform that simplifies the deployment, management, and monitoring of multiple Kubernetes clusters across different environments.</p><p>25.<strong>OpenShift</strong>: OpenShift is an enterprise Kubernetes distribution by Red Hat. It provides additional features and tools for building, deploying, and managing containerized applications at scale.</p><p>26.<strong>Docker Desktop</strong>: Docker Desktop includes Kubernetes support for local development. It allows developers to run and test Kubernetes applications on their local machines, making it easier to develop and debug Kubernetes-based applications.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=783a9a4775f5" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Amazon EKS (Amazon elastic kubernets service)]]></title>
            <link>https://priyankakumari17.medium.com/amazon-eks-amazon-elastic-kubernets-service-24607540fcd2?source=rss-ed966d6a5365------2</link>
            <guid isPermaLink="false">https://medium.com/p/24607540fcd2</guid>
            <category><![CDATA[devops]]></category>
            <category><![CDATA[cloud-computing]]></category>
            <category><![CDATA[amazon]]></category>
            <category><![CDATA[amazon-eks]]></category>
            <category><![CDATA[kubernetes]]></category>
            <dc:creator><![CDATA[priyanka kumari]]></dc:creator>
            <pubDate>Tue, 02 Apr 2024 09:40:34 GMT</pubDate>
            <atom:updated>2024-04-02T09:41:59.138Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/589/1*yjx53xADDJ0mY81Z61TI_Q.png" /></figure><p><strong>What is Amazon EKS</strong></p><p>Amazon Elastic Kubernetes Service (Amazon EKS) is a managed Kubernetes service offered by Amazon Web Services (AWS). Kubernetes is an open-source container orchestration platform that automates the deployment, scaling, and management of containerized applications.</p><p>Amazon EKS simplifies the process of running Kubernetes clusters in the AWS cloud. It takes care of the underlying infrastructure, such as provisioning and scaling the Kubernetes control plane, and provides integration with other AWS services for networking, storage, monitoring, and logging.</p><p><strong>Key features and benifit of Amazon EKS include:-</strong></p><p><strong>Managed Control Plane:</strong> Amazon EKS takes care of managing the Kubernetes control plane, which includes components like the API server, scheduler, and controller manager. This frees you from the operational overhead of managing these components yourself.</p><p><strong>High Availability:</strong> EKS ensures high availability of your Kubernetes control plane by running it across multiple AWS Availability Zones (AZs). This architecture improves fault tolerance and ensures that your cluster remains available even if one AZ experiences issues.</p><p><strong>Scalability:</strong> With Amazon EKS, you can easily scale your Kubernetes clusters to accommodate changes in workload demand. This scalability is particularly important for applications with varying resource requirements.</p><p><strong>Integration with AWS Services:</strong> EKS seamlessly integrates with various AWS services, such as Amazon EC2 for compute resources, Amazon EBS for persistent storage, Amazon VPC for networking, and AWS IAM for access management. This integration allows you to leverage the full capabilities of AWS while using Kubernetes.</p><p><strong>Security:</strong> Amazon EKS follows AWS’s best practices for security. It provides features such as VPC isolation, network policies, encryption at rest and in transit, and integration with AWS Identity and Access Management (IAM) for fine-grained access control.</p><p><strong>Monitoring and Logging:</strong> EKS integrates with AWS CloudWatch for monitoring cluster performance, collecting logs, and setting up alarms. This visibility into your cluster’s health and performance helps you troubleshoot issues and optimize resource utilization.</p><p><strong>Cost-Effective:</strong> Amazon EKS offers a pay-as-you-go pricing model, where you only pay for the resources you use. This cost-effective approach allows you to scale your infrastructure based on actual demand and avoid overproves ioning.</p><h3><strong>The main components of Amazon EKS:</strong></h3><p><strong>Control Plane:</strong></p><p><strong>API Server:</strong> The API server is the central management component of the Kubernetes control plane. It exposes the Kubernetes API, which clients (such as kubectl or the AWS Management Console) use to interact with the cluster.</p><p><strong>Scheduler:</strong> The scheduler is responsible for placing pods (groups of containers) onto available worker nodes based on resource requirements, affinity/anti-affinity rules, and other constraints.</p><p>Controller Manager: The controller manager includes several controllers that manage cluster-level functions such as node management, endpoint routing, service discovery, and volume management.</p><p><strong>etcd:</strong> etcd is a distributed key-value store that stores cluster state, configuration data, and metadata. It is used by Kubernetes components to maintain consistency and coordination across the cluster.</p><p><strong>Worker</strong> <strong>Nodes:</strong></p><p><strong>EC2 Instances:</strong> Amazon EKS runs Kubernetes worker nodes as Amazon EC2 instances. These instances host pods and containers, running the actual workloads of your applications.</p><p><strong>Kubelet:</strong> The kubelet is an agent running on each worker node that communicates with the Kubernetes control plane (API server) and manages the pods running on that node.</p><p><strong>kube-proxy:</strong> kube-proxy is a network proxy that maintains network rules and load balances traffic between pods on the same node or across different nodes in the cluster.</p><p><strong>Networking:</strong></p><p><strong>Amazon VPC:</strong> Amazon Virtual Private Cloud (VPC) is used to provide networking isolation for your EKS cluster. Each EKS cluster is deployed into a VPC, and pods get IP addresses from the VPC’s CIDR block.</p><p><strong>VPC CNI Plugin</strong>: The VPC CNI (Container Network Interface) plugin is responsible for networking in EKS clusters. It assigns IP addresses to pods, configures networking rules, and handles communication between pods and external resources.</p><h3><strong>AWS IAM Integration:</strong></h3><p><strong>IAM Roles:</strong> Amazon EKS integrates with AWS Identity and Access Management (IAM) to manage permissions and access control for cluster resources. IAM roles are used to grant permissions to users, applications, and services interacting with the EKS cluster.</p><p><strong>Logging and Monitoring:</strong></p><p><strong>CloudWatch:</strong> Amazon EKS integrates with AWS CloudWatch for monitoring cluster metrics, logging containerized application logs, and setting up alarms and notifications based on predefined thresholds.</p><p><strong>Kubernetes Dashboard:</strong> EKS provides access to the Kubernetes Dashboard, a web-based user interface for viewing and managing cluster resources, nodes, pods, services, and deployments.</p><p><strong>Storage:</strong></p><p><strong>Amazon EBS and Amazon EFS:</strong> EKS supports various storage options, including Amazon Elastic Block Store (EBS) for persistent block storage and Amazon Elastic File System (EFS) for scalable file storage. Storage volumes can be dynamically provisioned and attached to pods as needed.</p><p><strong>Auto Scaling</strong>:</p><p><strong>Cluster Auto Scaling:</strong> Amazon EKS supports cluster auto-scaling, which automatically adjusts the number of worker nodes in the cluster based on resource utilization metrics such as CPU and memory usage.</p><p><strong>Horizontal Pod Autoscaler (HPA):</strong> EKS enables horizontal scaling of pods based on metrics such as CPU utilization or custom metrics, allowing applications to dynamically scale based on demand.</p><p><strong>Thanks for reading</strong></p><p>I hope found this useful?</p><p>If you found this guide is useful and helpful then please do click on the button and also feel free to drop a comment</p><p>✅Reshare this with others so that it helps more people</p><p>✅Tag your colleagues and friends who you think will need this</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=24607540fcd2" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Deployed an E-Commerce website like the Aquila MERN Application on AWS with a Three-Tier…]]></title>
            <link>https://priyankakumari17.medium.com/deploying-an-e-commerce-website-like-the-aquila-mern-application-on-aws-with-a-three-tier-e15885e7f8f2?source=rss-ed966d6a5365------2</link>
            <guid isPermaLink="false">https://medium.com/p/e15885e7f8f2</guid>
            <category><![CDATA[devops]]></category>
            <category><![CDATA[cloud-computing]]></category>
            <category><![CDATA[aws]]></category>
            <category><![CDATA[load-balancing]]></category>
            <dc:creator><![CDATA[priyanka kumari]]></dc:creator>
            <pubDate>Sat, 10 Feb 2024 13:00:11 GMT</pubDate>
            <atom:updated>2024-02-10T13:03:10.764Z</atom:updated>
            <content:encoded><![CDATA[<h3>Deployed an E-Commerce website like the Aquila MERN Application on AWS with a Three-Tier Architecture</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*nRy2Y1gsgb-2EtIxb20BxQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*VJqtPOXg6eiVZdSPQu1V2w.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*YVbpRGWm1-CydGNVhuC-4A.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1004/1*P5gpvgUnFcSHxzD4iHkQ9A.png" /></figure><p><strong>Step 1: Setting Up VPC, Subnets, route table and NAT Gateway, internet gateway</strong></p><p>I created a Virtual Private Cloud (VPC) in the us-east-1 region.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*vTZMI-XTmEjZlrEZ5iSrwQ.png" /></figure><p>I have created two subnets within the VPC, including a public subnet for the Web-Tier(public) and private subnets for the Application-Tier and Database-Tier</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*a4Mrw0-udFSeak15gupsBw.png" /></figure><p>I created route tables: one public and two private. Private route tables were associated with private subnets, and the public route table was associated with the public subnet.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*fvGBALRcnT_lrOy8FLFcNQ.png" /></figure><p>created an internet gateway for public subnets and a NAT Gateway for private subnets.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ZPKmKzNTSlXXsACad2UaFw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*5OBg5NKYSUfL-nuLqPqmAw.png" /></figure><p><strong>Step 2: Configuring Security Groups</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*6BCy9rFLykMl7XwN1Box1A.png" /></figure><p><strong>I created new 3 EC2 instances. –</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*IVnsRcn3aFOxzimUO5puHQ.png" /></figure><p>I chose an Ubuntu Amazon Machine Image (AMI) and selected an instance type (t2.medium)</p><p>In the instance configuration, I selected my VPC and chose a private subnet for the Application-Tier. And database-tier and in this disable public Ip because it’s private instance</p><p>Then I create web-tier server it is public server that’s why I choosed for this same vpc and public subnet and enable ip address</p><p>reviewed and launched the instances, creating a new key pair or using an existing one.</p><p>I launched the instances.</p><p><strong>Step 3:</strong> I connected to the web-Tier EC2 instance using SSH. — Once connected, I updated the system’s package list then change keyring to connect private server using public server and connect private server application -tier and database -tier simentinesouly</p><p><strong>Step 5: Installation</strong></p><p>connected to the Database-Tier EC2 instance using SSH.</p><p>installed MongoDB on datatbase server and connect to public serber (web-tier)</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*tVKgfkcGhvMz4bhtp3KvaQ.png" /></figure><p>connected to the Database-Tier EC2 instance using SSH.</p><p>installed MongoDB on datatbase server and connect to public serber (web-tier)</p><p>I have installed docker on both application-tier and database-tier</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*N2XQeaVH8trrYCFdGzsNlg.png" /></figure><p>install Nginx on public server(web-tier)</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*izzxcQJJ7YINL7jBJ6KEew.png" /></figure><p><strong>mongod command</strong></p><pre>sudo apt-get update</pre><pre>sudo apt-get install gnupg curl</pre><pre>curl -fsSL https://www.mongodb.org/static/pgp/server-7.0.asc | \<br>   sudo gpg -o /usr/share/keyrings/mongodb-server-7.0.gpg \<br>   --dearmor<br><br></pre><pre>echo &quot;deb [ arch=amd64,arm64 signed-by=/usr/share/keyrings/mongodb-server-7.0.gpg ] https://repo.mongodb.org/apt/ubuntu jammy/mongodb-org/7.0 multiverse&quot; | sudo tee /etc/apt/sources.list.d/mongodb-org-7.0.lis<br><br></pre><pre>sudo apt-get install -y mongodb-org<br>sudo echo $?<br>sudo service mongod start<br>sudo systemctl status  mongod.service</pre><p><strong>Docker installation</strong></p><pre>sudo apt update</pre><pre>sudo apt install apt-transport-https ca-certificates curl software-properties-common</pre><pre>curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -</pre><pre>sudo add-apt-repository &quot;deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable&quot;</pre><pre>sudo apt update<br>sudo apt install docker.io<br>docker --version<br>docker ps<br>sudo usermod -aG docker $USER<br>sudo reboot<br>docker ps   </pre><p><strong>Ngnix installation</strong></p><pre>sudo apt update<br>sudo apt install nginx<br>sudo systemctl start nginx<br>sudo systemctl enable nginx</pre><p><strong>for reverse proxy commands</strong></p><pre>sudo cp /etc/nginx/nginx.conf /etc/nginx/nginx.conf.backup</pre><pre>sudo nano /etc/nginx/nginx.conf</pre><pre>server {<br>    listen 80;<br><br>    server_name example.com;<br><br>    location / {<br>        proxy_pass http://localhost:3000;<br>        proxy_set_header Host $host;<br>        proxy_set_header X-Real-IP $remote_addr;<br>        proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;<br>        proxy_set_header X-Forwarded-Proto $scheme;<br>    }<br>}</pre><pre>sudo nginx -t<br>sudo systemctl reload nginx</pre><p><strong>step 6: Attach load balance for hiding public ip address</strong></p><p>creat load balance attach secruity group and target group</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*zn3fnvfoxtR7pqs1CpqKcw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*RqhP43QpQ6maiDByKi6f0g.png" /></figure><p>Done!</p><p>check the ur copy DNS name paste on browser</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*X8FP4Pqig-fiGlp_GBzzvg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*nRy2Y1gsgb-2EtIxb20BxQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*MtOxBCzQ-j59ouRI2Afuhg.png" /></figure><p><strong>Thanks for reading</strong></p><p>I hope found this useful?</p><p>If you found this guide is useful and helpful then please do click on the button and also feel free to drop a comment</p><p>✅Reshare this with others so that it helps more people</p><p>✅Tag your colleagues and friends who you think will need this</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e15885e7f8f2" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[AWS Interview Questions & Answers]]></title>
            <link>https://priyankakumari17.medium.com/aws-interview-questions-answers-f2c5cf5d4410?source=rss-ed966d6a5365------2</link>
            <guid isPermaLink="false">https://medium.com/p/f2c5cf5d4410</guid>
            <category><![CDATA[cloud-services]]></category>
            <category><![CDATA[cloud-computing]]></category>
            <category><![CDATA[aws-lambda]]></category>
            <category><![CDATA[aws]]></category>
            <dc:creator><![CDATA[priyanka kumari]]></dc:creator>
            <pubDate>Mon, 05 Feb 2024 21:53:38 GMT</pubDate>
            <atom:updated>2024-02-05T21:53:38.204Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/800/1*lOT7rOe7mTsS17KsXSa2nA.jpeg" /></figure><h3>Load Balancers:</h3><p><strong>1: Can we attach multiple target groups in one LB?</strong></p><p><strong>Ans:</strong>-Yes, we can attach multiple target groups in one load balancer.</p><p><strong>Q2: How to create an internal load balancer?</strong></p><p><strong>Ans:</strong> There are 2 types of load balancers: internet-facing and internal. Specify the type as internal during creation.</p><h3>Storage and Networking:</h3><p><strong>Q3: How to resize the EBS volume?</strong></p><p><strong>Ans:</strong> Go to edit the volume, select modify, and change the size, IOPS, etc.</p><p><strong>Q4: Can we attach the same EBS volumes to multiple instances?</strong></p><p><strong>Ans:</strong> No, we can’t. Use EFS for that purpose.</p><p><strong>Q5: What is the transit gateway in AWS?</strong></p><p><strong>Ans: </strong>A transit gateway is a network transit hub connecting virtual private clouds (VPCs) and on-premises networks.</p><h3>Auto Scaling and Instances:</h3><p><strong>Q6: What is the use of lifecycle hooks in Auto Scaling?</strong></p><p><strong>Ans:</strong> Lifecycle hooks in Amazon EC2 Auto Scaling allow custom actions during instance lifecycle events.</p><p><strong>Q7: I want to create the VPC, what cloud is the maximum CIDR range you can provide?</strong></p><p><strong>Ans: </strong>10.0.0.0/16 is the maximum CIDR range for a VPC.</p><p><strong>Q8: How do you add your system IP under the security group?</strong></p><p><strong>Ans:</strong> Find the IP using ifconfig command and add it to the security group.</p><h3>Subnets and Networking:</h3><p><strong>Q9: How do you identify public and private subnets?</strong></p><p><strong>Ans:</strong> Private subnets use specific IP ranges (Class A: 10.0.0.0 to 10.255.255.255, Class B: 172.16.0.0 to 172.31.255.255, Class C: 192.168.0.0 to 192.168.255.255). Public subnets cover other IP ranges.</p><p><strong>Q10: If an application is on an EC2 instance in a private subnet, how do you access it from a web browser?</strong></p><p><strong>Ans:</strong> Use a NAT Gateway and add a route in the private subnet’s route table.</p><h3>Networking and Security:</h3><p><strong>Q11: What is the use of a NAT gateway? Is it one-way communication or two-way communication?</strong></p><p><strong>Ans: </strong>NAT gateway facilitates two-way communication, allowing outbound connections from private devices and managing IP address translation.</p><p><strong>Q12: How to access a private instance from a local machine using a private IP?</strong></p><p><strong>Ans:</strong> Use VPN, SSH tunneling, or a bastion host/jump box for access.</p><h3>Application Access and Security:</h3><p><strong>Q13: How to access an application on a private subnet instance through a web browser?</strong></p><p><strong>Ans:</strong> Use NAT Gateway, set up a proxy server, or utilize VPN-based cloud services.</p><p><strong>Q14: How to provide S3 bucket access to specific IP ranges?</strong></p><p><strong>Ans:</strong> Use a custom IAM policy specifying the allowed IP ranges.</p><h3>Data Storage and Management:</h3><p><strong>Q15: How to move data from S3 standard storage class to Glacier monthly?</strong> <strong>Ans:</strong> Automate using AWS Lambda and CloudWatch Events, and set up an S3 Lifecycle policy.</p><h3>Load Balancer Types and Flow:</h3><p><strong>Q16: Do you know the types of Load Balancers?</strong></p><p><strong>Ans:</strong> Classic Load Balancer (CLB), Application Load Balancer (ALB), Network Load Balancer (NLB).</p><p><strong>Q17: Do you know the flow of application LB? End to end?</strong></p><p><strong>Ans:</strong> Describes the end-to-end flow from client request to response through an Application Load Balancer.</p><h3>Monitoring and Alerting:</h3><p><strong>Q18: If you have three instances in the target group, how do you know when one instance is down?</strong></p><p><strong>Ans: </strong>Set up automated monitoring and alerting using CloudWatch, alarms, SNS notifications, and Auto Scaling.</p><h3>Database Management:</h3><p><strong>Q19: Have you created any RDS instances? Specify multi-AZ and read replicas.</strong></p><p><strong>Ans:</strong> Multi-AZ provides high availability, and read replicas enhance scalability in Amazon RDS.</p><h3>Infrastructure as Code:</h3><p><strong>Q20: CloudFormation vs Terraform</strong></p><p><strong>Ans: </strong>CloudFormation is AWS-specific, while Terraform supports multiple cloud providers.</p><h3>AWS Services:</h3><p><strong>Q21: CloudTrail vs CloudWatch</strong></p><p><strong>Ans: </strong>CloudTrail is for auditing and tracking, while CloudWatch is for monitoring and logging.</p><h3>Containerization:</h3><p><strong>Q22: When to use AWS Fargate?</strong></p><p><strong>Ans: </strong>AWS Fargate is suitable for containerized applications, microservices, serverless container management, simplified operations, and scalability.</p><h3>Storage Options:</h3><p><strong>Q23: Can we use EFS as the root volume?</strong></p><p><strong>Ans: </strong>No, we can’t. Only EBS can be used as the root volume.</p><p><strong>Thanks for reading</strong></p><p>I hope found this useful?</p><p>If you found this guide is useful and helpful then please do click on the button and also feel free to drop a comment</p><p>✅Reshare this with others so that it helps more people</p><p>✅Tag your colleagues and friends who you think will need this</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f2c5cf5d4410" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[A Deep Dive into Grafana, Loki, and Promtail for Enhanced Insight ]]></title>
            <link>https://priyankakumari17.medium.com/a-deep-dive-into-grafana-loki-and-promtail-for-enhanced-insight-293363ad7ff0?source=rss-ed966d6a5365------2</link>
            <guid isPermaLink="false">https://medium.com/p/293363ad7ff0</guid>
            <category><![CDATA[loki]]></category>
            <category><![CDATA[cloud-computing]]></category>
            <category><![CDATA[devops]]></category>
            <category><![CDATA[grafana-loki]]></category>
            <category><![CDATA[grafana]]></category>
            <dc:creator><![CDATA[priyanka kumari]]></dc:creator>
            <pubDate>Sun, 14 Jan 2024 19:08:42 GMT</pubDate>
            <atom:updated>2024-01-14T19:08:42.777Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*gmqujv7x41JR830kZlIYDg.png" /></figure><p>Introduction: In the dynamic landscape of IT operations, observability is key to understanding and optimizing system performance. This journey takes us into the heart of Observability, where Grafana, Loki, and Promtail converge to provide a comprehensive solution. Let’s embark on a deep dive into these powerful tools and unravel their synergies.</p><p><strong>Grafana — </strong>The Central Nerve of Visibility: Grafana, a widely acclaimed open-source platform, takes the spotlight as the central hub for visualizing and analyzing metrics and logs. Renowned for its flexibility, Grafana empowers users to create customizable dashboards that offer real-time insights into the health and behavior of their systems. Our exploration begins here, at the interface where data comes to life.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*4tIWC3wSI3sLgZG6j5TKQw.png" /></figure><p><strong>Loki —</strong> Transformative Log Aggregation: Loki, born out of the Grafana Labs ecosystem, revolutionizes log aggregation. By adopting a label-based approach, Loki optimizes storage and search efficiency, paving the way for cost-effective and scalable log management. We’ll delve into Loki’s architecture, discovering how it seamlessly integrates with Grafana to create a unified observability platform.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*YJnWwn8KiCFlKews9nUdAQ.png" /></figure><p><strong>Promtail — </strong>The Agile Log Shipper: At the core of log shipping lies Promtail, the nimble agent designed to ship logs efficiently to Loki. Crafted by Grafana Labs, Promtail tailors log collection to Loki’s unique indexing system. Our exploration will unravel the role of Promtail in ensuring logs are swiftly and intelligently delivered, enhancing the overall observability experience.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*IcaiF5Q8OVzVuz6w1fwSMQ.png" /></figure><p><strong>Key Features and Advantages:</strong></p><ol><li><strong>Holistic Observability:</strong> Grafana acts as a centralized observability hub, providing a unified interface for metrics and logs.</li><li><strong>Resource Optimization: </strong>Loki’s label-based indexing minimizes storage requirements, optimizing resources without compromising efficiency.</li><li><strong>Agile Log Collection: </strong>Promtail streamlines the log shipping process, ensuring logs are efficiently transmitted to Loki for analysis.</li><li><strong>Real-time Insights:</strong> The combined power of Grafana, Loki, and Promtail enables real-time analysis, fostering rapid issue detection and resolution.</li><li><strong>Scalable Architecture: </strong>This observability trio scales seamlessly, adapting to the evolving needs of your infrastructure without sacrificing performance.</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*rjBV86Iph8-xrp13SDD09w.png" /></figure><p><strong>Conclusion: </strong>As we navigate the depths of Observability with Grafana, Loki, and Promtail, it becomes clear that this dynamic trio offers more than just monitoring — it provides a transformative experience. Whether you’re deciphering logs, analyzing metrics, or troubleshooting issues, the synergy between Grafana, Loki, and Promtail unlocks a new dimension of observability. Dive deep, explore the intricacies, and master the art of observing your systems with confidence and precision. 🚀</p><p><strong>Thanks for reading</strong></p><p>I hope found this useful?</p><p>If you found this guide is useful and helpful then please do click on the button and also feel free to drop a comment</p><p>✅Reshare this with others so that it helps more people</p><p>✅Tag your colleagues and friends who you think will need this</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=293363ad7ff0" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Layers of Cloud computing]]></title>
            <link>https://priyankakumari17.medium.com/layers-of-cloud-computing-b22a5803b3ac?source=rss-ed966d6a5365------2</link>
            <guid isPermaLink="false">https://medium.com/p/b22a5803b3ac</guid>
            <category><![CDATA[devops-practice]]></category>
            <category><![CDATA[aws-lambda]]></category>
            <category><![CDATA[cloud-computing]]></category>
            <category><![CDATA[aws]]></category>
            <category><![CDATA[devops]]></category>
            <dc:creator><![CDATA[priyanka kumari]]></dc:creator>
            <pubDate>Thu, 11 Jan 2024 14:24:54 GMT</pubDate>
            <atom:updated>2024-01-11T14:24:54.474Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/716/1*cMltl5d0za89SH6KDm3YcA.jpeg" /></figure><p><strong><em>Three main layers ofCloud computing</em></strong></p><p><strong>I. Infrastructure as a Service (IAAS):</strong></p><ul><li><strong>Definition:</strong> IAAS is a cloud computing service model that delivers virtualized computing resources over the internet. IAAS providers offer fundamental infrastructure components such as virtual machines, storage, and networking, allowing users to build, manage, and scale their own applications.</li><li><strong>Example (in AWS)</strong>: Amazon Elastic Compute Cloud (EC2) for virtual servers and Amazon Simple Storage Service (S3) for scalable object storage.</li></ul><ol><li><strong>Amazon Elastic Compute Cloud (EC2)</strong>: EC2 is a core IAAS service that allows users to rent virtual servers (instances) on which they can run their applications. Users have control over the configuration of these instances, including the choice of operating system, instance type, and network settings.</li></ol><p><strong>2. Amazon Simple Storage Service (S3)</strong>: S3 is a scalable object storage service in AWS, often considered an IAAS solution for storage. It provides durable and highly available storage infrastructure, allowing users to store and retrieve any amount of data.</p><p><strong>3. Amazon Virtual Private Cloud (VPC):</strong> VPC is a service that lets users provision a logically isolated section of the AWS Cloud where they can launch resources in a virtual network. It provides control over the virtual networking environment, including IP address ranges, subnets, and route tables.</p><p><strong>II. Platform as a Service (PAAS):</strong></p><ul><li><strong>Definition:</strong> PAAS is a cloud computing service model that provides a managed platform with tools and services designed to simplify and streamline the development, deployment, and scaling of applications. PAAS abstracts away much of the underlying infrastructure, allowing developers to focus on writing code.</li><li><strong>Example (in AWS):</strong> AWS Elastic Beanstalk for deploying and managing applications without dealing with the underlying infrastructure.</li></ul><ol><li><strong>AWS Elastic Beanstalk:</strong> Elastic Beanstalk is a fully managed service that simplifies the deployment and management of applications in various languages (Java, .NET, PHP, Node.js, Python, Ruby, Go, and Docker). It abstracts away the infrastructure details, allowing developers to focus on writing code.</li><li><strong>AWS Lambda: </strong>Lambda is a serverless computing service that falls under the PAAS category. Developers can upload their code, and Lambda takes care of automatically scaling and managing the compute resources needed to run the code in response to incoming requests or events.</li><li><strong>AWS App Runner: </strong>App Runner is a fully managed service that makes it easy for developers to quickly deploy containerized applications. It abstracts away the underlying infrastructure, enabling developers to concentrate on building applications without managing servers.</li></ol><p><strong>III. Software as a Service (SAAS):</strong></p><ul><li><strong>Definition:</strong> SAAS is a cloud computing service model where fully functional software applications are delivered over the internet. Users can access and use these applications through a web browser without the need for installation or local maintenance. SAAS providers handle the software’s infrastructure and maintenance.</li><li><strong>Examples:</strong> Salesforce for customer relationship management (CRM) and GitHub for version control and collaboration.</li></ul><ol><li><strong>Salesforce (as an example):</strong> Salesforce is a SAAS application that can be hosted on AWS. While AWS provides the infrastructure, Salesforce manages and delivers the CRM software application to users, including features like customer relationship management, sales automation, and marketing automation.</li><li><strong>GitHub (as an example): </strong>GitHub is a SAAS platform for version control and collaboration. While GitHub itself is not hosted on AWS, many organizations use AWS services to host their repositories, integrate with continuous integration tools, and deploy applications integrated with GitHub.</li></ol><p><strong>Thanks for reading</strong></p><p>I hope found this useful?</p><p>If you found this guide is useful and helpful then please do click on the button and also feel free to drop a comment</p><p>✅Reshare this with others so that it helps more people</p><p>✅Tag your colleagues and friends who you think will need this</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b22a5803b3ac" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Top 10 AWS DevOps Tools: Benefits & Features]]></title>
            <link>https://priyankakumari17.medium.com/top-10-aws-devops-tools-benefits-features-ba858ee1d49b?source=rss-ed966d6a5365------2</link>
            <guid isPermaLink="false">https://medium.com/p/ba858ee1d49b</guid>
            <category><![CDATA[devops]]></category>
            <category><![CDATA[cloud]]></category>
            <category><![CDATA[aws]]></category>
            <category><![CDATA[cloud-computing]]></category>
            <category><![CDATA[aws-devops]]></category>
            <dc:creator><![CDATA[priyanka kumari]]></dc:creator>
            <pubDate>Tue, 09 Jan 2024 13:13:09 GMT</pubDate>
            <atom:updated>2024-01-09T13:16:21.332Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/978/1*RxdlXTCKY_9lo20DdOV16A.jpeg" /></figure><h4>1.AWS CodeCommit:</h4><ul><li>Purpose: Source control service for hosting private Git repositories.</li><li>Key Features: Secure, scalable, integrates with other AWS services.</li></ul><h4>2. AWS CodeBuild:</h4><ul><li>Purpose: Fully managed build service for compiling source code, running tests, and producing software packages.</li><li>Key Features: Scales continuously, processes multiple builds concurrently, no need to manage build servers.</li></ul><h4>3.AWS CodeDeploy:</h4><ul><li>Purpose: Automates software deployments to various compute services (EC2, AWS Fargate, Lambda, on-premises servers).</li><li>Key Features: Reliable deployments, minimal downtime.</li></ul><h4>4.AWS CodePipeline:</h4><ul><li>Purpose: Continuous delivery service automating build, test, and deployment phases based on defined release models.</li><li>Key Features: Integration with other AWS services and third-party tools, flexible for various workflows.</li></ul><h4>5.AWS CloudFormation:</h4><ul><li>Purpose: Infrastructure as Code (IaC) service for describing and provisioning cloud resources.</li><li>Key Features: Uses a simple text file, automation, security, multi-region, and multi-account support.</li></ul><h4>6.AWS Elastic Beanstalk:</h4><ul><li>Purpose: Easy deployment and scaling of web applications and services.</li><li>Key Features: Supports multiple programming languages and environments, handles deployment details.</li></ul><h4>7. Amazon ECS and EKS:</h4><p>Purpose: Container management services for running containerized applications.</p><ul><li>Key Features: ECS supports Docker containers, EKS is a managed Kubernetes service.</li></ul><h4>8. AWS Lambda:</h4><ul><li>Purpose: Serverless computing service for running code without managing servers.</li><li>Key Features: Cost-effective, scalable, pay-per-use model.</li></ul><h4>9. AWS X-Ray:</h4><ul><li>Purpose: Distributed application analysis and debugging, especially for microservices architectures.</li><li>Key Features: Identifies and troubleshoots performance issues and errors.</li></ul><h4>10. Amazon CloudWatch:</h4><ul><li>Purpose: Monitoring and observability of AWS resources and applications.</li><li>Key Features: Monitors resource usage, application performance, and operational health.</li></ul><p>These services collectively provide a comprehensive set of tools for building, testing, deploying, and monitoring applications in a DevOps environment on the AWS cloud.</p><p><strong>Thanks for reading</strong></p><p>I hope found this useful?</p><p>If you found this guide is useful and helpful then please do click on the button and also feel free to drop a comment</p><p>✅Reshare this with others so that it helps more people</p><p>✅Tag your colleagues and friends who you think will need this</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ba858ee1d49b" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Deployed Three-tier architecture]]></title>
            <link>https://priyankakumari17.medium.com/deployed-3-tier-archtiture-in-aws-3df183bd72ca?source=rss-ed966d6a5365------2</link>
            <guid isPermaLink="false">https://medium.com/p/3df183bd72ca</guid>
            <category><![CDATA[aws]]></category>
            <category><![CDATA[devops-practice]]></category>
            <category><![CDATA[devops]]></category>
            <category><![CDATA[projects]]></category>
            <category><![CDATA[cloud-computing]]></category>
            <dc:creator><![CDATA[priyanka kumari]]></dc:creator>
            <pubDate>Sun, 07 Jan 2024 07:30:12 GMT</pubDate>
            <atom:updated>2024-01-08T09:10:31.265Z</atom:updated>
            <content:encoded><![CDATA[<p>In modern application development, the three-tier architecture has become a popular choice for building scalable and maintainable systems. This architectural pattern divides the application into three logical tiers: the display layer, the business logic layer, and the data storage layer. Each tier performs a specific function and can be managed independently, providing a departure from the monolithic approach.</p><p>Cloud computing platforms, such as Amazon Web Services (AWS), offer a wide range of services to empower developers in creating robust and scalable applications. In this post, we’ll explore the utilization of key AWS services — Elastic Compute Cloud (EC2), Auto Scaling Group, Virtual Private Cloud (VPC), Elastic Load Balancer (ELB), Security Groups, and Internet Gateway — to design and deploy a fault-resistant and highly available three-tier cloud infrastructure</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*F0FkwcDAD6u1f1JJrtdNtA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/504/1*7Wt6Ekps9KRSMExZTDZwEg.jpeg" /></figure><p><strong>Three-Tier Architecture Overview:</strong></p><p>The three-tier architecture is a fundamental design pattern for developing application A client-server design that is modular and comprises three tiers: presentation, application, and data. This is known as a 3-tier application architecture. Information is stored in the data tier, logic is managed by the application layer, and graphical user interfaces (GUIs) connect the presentation tier to the other two tiers. The three levels may or may not operate on the same physical server; they are logical and not physical.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*WVMMFjRg_IG16cqz0zne_g.png" /></figure><ol><li><strong>Presentation Tier:</strong></li></ol><ul><li>Manages the user interface and focuses on presenting information to users.</li><li>Ensures a positive and intuitive user experience.</li><li>Communicates with the application tier to request and display data.</li></ul><p>2. <strong>Application Tier:</strong></p><ul><li>Serves as the control center, encapsulating core business logic and application functionality.</li><li>Facilitates bidirectional communication between the presentation and data tiers.</li><li>Promotes modularity for adaptability and extension.</li></ul><p>3. <strong>Data Tier:</strong></p><ul><li>Houses databases or data storage systems for storing, managing, and retrieving information.</li><li>Forms the foundation, storing user data, application data, and configuration settings.</li><li>Communicates with the application tier through well-defined interfaces.</li></ul><p><strong>Key Characteristics:</strong></p><ul><li>Flexibility in deployment; tiers may or may not run on separate servers.</li><li>Modular design enhances scalability and optimization.</li><li>Facilitates efficient, scalable, and maintainable software development</li></ul><h3>How to do :-step</h3><h3>Step 1: Set Up Networking</h3><h4>1.1 Create a VPC:</h4><ul><li>Go to the AWS Management Console.</li><li>Navigate to the VPC dashboard.</li><li>Click on “Create VPC.”</li><li>Provide a name (e.g., MyVPC), set the CIDR block (e.g., 10.0.0.0/16), and click “Create.”</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*JfjBJkLwyj-2mRt-LwGLRQ.png" /></figure><h4>1.2 Create Subnets:</h4><ul><li>In the VPC dashboard, click on “Subnets.”</li><li>Click on “Create subnet.”</li><li>Choose the VPC created in step 1.1.</li><li>Create subnets for the web server, application server, and database server, each with a unique CIDR block.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*pxG9wXKBO8e4Rw4c2xbJkw.png" /></figure><h4>1.3 Internet Gateway and Route Tables:</h4><ul><li>Create an internet gateway and attach it to your VPC.</li><li>Edit the route tables for public subnets (e.g., web server subnet) to include a route to the internet gateway.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*0mbFuYkK5l9Ukz6gSFSAvg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*vlH2R6MVauZcxlG3JKT-FA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*HQG29oR4cucgQLZq0dpiSA.png" /></figure><h3>Step 2: Deploy Web Server</h3><h4>2.1 Launch EC2 Instance for Web Server:</h4><ul><li>Go to the EC2 dashboard.</li><li>Click on “Launch Instance.”</li><li>Choose an Amazon Linux AMI or your preferred operating system.</li><li>Configure the instance with the web server subnet and a security group allowing inbound traffic on port 80.</li><li>Launch the instance.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*SjL7yxSA_-LmMczG5w9W3A.png" /></figure><h4>2.2 Configure Web Server:</h4><ul><li>Connect to the EC2 instance using SSH.</li><li>Install a web server like Apache or Nginx.</li><li>Deploy your web application code or static content.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Tv5UFN2cEk59NyFE4IkhIw.png" /></figure><h3>Step 3: Deploy Application Server</h3><h4>3.1 Launch EC2 Instance for Application Server:</h4><ul><li>Follow similar steps as in Step 2.1, choosing the application server subnet.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*SjL7yxSA_-LmMczG5w9W3A.png" /></figure><h4>3.2 Configure Application Server:</h4><ul><li>Connect to the EC2 instance using SSH.</li><li>Install the necessary runtime and dependencies for your application.</li><li>Configure your application to connect to the database (note: details configured in the next step).</li><li>Deploy your application code.</li></ul><h3>Step 4: Set Up RDS for Database</h3><h4>4.1 Create RDS Instance:</h4><ul><li>Go to the RDS dashboard.</li><li>Click on “Create database.”</li><li>Choose the database engine (e.g., MySQL or PostgreSQL).</li><li>Configure the instance details, including the database name, username, and password.</li><li>Set the security group to allow traffic from the application server.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*lLCSZ-dLDsq3Krbb-2U1ew.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*i0rq6mYiti3bNptxAtQ_yg.png" /></figure><h4>4.2 Retrieve Database Connection Details:</h4><ul><li>Once the RDS instance is available, note down the endpoint, database name, username, and password.</li></ul><h3>Step 5: Configure Application to Use Database</h3><h4>5.1 Update Application Configuration:</h4><ul><li>Connect to the application server using SSH.</li><li>Update your application’s configuration files with the database connection details.</li></ul><h3>Step 6: Testing</h3><ul><li>Test the connectivity between the web server, application server, and database server to ensure everything is set up correctly.</li><li>Access your application via the web server’s public IP or domain.</li></ul><h3>Step 7: Optional — Scaling and High Availability</h3><ul><li>Consider setting up Auto Scaling for instances and an Elastic Load Balancer (ELB) for better scalability and availability.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*mHuUxqsiqiMnRMetB8GUcA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*0o-H1UgYWCl9DTqcMo0LDQ.png" /></figure><p>Do all configuration properly Follow documentaion the link to create machine:</p><p><a href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-lamp-amazon-linux-2023.html">https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-lamp-amazon-linux-2023.html</a></p><h4>Commands for php application server for each server</h4><p>sudo dnf update -y</p><p>sudo dnf install -y httpd wget php-fpm php-mysqli php-json php php-devel</p><p>sudo systemctl start httpd</p><p>sudo systemctl enable httpd</p><p>sudo systemctl is-enabled httpd</p><p>sudo usermod -a -G apache ec2-user</p><p>exit</p><p>groups</p><p>curl <a href="http://localhost/">http://localhost</a></p><p>sudo chown -R ec2-user:apache /var/www</p><p>sudo chmod 2775 /var/www &amp;&amp; find /var/www -type d -exec sudo chmod 2775 {} \;</p><p>find /var/www -type f -exec sudo chmod 0664 {} \;</p><p>sudo dnf install php-mbstring php-xml -y</p><p>sudo systemctl restart httpd</p><p>sudo systemctl restart php-fpm</p><p>cd /var/www/html</p><p>mkdir phpMyAdmin &amp;&amp; tar -xvzf phpMyAdmin-latest-all-languages.tar.gz -C phpMyAdmin — strip-components 1</p><p>rm phpMyAdmin-latest-all-languages.tar.gz</p><p>sudo systemctl is-enabled httpd</p><p>echo “PHP Server 1” &gt;index.html do for php server1</p><p>echo “PHP Server 2” &gt;index.html do for php server2</p><p>sudo systemctl is-enabled httpd</p><p>my-alb-902956905.ap-south-1.elb.amazonaws.com</p><p>after cd phpMyAdmin</p><p>mv config.sample.inc.php config.inc.php</p><p>vi config.inc.php</p><p>replace host with ALB DNS Name Entry</p><p>user data for ec2 instances</p><p>#!/bin/bash</p><p>yum update -y</p><p>yum update httpd -y</p><p>systemctl restart httpd</p><p>Application Server user data</p><p>#!/bin/bash</p><p>yum update -y</p><p>yum install -y apache-maven</p><p>yum install java-1.8.0-openjdk-devel.x86_64 -y</p><p>db-server</p><p>#!/bin/bash</p><p>yum update -y</p><p>yum install mysql</p><p>ssh-add -K dev-account.pem</p><p>ssh -A ec2-user@&lt;dns-name&gt;</p><p>ssh ec2-user@&lt;ip-address-application-server&gt;</p><p>Login to web-server OR jump server</p><p>from there login to php-app-server</p><p>install</p><p>sudo yum update -y</p><p>sudo amazon-linux-extras install -y lamp-mariadb10.2-php7.2 php7.2</p><p>sudo yum install -y httpd24 php72 mysql57-server php72-mysqlnd</p><p>sudo yum install -y httpd</p><p>sudo systemctl start httpd</p><p>sudo systemctl enable httpd</p><p>sudo systemctl is-enabled httpd</p><p>curl <a href="http://localhost/">http://localhost</a></p><p>sudo usermod -a -G apache ec2-user</p><p>sudo chown -R ec2-user:apache /var/www</p><p>sudo chmod 2775 /var/www &amp;&amp; find /var/www -type d -exec sudo chmod 2775 {} \;</p><p>find /var/www -type f -exec sudo chmod 0664 {} \;</p><p>sudo yum install php-mbstring php-xml -y</p><p>sudo systemctl restart httpd</p><p>sudo systemctl restart php-fpm</p><p>cd /var/www/html</p><p>echo “PHP Server 1” &gt;index.html do for php server1</p><p>echo “PHP Server 2” &gt;index.html do for php server2</p><p>mkdir phpMyAdmin &amp;&amp; tar -xvzf phpMyAdmin-latest-all-languages.tar.gz -C phpMyAdmin — strip-components 1</p><p>rm phpMyAdmin-latest-all-languages.tar.g</p><h4>Access the web app server using the URL from web</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/647/1*VXylfcegMHdWsXdJUETZAQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/914/1*JVD82pVVZpIX4eLpSDt02Q.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*F0FkwcDAD6u1f1JJrtdNtA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*FJo_TfNCN_rm6trP5DeFsQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*48NTEDUmMdtnv-SXue_Ccg.jpeg" /></figure><p>This step-by-step guide provides a practical overview of deploying a three-tier architecture on AWS. Adapt the steps based on your specific use case and application requirements. Always refer to AWS documentation for the latest information and best practices.</p><p><strong><em>Remember, don’t forget to delete all resources created and configured when you are done following the steps of this article. NAT Gateways, Elastic IPs, and ALBs do have a small cost. Please, ensure you delete them especially after following this article.</em></strong></p><p><strong>Thanks for reading</strong></p><p>I hope found this useful?</p><p>If you found this guide is useful and helpful then please do click on the button and also feel free to drop a comment</p><p>✅Reshare this with others so that it helps more people</p><p>✅Tag your colleagues and friends who you think will need this</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=3df183bd72ca" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Ansible and why it’s important]]></title>
            <link>https://priyankakumari17.medium.com/ansible-and-why-its-important-250c391191d8?source=rss-ed966d6a5365------2</link>
            <guid isPermaLink="false">https://medium.com/p/250c391191d8</guid>
            <category><![CDATA[ansible]]></category>
            <category><![CDATA[cloud-computing]]></category>
            <category><![CDATA[ansible-playbook]]></category>
            <category><![CDATA[devops]]></category>
            <dc:creator><![CDATA[priyanka kumari]]></dc:creator>
            <pubDate>Tue, 02 Jan 2024 06:47:33 GMT</pubDate>
            <atom:updated>2024-01-02T06:47:33.869Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*malyPE2lLxKGpWUeH14jMw.jpeg" /></figure><p>Ansible is a Python-based, open-source IT automation tool known for its simplicity and user-friendly command-line interface. It excels in configuring systems, deploying software, and orchestrating complex workflows. With a focus on ease of use, Ansible supports a range of tasks, from application deployment to system updates, making it a versatile solution for automating various aspects of IT operations.</p><p>it’s used to manage large groups of computer systems.</p><p>it allows you to maintain your systems in a desired state, and to configure multiple machines quickly and consistently. do write like this</p><p><strong>Benifits keys</strong></p><ul><li>Free and Open Source: Ansible is freely available, reducing costs and promoting accessibility</li><li>User-Friendly Setup: No special coding skills are required, making Ansible’s playbooks easy to set up and use.</li><li>Powerful Automation: Ansible handles highly complex IT workflows, providing a robust automation solution.</li><li>Flexibility in Orchestration: It orchestrates application environments across different deployments and allows customization as per specific needs.</li><li>Agentless Design: No additional software or firewall adjustments are needed on client systems, simplifying setup and maintenance.</li><li>Resource Efficiency: Ansible’s lightweight nature eliminates the need for extra software, optimizing server resources for applications.</li></ul><h4><strong>Why Ansible?</strong></h4><ul><li>It is free and Open Source.</li><li>It is Agentless. It doesn’t require any agent on client machines unlike other automation tool exists in the market (Puppet, Chef, Salt.). It uses SSH protocol to connect the servers. Ansible required Python to make the use of modules on client machines. Ansible also works with a system which doesn’t have python installed using the “raw” module.</li><li>It uses YAML language which is very easy to learn.</li><li>It Supported by Red Hat.</li></ul><h4>How it’s work?</h4><p>ansible orchestrates tasks from a control node to managed nodes via secure SSH connections, executing predefined tasks using YAML playbooks and modules, gathering system facts, ensuring idempotence, and providing detailed reports for streamlined and reliable IT automation.</p><h4><strong>Key Features of Ansible:</strong></h4><ol><li><strong>Configuration Management Simplified:</strong>Streamlined, reliable, and human-readable data for easy configuration management. Rapid setup with passwords or SSH keys.</li><li><strong>Effortless Application Deployment:</strong>Swift deployment of multitier applications without intricate coding. Ansible playbooks autonomously execute defined tasks.</li><li><strong>Seamless Orchestration:</strong>Facilitates harmonious coordination in automated workflows. The portability of Ansible playbooks ensures consistent orchestration across diverse environments.</li></ol><p><strong>4. Security and Compliance Integration:</strong>Integrates security measures into application deployment, enforcing site-wide policies. Admin credentials remain secure, reducing the necessity for manual oversight.</p><p><strong>5. Versatile Cloud Provisioning</strong>:Automates provisioning for cloud platforms, virtual hosts, networks, and bare-metal servers. Versatility in supporting comprehensive automation across varied IT environments.</p><h4>Ansible Architecture</h4><p><strong>Control Node:</strong>Acts as the command center, initiating and coordinating automation tasks. It holds playbooks, modules, and orchestrates communication with managed nodes.</p><p><strong>Managed Nodes:</strong>Remote systems targeted for automation, ranging from servers to network devices, where Ansible executes specified tasks.</p><p><strong>Inventory:</strong>A configurable file specifying details about managed nodes, allowing Ansible to understand the target hosts, their characteristics, and grouping for efficient automation.</p><p><strong>Playbooks:</strong>Written in YAML, playbooks serve as the declarative configuration specifying tasks, desired states, and sequences. They act as the guiding script for Ansible automation.</p><p><strong>Modules:</strong>Modular units of code executed on managed nodes to perform specific tasks. Ansible provides a diverse set of modules covering various aspects of system management, configuration, and deployment.</p><p><strong>Plugins:</strong>Extend Ansible’s functionality, enabling modifications to core behavior or the incorporation of additional features. Plugins facilitate integration with external tools and services.</p><p><strong>API (Application Programming Interface):</strong>A RESTful API provided by Ansible, allowing external systems to interact, automate, and extend its capabilities. This API supports seamless integration into broader IT workflows</p><p>THANKS FOR READING</p><p>I hope found this useful?</p><p>✅Reshare this with others so that it helps more people</p><p>✅Tag your colleagues and friends who you think will need this</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=250c391191d8" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>