<?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 Shraddha Bhalerao on Medium]]></title>
        <description><![CDATA[Stories by Shraddha Bhalerao on Medium]]></description>
        <link>https://medium.com/@shraddhabhalerao1499?source=rss-92948e66b61d------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*SIOUxwl-7aWkYqnK.jpg</url>
            <title>Stories by Shraddha Bhalerao on Medium</title>
            <link>https://medium.com/@shraddhabhalerao1499?source=rss-92948e66b61d------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Thu, 19 Nov 2026 16:28:27 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@shraddhabhalerao1499/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[It is possible to ping Google but not Facebook ??]]></title>
            <link>https://shraddhabhalerao1499.medium.com/it-is-possible-to-ping-google-but-not-facebook-8bbb6d8a5af0?source=rss-92948e66b61d------2</link>
            <guid isPermaLink="false">https://medium.com/p/8bbb6d8a5af0</guid>
            <dc:creator><![CDATA[Shraddha Bhalerao]]></dc:creator>
            <pubDate>Sun, 14 Mar 2021 18:28:58 GMT</pubDate>
            <atom:updated>2021-03-14T18:47:59.446Z</atom:updated>
            <content:encoded><![CDATA[<h3>It is possible to ping Google but not Facebook ??😱</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*5Fx8n9ykTjsg6pOQkjpqcQ.gif" /></figure><h3><strong>Task Description</strong></h3><blockquote><strong>Create a Setup so that you can ping google but not able to ping Facebook from the same system.</strong></blockquote><p>Let’s first understand what <em>ping</em> means:</p><p>A ping is a signal sent to a host that requests a response. It serves two primary purposes:</p><blockquote>to check if the host is available.</blockquote><blockquote>to measure how long the response takes.</blockquote><p>Start with practicle:</p><p>Step 1: Check the connectivity with internet and type</p><pre>ping -4 www.google.com</pre><p>If you see the following result then your internet is on and you can connect with google.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/809/1*M8MigMth2D36oJOtAF70cw.png" /></figure><p>Else you need to see the internet connection.</p><p>Next try with Facebook connectivity using</p><pre>ping -4 www.facebook.com</pre><p>this command result is shown in above image at the end.</p><p>We use ‘-4’ for the better understanding. The task of this parameter is convert the IPs from IPv6 to IPv4.</p><p>Next term is Route:</p><p>A <em>routing table</em> is a file containing information on how the information or packets should be transferred:</p><blockquote>the network path to all nodes or devices within a network.</blockquote><blockquote>It is a map used by routers and gateways to track paths.</blockquote><blockquote>The hop-by-hop routing is widely used.</blockquote><blockquote>The packet contains the routing table to reach the next hop, once reached, it will read the routing table again to reach the next hop.</blockquote><p>Step 2: use of route -n</p><ul><li>route -n : to list the routing table</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/814/1*XDI20YBjZ8FIf22qiblOEg.png" /></figure><p>We got the perfect result let’s move on.</p><p>Step 3: Save all IP in the ping.txt for future use.</p><p>i.e. gw (gateway IP): 192.168.0.1 (we get it from routing table ‘route -n’)</p><p>google_ip : 142.250.67.164 (we get it from ‘ping -4 www.google.com’ )</p><p>facebook_ip : 157.240.16.35 (we get it from ‘ping -4 www.facebook.com)</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/814/1*UHvVA9OqBhkNQcZEl0XNVg.png" /></figure><p>Step 4: We will block all connections from outside, i.e. it will stop pinging both <a href="http://www.google.com/">Google</a> and <a href="http://www.facebook.com/">Facebook</a> as well.</p><p>For this we used</p><pre>route del -net 0.0.0.0</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/813/1*Zc35CnhRv2IT_gKnaj3Nzw.png" /></figure><p>Check whether it is working or not by pinging to google and facebook</p><p>Hurrayyy!!! We did it!!!</p><p>Step 5 : We will add <a href="http://www.google.com/">Google</a> to the routing table.</p><ul><li>route add -net &lt;destination IP&gt; netmask &lt;netmask for destination IP&gt; gw &lt;gateway IP&gt; &lt;interface name&gt;</li></ul><pre>route add -net 142.250.67.0 netmask 255.255.255.0 gw 192.168.0.1 enp0s3 </pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/903/1*fykJMHgk2dQ1CIEJL2OiVw.png" /></figure><p>Then check the connectivity with google and facebook.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/906/1*8fiGh4DrFzV-ga_kX7TZgw.png" /></figure><p>Gooddddddd Jobbbbbbbb!!!!!!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=8bbb6d8a5af0" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How AL and ML beneficial for companies]]></title>
            <link>https://shraddhabhalerao1499.medium.com/how-al-and-ml-beneficial-for-companies-e195513da397?source=rss-92948e66b61d------2</link>
            <guid isPermaLink="false">https://medium.com/p/e195513da397</guid>
            <dc:creator><![CDATA[Shraddha Bhalerao]]></dc:creator>
            <pubDate>Wed, 21 Oct 2020 17:35:27 GMT</pubDate>
            <atom:updated>2020-10-21T17:35:27.190Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/600/1*_3E2_XqsbDZ8mdouq2-BAw.gif" /></figure><h3>What is AI?</h3><blockquote>It depends who you ask.</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/400/1*XgwJgF0EcYUShkNjqz8NeA.gif" /></figure><p>Back in the 1950s, the fathers of the field <a href="http://web.media.mit.edu/~minsky/">Minsky</a> and<a href="http://www-formal.stanford.edu/jmc/"> McCarthy</a>, described artificial intelligence as any task performed by a program or a machine that, if a human carried out the same activity, we would say the human had to apply intelligence to accomplish the task.</p><p>That obviously is a fairly broad definition, which is why you will sometimes see arguments over whether something is truly AI or not.</p><p>AI systems will typically demonstrate at least some of the following behaviors associated with human intelligence: planning, learning, reasoning, problem solving, knowledge representation, perception, motion, and manipulation and, to a lesser extent, social intelligence and creativity.</p><h3>What is ML?</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1000/1*WEAD6MgmIrFovo6PMTPlFg.gif" /></figure><p>Machine learning (ML) is a type of artificial intelligence (AI) that allows software applications to become more accurate at predicting outcomes without being explicitly programmed to do so. Machine learning algorithms use historical data as input to predict new output values.</p><p>Recommendation engines are a common use case for machine learning. Other popular uses include fraud detection, spam filtering, malware threat detection, business process automation (BPA) and predictive maintenance.</p><h3>Difference between AI and ML</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/243/1*RdRTFzC9pLuCIYqxb7UkrA.jpeg" /></figure><p>Artificial Intelligence (AI) and Machine Learning (ML) are two very hot buzzwords right now, and often seem to be used interchangeably.</p><p>They are not quite the same thing, but the perception that they are can sometimes lead to some confusion. So I thought it would be worth writing a piece to explain the difference.</p><p>Both terms crop up very frequently when the topic is Big Data, analytics, and the broader waves of technological change which are sweeping through our world.</p><p>In short, the best answer is that:</p><p>Artificial Intelligence is the broader concept of machines being able to carry out tasks in a way that we would consider “smart”.</p><p>And,</p><p>Machine Learning is a current application of AI based around the idea that we should really just be able to give machines access to data and let them learn for themselves.</p><h3>Types of machine learning</h3><p>Classical machine learning is often categorized by how an algorithm learns to become more accurate in its predictions. There are four basic approaches: supervised learning, unsupervised learning, semi-supervised learning and reinforcement learning. The type of algorithm a data scientist chooses to use depends on what type of data they want to predict.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/332/1*OUIXQIYl-A_KxH5Pyq28vw.png" /></figure><ul><li><strong>Supervised learning.</strong> In this type of machine learning, data scientists supply algorithms with labeled training data and define the variables they want the algorithm to assess for correlations. Both the input and the output of the algorithm is specified.</li><li><strong>Unsupervised learning.</strong> This type of machine learning involves algorithms that train on unlabeled data. The algorithm scans through data sets looking for any meaningful connection. Both the data algorithms train on and the predictions or recommendations they output are predetermined.</li><li><strong>Semi-supervised learning.</strong> This approach to machine learning involves a mix of the two preceding types. Data scientists may feed an algorithm mostly labeled training data, but the model is free to explore the data on its own and develop its own understanding of the data set.</li><li><strong>Reinforcement learning.</strong> Reinforcement learning is typically used to teach a machine to complete a multi-step process for which there are clearly defined rules. Data scientists program an algorithm to complete a task and give it positive or negative cues as it works out how to complete a task. But for the most part, the algorithm decides on its own what steps to take along the way.</li></ul><h3>Apple</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/308/1*9R5EpEsv3_NXFxNFxzVo5g.jpeg" /></figure><p>There might be a perception that Apple is late to the machine learning party, but that’s probably not true, especially since it was the first to launch a voice assistant on a smartphone.</p><p>Millions of people talk to Siri, even if we don’t, and Apple is looking to extend the application of the talking assistant through its new smart home device or speaker, the HomePod.</p><p>Amazon’s Alexa-powered Echo devices and Google Home Assistant for competition, Apple has its work cut out.</p><p>But if these companies do take the competition seriously, the inevitable result will be the technology improves and the end user benefits.</p><p>Apple has also been active in acquisitions — second only to Google. One of the more notable purchases has been Lattice Data, which has a machine learning system for converting unstructured data — like random text and pictures — into structured data.</p><p>Apple paid $200 for Lattice Data, according to 9to5Mac.com.</p><p>The company has also allocated significant resources for the development of in-house machine learning systems, many of which are available through its developer program.</p><h3>Google</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/299/1*5a5sghgz5HOyRm3dnScpyg.jpeg" /></figure><p>Google is regarded by experts to be the most advanced company in the field of AI, machine learning and deep learning.</p><p>The main reason for this is probably the amount of money the company has spent acquiring startups — Google has spent more than any other, according to CB Insights.</p><p>Whether it’s something it acquired or developed in-house, Google last week launched an AI chatbot which answers your messages for you — like a more sophisticated auto-response email — in a range of contexts, including Skype, Slack and Twitter direct messages.</p><p>But Google’s strongest point in this area is probably the range of cloud-based services it offers developers, including the Google Cloud AI machine learning tools.</p><p>It’s worth noting that Facebook, Microsoft and others are encouraging the development of chatbots for use in their messenger apps.</p><p>And although chatbots have had some bad publicity for using profane language and displaying signs of burgeoning bigotry, chatbots can be useful in filtering out spam and, er, bigotry, ironically enough.</p><p>There are, of course, other companies offering similar services, and we will mention some of them below. But, without evaluating them on a technical level, we can’t really say if one is better than the other — it’s just our perceptions about a range of factors.</p><h3>Intel</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/310/1*8ANErttZ6s995mIy7qiq5g.jpeg" /></figure><p>Data processing for artificial intelligence or machine learning applications is said to be slightly different from other types.</p><p>Whatever the details, experts say that a new generation of chips being built will be more capable of running AI and machine learning apps.</p><p>Still the largest chipmaker in the world, Intel clearly does not want to miss out on this nascent market, and has been active in acquisitions.</p><p>One of the largest purchases Intel made in the past few years is the $400 million acquisition of Nervana Systems, which build chips for data centre servers.</p><p>Nervana chips are said to be able to transfer data in and out at 2.4 terabytes per second at very low latency. That is supposed to be five to 10 times faster than the fastest input-out interfaces for traditional chips, according to a report on Forbes.</p><p>Similarly fast chips for AI have been released by Google and Nvidia, among others, so this could be a critical area of competition for Intel. Amazon is also said to be developing a custom chip for its Alexa AI system, according to TheVerge.com.</p><h3>Twitter</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/284/1*V8iuzE824u9-QFrf7EuzQw.jpeg" /></figure><p>Although Twitter has been one of the world’s largest social networks for many years, it hasn’t been profitable until very recently.</p><p>One of the reasons it has seen an increase in revenues leading to profitability is said by analysts to be a change in the way main feed items are chosen by its competitor Facebook.</p><p>Facebook is said to have changed the algorithm for choosing main feed items to include fewer news items from recognised media outlets in favour of items from friends and family.</p><p>Whatever the reason for Twitter’s profitability, using machine learning to try and choose what people might be interested in is something of great interest to tech companies.</p><h3>Microsoft</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/275/1*8Jc7SQH5JtG7OJIkGPU1VA.png" /></figure><p>Microsoft has actually been the third-biggest spender on acquisitions over the past five years, according to CB Insights.</p><p>The company is well and truly into the internet market, especially after its $26 billion purchase of LinkedIn a couple of years ago.</p><p>LinkedIn may provide the best platform for Microsoft to showcase the enterprise applications it develops based on machine learning.</p><p>But probably the most significant acquisition Microsoft made in the machine learning space was Maluuba, which the tech giant says has “one of the world’s most impressive deep learning research labs for natural language understanding”.</p><p>Voice computing does seem to be the key area of competition between tech giants because success in this field would open up more than just voice search. It would make typing and many other tasks unnecessary.</p><h3>Thank You for reading!!!!!😊</h3><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e195513da397" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Use of Google Cloud Platform to Deploy Application]]></title>
            <link>https://shraddhabhalerao1499.medium.com/use-of-google-cloud-platform-to-deploy-application-43b2450486d?source=rss-92948e66b61d------2</link>
            <guid isPermaLink="false">https://medium.com/p/43b2450486d</guid>
            <dc:creator><![CDATA[Shraddha Bhalerao]]></dc:creator>
            <pubDate>Sat, 10 Oct 2020 18:51:50 GMT</pubDate>
            <atom:updated>2020-10-10T18:51:50.398Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/800/1*czvs-vQHdVXudAFudSuiiw.gif" /></figure><p><strong>Google Cloud Platform</strong> (<strong>GCP</strong>), offered by Google, is a suite of cloud computing services that runs on the same infrastructure that Google uses internally for its end-user products, such as Google Search, Gmail, file storage, and YouTube. Alongside a set of management tools, it provides a series of modular cloud services including computing, data storage, data analytics and machine learning. Registration requires a credit card or bank account details.</p><blockquote>Google Cloud Platform provides infrastructure as a service, platform as a service, and server less computing environments.</blockquote><p>In April 2008, Google announced App Engine, a platform for developing and hosting web applications in Google-managed data centers, which was the first cloud computing service from the company. The service became generally available in November 2011. Since the announcement of the App Engine, Google added multiple cloud services to the platform.</p><blockquote>Google Cloud Platform is a part of <strong>Google Cloud</strong>, which includes the Google Cloud Platform public cloud infrastructure, as well as <strong>G Suite</strong>, enterprise versions of Android and Chrome OS, and application programming interfaces (APIs) for machine learning and enterprise mapping services.</blockquote><p>Before start the task first we are going to understand the aim of this task:</p><p>1. We are going to create multiple projects namely developer and production.</p><p>2. Create VPC network for both the projects.</p><p>3. Create a link between both the VPC networks for that use the VPC peering</p><p>4. Create a Kubernetes Cluster in developer project and launch any web application with the Load balancer port 80.</p><p>5. Create a SQL server in the production project and create a database.</p><p>6. Connect the SQL database to the web application and launched in the Kubernetes cluster.</p><p>Let’s start with the actual steps:</p><p>Step 1 : First create one project.</p><p>This project is like workspace where all activities for launch an application are happen within this project</p><p>Here, I am going to use Qwiklabs so they already provide the lab,</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*4h4Wf9HpKBEnvk20CrBgMQ.png" /></figure><p>Step 2: Create two VPC in different region and connect them using VPC peering.</p><p>Now for 2 VPC in different I am going to create 1st VPC in asia-northeast1 region(Japan) and 2nd VPC in US-east1. As shown below:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*hUwDP4pcO-c0s2VMPdKLuA.png" /></figure><blockquote>VPC1</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*dzSCN0HEaX2x6oRWf4fxwg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*GN19XcycQNFR14h8A6_JbA.png" /></figure><blockquote>VPC 2</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*8lvOuQtmZwkowZ2JG1Hqyg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*vGvD-9JuCk4XgiKXvyfpdw.png" /></figure><p>Let’s check using GUI VPC are created or not</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*_xLZVa5peeI9JtZA9bEzgg.png" /></figure><p>VPC peering</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*rab13SbziA3Xu3YGsBvXvw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*3dhx5LwJPiFzwq9J_r_fcA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*qvXOAXCdzdsp1Joe6IgovA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*lkyp6qIl3uCgAFg7TnUmjA.png" /></figure><p>Step 3 : Create firewall rule that allow all clients.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*FtGUBDLmyC5FJO9RdM4iJQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ko5mq76KhLB236AhdKE4xw.png" /></figure><p>Check your Firewall rule using GUI:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*R_B_fz6xAmoD82p6Wg6Y2w.png" /></figure><p>Step 4 : Create a Kubernetes Cluster in developer project and launch any web application with the Load balancer port 80.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*vwiX4H-1_DDB-UeesMsBqw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*GPpGTF4kEmhVs-Rw5elpgg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*HPZfnRlOfUibVKpV_O1lew.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*k3nQD4NZpeXARKt2a-u6Vg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*tyhEEVt7m3Ogres8FHaraw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*M3Ia4W2KnmwmuVyhK6YZVw.png" /></figure><p>Cluster take time to create so have patience and checkout your social media for 5 min😉😉😉</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*dUZvDGt-xaaTLxAQJqXFMg.png" /></figure><p>Woohhhh!!! Cluster created successfully.</p><p>Now time for google cloud shell 🤩🤩</p><p>Use following command to login using CLI:</p><pre>&gt; gcloud auth login</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/910/1*FGK8uoAXM-QxYFj6m_cOPQ.png" /></figure><p>To check how many project are there use command:</p><pre>&gt; gcloud projects list</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/880/1*OX4A5lNG8bWJDlwtszbkKw.png" /></figure><p>To communicate with kubernetes cluster running on Google Cloud we have to update the kubeconfig file such that kubectl command is configured to contact to Google Kubernetes Engine .</p><pre>&gt; gcloud container clusters get-credentials (cluster_name) --region (cluster_region) --project (project_name)</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*FHeLWwXDtxaMfmUq-SXpcA.png" /></figure><p>Check cluster information using command:</p><pre>&gt; kubectl get nodes</pre><p>Step 5 : Using WordPress image deploy the WordPress application using kubernetes .</p><p>For that use command:</p><pre>&gt;kubectl create deployment (name) --image=(image_name)</pre><p>For the port 80 follow below command:</p><pre>&gt; kubectl expose deployment (deployment_name) --type=LoadBalancer --port=80</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*QjWvjkUjfjXFIQvIVZgWUA.png" /></figure><p>Step 6 : Create a SQL server in the production project and create a database.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*owIquFe4SaWX9BFDO4rt-w.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*KrIMOsMECmdt1qMsOVgP4A.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*knhB2ecOZBS84G5Tqopi_w.png" /></figure><p>Step 7 : Connect the SQL database to the web application and launched in the Kubernetes cluster.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*9eInFxTCpkG1gU9vYWDTpQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/863/1*-jRUBPMbRVwYiGl7t8PikA.jpeg" /></figure><p>Copy this url into the chrome url section for output:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*8Bm9Z6QS0YxtGYR2eBcq9w.png" /></figure><p>Hurayyyyy!!! Application launched successfully…</p><p>Thank you for reading!!!😍😍</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=43b2450486d" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Deployment of WordPress on AWS using RDS]]></title>
            <link>https://shraddhabhalerao1499.medium.com/deployment-of-wordpress-on-aws-using-rds-adf0293aa0c?source=rss-92948e66b61d------2</link>
            <guid isPermaLink="false">https://medium.com/p/adf0293aa0c</guid>
            <dc:creator><![CDATA[Shraddha Bhalerao]]></dc:creator>
            <pubDate>Fri, 09 Oct 2020 20:24:09 GMT</pubDate>
            <atom:updated>2020-10-09T20:24:09.657Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*UgQePmfL-FpBzYDE_dmtzg.jpeg" /></figure><h4>What is RDS in AWS?</h4><p>Amazon Relational Database Service (Amazon RDS) makes it easy to set up, operate, and scale a relational database in the cloud. It provides cost-efficient and resizable capacity while automating time-consuming administration tasks such as hardware provisioning, database setup, patching and backups. It frees you to focus on your applications so you can give them the fast performance, high availability, security and compatibility they need.</p><p>Amazon RDS is available on several database instance types — optimized for memory, performance or I/O — and provides you with six familiar database engines to choose from, including Amazon Aurora, PostgreSQL, MySQL, MariaDB, Oracle Database, and SQL Server. You can use the AWS Database Migration Service to easily migrate or replicate your existing databases to Amazon RDS.</p><h4>Amazon RDS database engines</h4><blockquote>We are going to use MySQL……</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/707/1*8s0tRK_ZgaPaFVCOTzJZyQ.gif" /></figure><p>Aim of the task step by step :</p><p>1. Write an Infrastructure as code using terraform, which automatically deploy the Wordpress application</p><p>2. On AWS, use RDS service for the relational database for Wordpress application.</p><p>3. Deploy the Wordpress as a container either on top of Minikube or EKS or Fargate service on AWS</p><p>4. The Wordpress application should be accessible from the public world if deployed on AWS or through workstation if deployed on Minikube.</p><p><strong><em>Step1: Write an Infrastructure as code using terraform, which automatically deploy the Wordpress application</em></strong></p><p>For this first we have to start minikube by the command</p><pre>&gt; minikube start</pre><p>in the command prompt i.e cmd</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1019/1*kaUDVQngQL4fKz51W93Wiw.png" /></figure><p>Now time for the terraform code which is below:</p><pre>provider &quot;kubernetes&quot; {<br>  config_context_cluster = &quot;minikube&quot;<br>}<br>resource &quot;kubernetes_service&quot; &quot;webservice&quot; {<br>  metadata {<br>    name = &quot;wordpress&quot;<br>  }<br>  spec {<br>    selector = {<br>      app = &quot;wordpress&quot;<br>    }<br>    session_affinity = &quot;ClientIP&quot;<br>    port {<br>      port        =    80<br>      target_port = 80<br>      node_port = 30000<br>    }<br>type = &quot;NodePort&quot;<br>  }<br>}<br>resource &quot;kubernetes_deployment&quot; &quot;deployment&quot; {<br>  metadata {<br>    name = &quot;wordpress&quot;<br>    labels = {<br>       app = &quot;wordpress&quot;<br>    }<br>  }<br>spec {<br>    replicas = 3<br>selector {<br>      match_labels = {<br>         app = &quot;wordpress&quot;<br>      }<br>    }<br>template {<br>      metadata {<br>        labels = {<br>          app = &quot;wordpress&quot;<br>        }<br>      }<br>spec {<br>        container {<br>          image = &quot;wordpress&quot;<br>          name  = &quot;wordpress&quot;<br>        }<br>      }<br>    }<br>  }<br>}</pre><p>Using this code we are going to deploy the wordpress application.</p><p>As we know for every terraform code first we have to initialize the file using command:</p><pre>&gt;terraform init</pre><p>This command provide all plugins that we need to run the code</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/968/1*8D4rN0ooKvwqknhHPKcaSg.png" /></figure><p>Check our plan using command:</p><pre>&gt;terraform plan</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/683/1*zOyspuc9fuUp7Q2wEfmCaw.png" /></figure><p>Now to finally deploy the Kubernetes Infrastructure use the following command :</p><pre>&gt;terraform apply --auto-approve</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/659/1*gQN8zm9D2wtlJiAdKTrzyQ.png" /></figure><p>Step 2: Lauch AWS RDS using terraform code</p><pre>provider &quot;aws&quot; {<br>    region = &quot;ap-south-1&quot;<br>    profile = &quot;shraddha&quot;<br>}resource &quot;aws_db_instance&quot; &quot;shmysql&quot; {<br>  allocated_storage    = 20<br>  storage_type         = &quot;gp2&quot;<br>  engine               = &quot;mysql&quot;<br>  engine_version       = &quot;5.7.30&quot;<br>  instance_class       = &quot;db.t2.micro&quot;<br>  name                 = &quot;shraddha_sql&quot;<br>  username             = &quot;shraddha&quot;<br>  password             = &quot;shraddha&quot;<br>  port         = &quot;3306&quot;<br>  parameter_group_name = &quot;default.mysql5.7&quot;<br>  iam_database_authentication_enabled = true<br>  vpc_security_group_ids = [&quot;<a href="https://ap-south-1.console.aws.amazon.com/vpc/home?region=ap-south-1#SecurityGroup:groupId=sg-043f140f8508d1862">sg-043f140f8508d1862</a>&quot;]<br>  skip_final_snapshot  =  true<br>tags = {<br> Name = &quot;shmysql&quot;<br>}<br>}</pre><p>Launch your instance using command:</p><pre>&gt;terraform apply --auto-approve</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/957/1*quXCeX7g_hU36zUCo4ZKrQ.png" /></figure><p>Now check RDS using GUI:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/827/1*TjHO6bQAYL9RR898WWMG9Q.png" /></figure><p>Get the url using command :</p><pre>&gt; minikube service wordpress --url</pre><p>And paste that url into the browser url section:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/850/1*O0GwhKDfp5uwKYy4hzrR9g.png" /></figure><p>And here your wordpress hosted successfully</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*xGlXdV6EFWA1ec72TqmFFA.jpeg" /></figure><p>See you again!!!!!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=adf0293aa0c" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[OLX Autos Delivers a Seamless Online Marketplace by Running Containers on AWS]]></title>
            <link>https://shraddhabhalerao1499.medium.com/olx-autos-delivers-a-seamless-online-marketplace-by-running-containers-on-aws-f3c01259e760?source=rss-92948e66b61d------2</link>
            <guid isPermaLink="false">https://medium.com/p/f3c01259e760</guid>
            <dc:creator><![CDATA[Shraddha Bhalerao]]></dc:creator>
            <pubDate>Wed, 23 Sep 2020 14:03:10 GMT</pubDate>
            <atom:updated>2020-09-23T14:03:10.755Z</atom:updated>
            <content:encoded><![CDATA[<p>OLX Autos runs India’s leading consumer-to-consumer marketplace, Panamera, for pre-owned cars and motorbikes, mobile phones, household items, jobs, and real estate. Part of the OLX Group, the Panamera online trading marketplace is active in 12 countries.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*9BKkl_jYQ6xmsMjXoc9p8g.jpeg" /></figure><blockquote><strong>“Using AWS has kept our environment running in a stable manner in the most cost-optimized way.”</strong></blockquote><blockquote>Abhishek Tomar<br><em>Infrastructure Head, OLX Autos</em></blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*wNeNcmGUHk0yeqoqJZbe4A.gif" /></figure><h3><strong><em>Empowering People with Innovative Services</em></strong></h3><blockquote>OLX Autos has a mission to empower people to upgrade their lives through its online marketplace of services and used products that deliver superior customer value. As part of the OLX Group, which operates more than 20 brands across 30 countries, OLX Autos combines the agility of a startup with the maturity of a global entity. With a mission to shape the future of trade, OLX Autos is passionate about the use of cutting-edge technology to enhance the customer experience.</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/736/1*uOOiZAGP9-abwvVYjvGcJA.gif" /></figure><blockquote>India is among the top growth markets for OLX Autos globally. The company has a highly innovative technology team running its Panamera classifieds marketplace, which is active in 12 countries, on the Amazon Web Services (AWS) Cloud. To unlock maximum value for its users, OLX Autos is committed to investing in its people and the latest technology.</blockquote><h3>Modernizing Complex Architecture</h3><blockquote>In 2018, OLX Autos experienced an outage on its site when its internal certificates for OpenShift containerization software expired. The business was using OpenShift version 3.5 to manage its infrastructure and to deploy applications on its site running in Docker containers. As part of the company’s commitment to support customers with a smooth experience, engineers quickly identified the issue and rolled out new certificates immediately. However, they had to invest a significant amount of time to restore the website. The team concluded that their staging environment was unstable due to issues with the control panel on OpenShift and began seeking ways to modernize their technology stack.</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*t8VqQLuzRl20cYSX_7XwLg.gif" /></figure><blockquote>Abhishek Tomar, infrastructure head at OLX Autos, says, “Buyers and sellers could not search, see new ads, or create new listings during the outage. We realized that even if we experienced just one crash a year, it would still be better to offload the control and management plane to AWS. Our customers were not able to access our marketplace in the several hours that were spent resolving the issue, resulting in customer dissatisfaction.”</blockquote><blockquote>OLX Autos engineers needed to rapidly upgrade the site’s architecture and decided to perform a proof of concept for hosting a self-managed Kubernetes cluster versus using Amazon Elastic Kubernetes Service (Amazon EKS). “We decided on Amazon EKS because it was more flexible than the OpenShift cluster,” says Nikhil Sharma, the chapter lead site reliability engineer (SRE) at OLX Autos who led the migration.</blockquote><h3>Seamlessly Migrating 124 Microservices</h3><blockquote>OLX Autos initiated a discussion with the AWS team a year before beginning the migration. “First, we reached out to AWS Enterprise Support for advice on the best migration strategy,” says Sharma. OLX Autos was simultaneously upgrading its operating system, Kubernetes, and Docker versions, and the complexity of its OpenShift architecture in addition to the software version limitations made the migration particularly challenging. The OLX Autos SRE team planned the migration strategy and started moving their staging environment to AWS in January 2020. “We got immediate support from AWS to resolve any issues in the staging environment, which helped us migrate smoothly to a production environment,” Sharma says.</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/680/1*n-oSvIz5yMzPd4nMjRpI6w.gif" /></figure><blockquote>The AWS team presented a roadmap for potential new Panamera features using Amazon EKS in addition to other AWS services. OLX Autos then started building an Amazon EKS cluster and migrating selected workloads from OpenShift, with the rollout completed in just a few weeks. OLX Autos has now migrated all 124 of its microservices to Amazon EKS, which has improved efficiency and scalability while unlocking cost savings.</blockquote><h3>Gaining Productivity</h3><blockquote>Since the migration, OLX Autos infrastructure teams are now better placed to meet key internal product development deadlines. The business was initially using the Puppet configuration tool to manage its OpenShift software. Engineers needed to rely on their Puppet skill sets and spent three to four days a month rolling out and monitoring important updates to the OLX Autos infrastructure.</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/780/1*SdhzyJ5hKm4CvtQo4rXRvw.gif" /></figure><blockquote>With the AWS migration, the company has removed Puppet from its architecture and offloaded container management to AWS. By running on Amazon EKS, the OLX Autos website benefits from improved performance and scalability, and engineers can reallocate their time to higher value-added tasks.</blockquote><h3>Scaling in Minutes and Improving Uptime</h3><blockquote>When OLX Autos was running an old version of OpenShift, the company experienced issues with autoscaling, which caused interruptions to its applications. “Now with Amazon EKS, our Amazon Elastic Compute Cloud (Amazon EC2) Fleet gets autoscaled in a couple of minutes whenever any marketing campaigns cause a surge or a sudden spike in traffic. If online traffic drops, the fleet gets scaled down — something we were not able to do smoothly before with OpenShift,” says Tomar.</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/711/1*fASVDQRPAom_LhwiuUiPBA.gif" /></figure><blockquote>OLX Autos has also offloaded the critical task of administering Secure Sockets Layer (SSL)/Transport Layer Security (TLS) certificates to AWS Certificate Manager. Previously, teams had to manually procure and deploy new certificates each year, but with AWS, new certificates are deployed with a few simple API calls. “It’s a relief that AWS will now be taking care of that,” says Tomar. “We don’t have to invest a single minute in checking and updating certificates, which could impact key timelines for our business.”</blockquote><h3>Unlocking Savings with Reserved Instances</h3><blockquote>OLX Autos had booked a number of Amazon EC2 Reserved Instances for type C5 instances but was unable to use them with the older version of OpenShift. “Because of this migration and the version upgrade, we migrated all our C4 instances to C5 and could leverage Reserved Instances pricing. That has ultimately saved us 33 percent of compute costs,” says Tomar.</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ChdRcRnUycvkIEJmmwfltA.gif" /></figure><blockquote>OLX Autos has also benefited from the AWS container network interface (CNI) plug-in, which was blocked with its previous OpenShift configuration. The CNI plug-in has not only improved application latency, but OLX Autos also expects to save at least 10 percent on its overall monthly AWS bill with more efficient applications. Tomar says, “Using AWS has kept our environment running in a stable manner in the most cost-optimized way.”</blockquote><h3>Benefits of AWS</h3><ul><li>Autoscales architecture during surges in visitor traffic</li><li>Saves 33% on compute costs</li><li>Improves application latency</li><li>Facilitates smooth migration of 124 microservices into production</li><li>Gains 3–4 days a month by eliminating software monitoring and maintenance</li><li>Reallocates IT team to value-added innovation tasks</li></ul><h4>AWS Services Used</h4><blockquote><a href="https://aws.amazon.com/eks/"><em>Amazon Elastic Kubernetes Service</em></a></blockquote><blockquote><a href="https://aws.amazon.com/ec2/pricing/reserved-instances/">Amazon EC2 Reserved Instances</a></blockquote><blockquote><a href="https://aws.amazon.com/certificate-manager/">AWS Certificate Manager</a></blockquote><blockquote><a href="https://aws.amazon.com/premiumsupport/plans/enterprise/">AWS Enterprise Support</a></blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1000/1*w1t09CY1GS-mMhSlT0o-Iw.gif" /></figure><p>For Reading…..</p><p>Hope this blog is helpful 🤗🤗</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f3c01259e760" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Launching VPC using NAT Gateway for hosting WordPress on AWS]]></title>
            <link>https://shraddhabhalerao1499.medium.com/launching-vpc-using-nat-gateway-for-hosting-wordpress-on-aws-f867e18b817a?source=rss-92948e66b61d------2</link>
            <guid isPermaLink="false">https://medium.com/p/f867e18b817a</guid>
            <dc:creator><![CDATA[Shraddha Bhalerao]]></dc:creator>
            <pubDate>Sat, 19 Sep 2020 18:14:37 GMT</pubDate>
            <atom:updated>2020-09-19T18:14:37.810Z</atom:updated>
            <content:encoded><![CDATA[<p>What is NAT gateway😫😫 this question comes in mind after reading the tittle of blog then let’s see:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*TEnqlIj40ioRBEU92ll33w.png" /></figure><h3>NAT gateway:</h3><blockquote>You can use a network address translation (NAT) gateway to enable instances in a private subnet to connect to the internet or other AWS services, but prevent the internet from initiating a connection with those instances. To create a NAT gateway, you must specify the public subnet in which the NAT gateway should reside. .You must also specify an Elastic IP address to associate with the NAT gateway when you create it. The Elastic IP address cannot be changed after you associate it with the NAT Gateway.</blockquote><blockquote>After you’ve created a NAT gateway, you must update the route table associated with one or more of your private subnets to point internet-bound traffic to the NAT gateway. This enables instances in your private subnets to communicate with the internet. Each NAT gateway is created in a specific Availability Zone and implemented with redundancy in that zone. You have a quota on the number of NAT gateways you can create in an Availability Zone.</blockquote><h3><strong>Problem statement:</strong></h3><ol><li>Write a code to create a VPC in AWS and create public as well as private subnet.</li><li>Create a public facing internet gateway and attach it to our VPC.</li><li>Create a routing table for internet gateway so that instance can connect to outside world, update and associate it with public subnet.</li><li>Create a NAT gateway to connect our VPC network to the internet world and attach this gateway to our VPC in the public subnet.</li><li>Update the routing table of private subnet ,so that it can access the internet by using the NAT gateway.</li><li>Launch an EC2 instance which has WordPress setup having security group allowing port 80 for our clients to connect to our WordPress site.Also attach the key to instance and do the same thing with MySQL allowing port 3306.</li><li>WordPress instance has to be a part of public subnet so that our clients can connect to our site. MySQL instance has to be a part of private subnet so that anybody from outside world cannot initiate a connection to our instance.</li></ol><p>Let’s start step by step:</p><p><strong>We have to create the environment to complete the task successfully</strong></p><ol><li><em>First go to</em> <em>AWS management console, under services go to the IAM and add a new user ,also give the administrator access. After adding the user, we will get access credentials, save that CSV file of credentials.</em></li><li><em>Now open windows command prompt (cmd) and write the command as below: aws configure — profile &lt;profilename&gt; (put access and secret key from csv file, also add whatever region your going to use for infrastructure &amp; use output format are json).</em></li><li><em>Create workspace for terraform code then get (cd) into your workspace, and notepad to write code or you can use visual studio code.</em></li></ol><p>Now, let’s start with code</p><p><strong><em>Step 1: Login to CLI and configure your AWS.</em></strong></p><p>Provide credential to the CLI as well as to the terraform code of the IAM User account that we created before and the region that you’re going to use for the infrastructure.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/840/1*3t9OcJGC4jHm1IecpgEoCw.jpeg" /></figure><p>Here we configure the profile <em>Shraddha</em> of AWS using command — profile shraddha and give the proper credential with the help of .csv file that we download in previous step. Provide region name as you use in root account and output format as json. Now we done the configuration.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/586/1*BtDP8a_fBKqRpyGalDQJ4w.png" /></figure><p>We create a configuration file so terraform can know about the profile of aws account. So provide the profile name and region in code with the provider AWS. Now your ready to do anything using code in your account.</p><pre>provider &quot;aws&quot; {<br> region  = &quot;ap-south-1&quot;<br> profile = &quot;shraddha&quot;<br>}</pre><p><strong><em>Step 2: Creation of Key Pair</em></strong></p><p>Creating key pair from webui is not a big deal but for the automation we create key with terraform code. Key is necessary otherwise we can not Login Inside the Instance. So I am creating The Key-pairs using terraform and saving the key in my local system so that in future I can login and Perform some task.</p><pre>resource &quot;tls_private_key&quot; &quot;task4key&quot; {<br>  algorithm   = &quot;RSA&quot;<br>}<br>resource &quot;aws_key_pair&quot; &quot;gen_key&quot; {<br>  key_name   = &quot;task4key&quot; <br>  public_key = tls_private_key.task4key.public_key_openssh<br>}<br>resource &quot;local_file&quot; &quot;key-file&quot; {<br>   content  = tls_private_key.task4key.private_key_pem<br>   filename = &quot;task4key.pem&quot;<br>}</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*I_UDAPjdeR0A6cxJc0VYpA.png" /></figure><p><strong><em>Step 3:Create VPC and VPC Subnet, Internet gateway, Route table.</em></strong></p><p>Amazon Virtual Private Cloud (Amazon VPC) lets you provision a logically isolated section of the AWS Cloud where you can launch AWS resources in a virtual network that you define. You have complete control over your virtual networking environment, including selection of your own IP address range, creation of subnets, and configuration of route tables and network gateways. You can easily customize the network configuration of your Amazon VPC.</p><pre>resource &quot;aws_vpc&quot; &quot;t4vpc&quot; {<br>  cidr_block = &quot;10.1.0.0/16&quot;<br>  instance_tenancy = &quot;default&quot;<br>  <br>  tags = {<br> name = &quot;t4vpc&quot;<br> }<br>}<br>resource &quot;aws_subnet&quot; &quot;t4publicsubnet&quot; {<br>  vpc_id     = aws_vpc.t4vpc.id<br>  cidr_block = &quot;10.1.0.0/24&quot;<br>  map_public_ip_on_launch = true<br>  availability_zone = &quot;ap-south-1a&quot;</pre><pre>tags = {<br>    Name = &quot;t4publicsubnet&quot;<br>  }<br>}</pre><pre>resource &quot;aws_subnet&quot; &quot;t4privatesubnet&quot; {<br>  vpc_id     = aws_vpc.t4vpc.id<br>  cidr_block = &quot;10.1.1.0/24&quot;<br>  map_public_ip_on_launch = true<br>  availability_zone = &quot;ap-south-1b&quot;</pre><pre>tags = {<br>    Name = &quot;t4privatesubnet&quot;<br>  }<br>}</pre><pre>resource &quot;aws_internet_gateway&quot; &quot;t4gw&quot; {<br>  vpc_id = aws_vpc.t4vpc.id</pre><pre>tags = {<br>    Name = &quot;t4gw&quot;<br>  }<br>}<br>resource &quot;aws_route_table&quot; &quot;t4route&quot; {<br>  vpc_id = aws_vpc.t4vpc.id</pre><pre>route {<br>    cidr_block = &quot;0.0.0.0/0&quot;<br>    gateway_id = aws_internet_gateway.t4gw.id<br>  }<br>   tags = {<br>    Name = &quot;t4route&quot;<br>  }<br>}</pre><pre>resource &quot;aws_route_table_association&quot; &quot;a&quot; {<br>  subnet_id      = aws_subnet.t4publicsubnet.id<br>  route_table_id = aws_route_table.t4route.id<br>}</pre><p>A VPC spans all of the Availability Zones in the Region. After creating a VPC, you can add one or more subnets in each Availability Zone. Let’s check the subnet is created or not after run the above code. And here the output of the above code:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*yxXjHgHy1nENO2QYoUZq8A.png" /></figure><p>A <em>route table</em> contains a set of rules, called <em>routes</em>, that are used to determine where network traffic from your subnet or gateway is directed.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*0U7BGB8lSENhdSfFq-l3aA.png" /></figure><p>An internet gateway serves two purposes: to provide a target in your VPC route tables for internet-routable traffic, and to perform network address translation (NAT) for instances that have been assigned public IPv4 addresses.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*qdN8id-tLgU0gVNJcfYzxw.png" /></figure><p>Your VPC has an implicit router, and you use route tables to control where network traffic is directed. Each subnet in your VPC must be associated with a route table, which controls the routing for the subnet (subnet route table).</p><p><strong><em>Step 4 : Create Security group with MySQL allowing port 3306.</em></strong></p><p>In Aws Firewalls are known as Security Groups which we can apply on any instance and by-default every firewall denied Inbound traffic and allowed all outgoing Traffic.As we know httpd server run on port 80 &amp; we also want to login inside VM to perform other tasks so i am allowing Port 80 &amp; 22 to be accessed by any IP and also allowing icmp protocol so we can ping to our Instance.</p><pre>resource &quot;aws_security_group&quot; &quot;t4publicsecgrp&quot; {<br>  name        = &quot;t4publicsecgrp&quot;<br>  description = &quot;http, shh&quot;<br>  vpc_id      = &quot;${aws_vpc.t4vpc.id}&quot;<br>ingress {<br>    description = &quot;SSH Port&quot;<br>    from_port   = 22<br>    to_port     = 22<br>    protocol    = &quot;tcp&quot;<br>    cidr_blocks = [&quot;0.0.0.0/0&quot;]<br>  }<br>ingress {<br>    description = &quot;HTTP Port&quot;<br>    from_port   = 80<br>    to_port     = 80<br>    protocol    = &quot;tcp&quot;<br>    cidr_blocks = [&quot;0.0.0.0/0&quot;]<br>  }<br>  <br>  egress {<br>    from_port   = 0<br>    to_port     = 0<br>    protocol    = &quot;-1&quot;<br>    cidr_blocks = [&quot;0.0.0.0/0&quot;]<br>  }<br>  tags = {<br>    Name = &quot;t4publicsecgrp&quot;<br>  }<br>}<br>resource &quot;aws_security_group&quot; &quot;t4privatesecgrp&quot; {<br>  name = &quot;mysql Security Group&quot;<br>  description = &quot;mysql Security Group&quot;<br>  vpc_id = &quot;${aws_vpc.t4vpc.id}&quot;<br>ingress {<br>    description = &quot;SSH Port&quot;<br>    from_port   = 22<br>    to_port     = 22<br>    protocol    = &quot;tcp&quot;<br>    security_groups = [aws_security_group.t4publicsecgrp.id]<br>  }<br> <br> ingress {<br>    protocol        = &quot;tcp&quot;<br>    from_port       = 3306<br>    to_port         = 3306<br>    security_groups = [aws_security_group.t4publicsecgrp.id]<br>  }<br>egress {<br>    from_port   = 0<br>    to_port     = 0<br>    protocol    = &quot;-1&quot;<br>    cidr_blocks = [&quot;0.0.0.0/0&quot;]<br>  }<br>  tags ={<br>    <br>    Name= &quot;t4privatesecgrp&quot;<br> }<br>}</pre><p>Check the security group using WebUI:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*RZEb9PNTwZFKng_4387uOA.png" /></figure><p><strong><em>Step 5: Now associate particular subnet to particular instance.</em></strong></p><p>In this way you can keep private subnet for database purpose and public subnet for application which can deploy on webserver.</p><pre>resource &quot;aws_eip&quot; &quot;eip1&quot; {<br>  vpc      = true<br>}<br>resource &quot;aws_nat_gateway&quot; &quot;nat1gw&quot; {<br>  allocation_id = aws_eip.eip1.id<br>  subnet_id     = aws_subnet.t4publicsubnet.id<br>tags = {<br>    Name = &quot;nat1gw&quot;<br>  }<br>}<br>resource &quot;aws_route_table&quot; &quot;routetable4&quot; {<br>  vpc_id = aws_vpc.t4vpc.id<br>route {<br>    cidr_block = &quot;0.0.0.0/0&quot;<br>    nat_gateway_id = aws_nat_gateway.nat1gw.id<br>  }<br>tags = {<br>    Name = &quot;routetable4&quot;<br>  }<br>}<br>resource &quot;aws_route_table_association&quot; &quot;asstoprivate&quot; {<br>  subnet_id      = aws_subnet.t4privatesubnet.id<br>  route_table_id = aws_route_table.routetable4.id<br>}</pre><p>Result is:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*nCsgE_DvCkvRQyPySe2sqA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*k2oOENbaAjqGwqsWP2kNsQ.png" /></figure><p><strong><em>Step 6: Launch EC2 instances with MySQL and Wordpress setup.</em></strong></p><pre>resource &quot;aws_instance&quot;  &quot;tk4instancesql&quot;  {<br>  ami = &quot;ami-08706cb5f68222d09&quot;<br>   instance_type = &quot;t2.micro&quot;<br>   key_name = &quot;task4key&quot;<br> vpc_security_group_ids = [aws_security_group.t4privatesecgrp.id]<br> subnet_id = aws_subnet.t4privatesubnet.id<br>   tags = {<br>       Name = &quot;t4sql&quot; <br>   }<br>        <br>}<br>resource &quot;aws_instance&quot;  &quot;tk4instancewp&quot;  {<br>  ami = &quot;ami-000cbce3e1b899ebd&quot;<br>   instance_type = &quot;t2.micro&quot;<br>   key_name = &quot;task4key&quot;<br> vpc_security_group_ids = [aws_security_group.t4publicsecgrp.id]<br> subnet_id = aws_subnet.t4publicsubnet.id<br>   tags = {<br>       Name = &quot;t4wp&quot; <br>   }<br>}</pre><p>Using above code we are going to launch EC2 instance with setup of WordPress and MySQL. For the security purposed we are going launch MySQL instance in private subnet so that public cannot accessed that.</p><p>We are going to launch WordPress instance in the public subnet so that it can be accessed by the anyone in the world public.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*EdC2TZEED_1g2qP-_iJEwA.png" /></figure><p>Now , copy the public IP of Wordpress instance into your brower URL field and run it. Here is the output:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*pdkY7S0NmyKUxzXRWAvoXw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*YZ5hP95DbLcdVbRhsmkptQ.png" /></figure><p>Here is the final output of this task!!!!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/259/1*OlW-WKXOu_NzsvxKOqxeBg.jpeg" /></figure><p>For reading…</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f867e18b817a" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Application WordPress Hosting with MySQL on AWS]]></title>
            <link>https://shraddhabhalerao1499.medium.com/application-wordpress-hosting-with-mysql-on-aws-95966f522d00?source=rss-92948e66b61d------2</link>
            <guid isPermaLink="false">https://medium.com/p/95966f522d00</guid>
            <dc:creator><![CDATA[Shraddha Bhalerao]]></dc:creator>
            <pubDate>Sat, 19 Sep 2020 13:59:35 GMT</pubDate>
            <atom:updated>2020-09-19T13:59:35.590Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/764/1*O1pV8FrckPF9UXoGY9Pa9g.jpeg" /></figure><p><strong><em>Problem Statement:</em></strong></p><p><em>1-Write a Infrastructure as code using terraform, which automatically create a VPC.</em></p><p><em>2- In that VPC we have to create two subnets: — a) Public subnet b) Private subnet</em></p><p><em>3- Create a public facing internet gateway for connect our VPC/Network to the internet world and attach this gateway to our vpc.</em></p><p><em>4- Create a routing table for internet gateway so that insatnce can connect to outside world , update and associate it with public subnet.</em></p><p><em>5- Launch a EC2 instance which has wordpress setup already having the security group allowing port 80 so that our client can connect to our worddpress site.</em></p><p><em>6- Launch a EC2 instance which has Mysql setup already with security group allowing port 3306 in private subnet so that our wordpress vm can connect with the same.</em></p><h3><strong>Go with flow:</strong></h3><p>First download <a href="https://aws.amazon.com/cli/">AWS CLI</a> , Terraform CLI and GitHub repo in your machine.</p><ol><li>In AWS management console, under services go to the IAM and add a new user. After adding the user, we will get access credentials, save that CSV file of credentials.CSV file is required in future for login.</li><li>Then you have to open cmd(command prompt) and follow the command as mentioned below:</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/840/1*3t9OcJGC4jHm1IecpgEoCw.jpeg" /></figure><p>Provide Access Key and Secrete Access Key which is present in the credential file.</p><p>3.Create one workspace for terraform code then use cd command to go your workspace, and use notepad command to write your code as shown below:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/675/1*zxTND6P1VkSPimTFD7IyDA.png" /></figure><p>Now let’s start coding in Terraform:</p><p><strong>Step 1: Creating IAM user with administrator access and configure AWS CLI.</strong></p><pre>provider &quot;aws&quot; {<br> region  = &quot;ap-south-1&quot;<br> profile = &quot;shraddha&quot;<br>}</pre><p>Use credential of the IAM User account that you have created before and the region that you’re going to use for this infrastructure.</p><p><strong>Step 2 : Creation of key pair.</strong></p><p>Creating key pair from WebUI is not a big deal but for the automation we create key with terraform code. Key is necessary otherwise we can not Login Inside the Instance. So I am creating The Key-pairs using terraform and saving the key in my local system so that in future i can login and Perform some task.</p><pre>resource &quot;tls_private_key&quot; &quot;task3key&quot; {<br>  algorithm   = &quot;RSA&quot;<br>}<br>resource &quot;aws_key_pair&quot; &quot;gen_key&quot; {<br>  key_name   = &quot;task3key&quot; <br>  public_key = tls_private_key.task3key.public_key_openssh<br>}<br>resource &quot;local_file&quot; &quot;key-file&quot; {<br>   content  = tls_private_key.task3key.private_key_pem<br>   filename = &quot;task3key.pem&quot;<br>}</pre><p>After run the above code we get the output as below:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*c5-ovR4ywDxgR1erFfhulQ.png" /></figure><p><strong>Step 3: Create VPC and VPC Subnet, Internet gateway, Route table</strong></p><p>Subnet is for creating your own lab/datacenter in AWS. We have created two subnets , one of them in availability zone ap-south-1a and the other in availability zone ap-south-1b.</p><p>Amazon Virtual Private Cloud (Amazon VPC) lets you provision a logically isolated section of the AWS Cloud where you can launch AWS resources in a virtual network that you define. You have complete control over your virtual networking environment, including selection of your own IP address range</p><pre>resource &quot;aws_vpc&quot; &quot;t3vpc&quot; {<br>  cidr_block = &quot;10.1.0.0/16&quot;<br>  instance_tenancy = &quot;default&quot;<br>  <br>  tags = {<br> name = &quot;t3vpc&quot;<br> }<br>}<br>resource &quot;aws_subnet&quot; &quot;t3publicsubnet&quot; {<br>  vpc_id     = aws_vpc.t3vpc.id<br>  availability_zone = &quot;ap-south-1a&quot;<br>  cidr_block = &quot;10.1.0.0/24&quot;<br>  map_public_ip_on_launch = true</pre><pre>tags = {<br>    Name = &quot;t3publicsubnet&quot;<br>  }<br>}</pre><pre>resource &quot;aws_subnet&quot; &quot;t3privatesubnet&quot; {<br>  vpc_id     = aws_vpc.t3vpc.id<br>  availability_zone = &quot;ap-south-1b&quot;<br>  cidr_block = &quot;10.1.1.0/24&quot;<br>  map_public_ip_on_launch = true</pre><pre>tags = {<br>    Name = &quot;t3privatesubnet&quot;<br>  }<br>}</pre><pre>resource &quot;aws_internet_gateway&quot; &quot;t3gw&quot; {<br>  vpc_id = aws_vpc.t3vpc.id</pre><pre>tags = {<br>    Name = &quot;t3gw&quot;<br>  }<br>}<br>resource &quot;aws_route_table&quot; &quot;t3route&quot; {<br>  vpc_id = aws_vpc.t3vpc.id</pre><pre>route {<br>    cidr_block = &quot;0.0.0.0/0&quot;<br>    gateway_id = aws_internet_gateway.t3gw.id<br>  }<br>   tags = {<br>    Name = &quot;t3route&quot;<br>  }<br>}</pre><pre>resource &quot;aws_route_table_association&quot; &quot;a&quot; {<br>  subnet_id      = aws_subnet.t3publicsubnet.id<br>  route_table_id = aws_route_table.t3route.id<br>}</pre><p>The output of above code is :</p><p>A <em>route table</em> contains a set of rules, called <em>routes</em>, that are used to determine where network traffic from your subnet or gateway is directed.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*5sd_YtcTsGFZmPxZlQ7GUQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*WfoFwjRqhNxscMyORNzWBQ.png" /></figure><p>A <em>route table</em> contains a set of rules, called <em>routes</em>, that are used to determine where network traffic from your subnet or gateway is directed.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*16BSTW46Q-qMe0zjh51Yog.png" /></figure><p><strong>Step 4: Creating security group to allow ssh on port 22, http on port 80 and nfs on port 2049.</strong></p><pre>resource &quot;aws_security_group&quot; &quot;task3secgrp&quot; {<br>  name        = &quot;task3secgrp&quot;<br>  description = &quot;sec group for ssh and httpd&quot;<br>  vpc_id      = aws_vpc.t3vpc.id</pre><pre>ingress {<br>    description = &quot;SSH Port&quot;<br>    from_port   = 22<br>    to_port     = 22<br>    protocol    = &quot;tcp&quot;<br>    cidr_blocks = [&quot;0.0.0.0/0&quot;]<br>  }</pre><pre>ingress {<br>    description = &quot;HTTP Port&quot;<br>    from_port   = 80<br>    to_port     = 80<br>    protocol    = &quot;tcp&quot;<br>    cidr_blocks = [&quot;0.0.0.0/0&quot;]<br>  }<br>   ingress {<br>    description = &quot;NFS&quot;<br>    from_port   = 2049<br>    to_port     = 2049<br>    protocol    = &quot;tcp&quot;<br>    cidr_blocks = [&quot;0.0.0.0/0&quot;]<br>  }<br>  <br>  egress {<br>    from_port   = 0<br>    to_port     = 0<br>    protocol    = &quot;-1&quot;<br>    cidr_blocks = [&quot;0.0.0.0/0&quot;]<br>  }<br>  tags = {<br>    Name = &quot;task3secgrp&quot;<br>  }<br>}</pre><pre>resource &quot;aws_security_group&quot; &quot;mysql_sg&quot; {<br>  name = &quot;mysql Security Group&quot;<br>  description = &quot;mysql Security Group&quot;<br>  vpc_id = &quot;${aws_vpc.t3vpc.id}&quot;<br> <br> ingress {<br>    protocol        = &quot;tcp&quot;<br>    from_port       = 3306<br>    to_port         = 3306<br>    security_groups = [aws_security_group.task3secgrp.id]<br>  }<br>egress {<br>    from_port   = 0<br>    to_port     = 0<br>    protocol    = &quot;-1&quot;<br>    cidr_blocks = [&quot;0.0.0.0/0&quot;]<br>  }<br>  tags ={<br>    <br>    Name= &quot;mysql_sg&quot;<br> }<br>}</pre><p>In Aws Firewalls are known as Security Groups which we can apply on any instance and by-default every firewall denied Inbound traffic and allowed all outgoing Traffic.As we know httpd server run on port 80 &amp; we also want to login inside VM to perform other tasks so i am allowing Port 80 &amp; 22 to be accessed by any IP and also allowing icmp protocol so we can ping to our Instance.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*pG1CzPZZwaLXIitWc-9yUA.png" /></figure><p>The <strong>MySQL Security Group </strong>has an inbound rule which allows access to only those instances which are a part of the WordPress Security Group.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*bcr_KtUhFzDd3GAbEJ_EKw.png" /></figure><p><strong>Step 5: Launch EC2 instances with MySQL and Wordpress setup.</strong></p><pre>resource &quot;aws_instance&quot;  &quot;tk3instsql&quot; {<br>  ami = &quot;ami-0019ac6129392a0f2&quot;<br>   instance_type = &quot;t2.micro&quot;<br>   key_name = aws_key_pair.gen_key.key_name<br> vpc_security_group_ids = [aws_security_group.mysql_sg.id]<br> subnet_id = &quot;${aws_subnet.t3privatesubnet.id}&quot;<br>   tags = {<br>       Name = &quot;tk3sql&quot; <br>   }<br>        <br>}<br>resource &quot;aws_instance&quot;  &quot;tk3instwp&quot; {<br>  ami = &quot;ami-000cbce3e1b899ebd&quot;<br>   instance_type = &quot;t2.micro&quot;<br>   key_name = aws_key_pair.gen_key.key_name<br> vpc_security_group_ids = [aws_security_group.task3secgrp.id]<br> subnet_id = &quot;${aws_subnet.t3publicsubnet.id}&quot;<br>   tags = {<br>       Name = &quot;tk3wp&quot; <br>   }<br>}</pre><p>Using above code we are going to launch EC2 instance with setup of WordPress and MySQL. For the security purposed we are going launch MySQL instance in private subnet so that public cannot accessed that.</p><p>We are going to launch WordPress instance in the public subnet so that it can be accessed by the anyone in the world public.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*2UzZTGf07GoyhCoYi7o0WA.png" /></figure><p>Now , copy the public IP of Wordpress instance into your brower URL field and run it. Here is the output:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*NOk88NVZckHJXwHLOxa0FA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Rxg6Rt_ZOoRFzVdNNY6clw.png" /></figure><p>Thank you for reading…..</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=95966f522d00" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How data are stored by the MNC’s like Google ,Facebook etc.?????]]></title>
            <link>https://shraddhabhalerao1499.medium.com/how-data-are-stored-by-the-mncs-like-google-facebook-etc-536ea3ba210b?source=rss-92948e66b61d------2</link>
            <guid isPermaLink="false">https://medium.com/p/536ea3ba210b</guid>
            <dc:creator><![CDATA[Shraddha Bhalerao]]></dc:creator>
            <pubDate>Fri, 18 Sep 2020 13:46:51 GMT</pubDate>
            <atom:updated>2020-09-18T13:46:51.809Z</atom:updated>
            <content:encoded><![CDATA[<h3>How data are stored by the MNC’s like Google ,Facebook etc.?????</h3><p>Let’s try try to find out from the basics</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/296/1*lfLpcOP58D4lTGo8ucn8Hw.jpeg" /></figure><p>First question comes in my mind is</p><h3><strong>What is meaning of data??</strong></h3><blockquote>In <strong>dictionary,</strong> data means facts and statistics collected together for reference or analysis.</blockquote><p>But i couldn’t understand the actual meaning of this. 😥</p><p>So, lets research more and find out the answer which is easy to understand.🧐</p><blockquote><strong>Data</strong> is distinct pieces of information, usually formatted in a special way.</blockquote><p>Ohh wow!!! It looks interesting 🤩🤩</p><blockquote><strong>Data</strong> is a collection of facts, such as numbers, <strong>words</strong>, measurements, observations or just descriptions of things. I understand now, data is anything like name, number, photo which we want to stored or which give us some information.</blockquote><p>Now the second question comes in my mind is</p><h3><strong>What is Big Data??</strong></h3><blockquote><strong>Big data</strong> is a term that describes the <strong>large</strong> volume of <strong>data</strong> — both structured and unstructured — that inundates a business on a day-to-day basis. But it’s not the amount of <strong>data</strong> that’s important. … <strong>Big data</strong> can be analyzed for insights that lead to better decisions and strategic business moves.</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/630/1*QEh0Gvww9RrNLdncX7zSAg.jpeg" /></figure><p>Okk, I got it because in day-to-day life there is so much information human got but all information doesn’t stored in our brain.</p><p>Then how the company stored that huge information.</p><p>Because, I saw in Facebook there are more account than the population actually had in the world. Also there are so many photos in one person account. How they managed that???🤔🤔</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/638/1*ezMWjtaX0yQkG-lD62a3KQ.jpeg" /></figure><p>Even Google gives the answer of all question that even books can’t hold in such amount information.</p><p>The devices are not got hang???? Big question😂😂😂🙄🙄🙄🙄</p><p>First understand the problems that occurs because of big data,</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*fP4ct1YCmKPpsXaCfO1pEA.png" /></figure><blockquote><strong>1. Lack of Understanding</strong></blockquote><blockquote><strong>2. High Cost of Data Solutions</strong></blockquote><blockquote><strong>3. Too Many Choices</strong></blockquote><blockquote><strong>4. Complex Systems for Managing Data</strong></blockquote><blockquote><strong>13. Data Integration</strong></blockquote><blockquote><strong>14. Processing Large Data Sets</strong></blockquote><blockquote><strong>15. Constantly Changing Data</strong></blockquote><p>Here we will discuss on 8 characteristics of big data or 8 V’s of big data. Let’s see what characteristics of big data come under these 8V’s are.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/570/1*_j0rB2x64LJRBtVRLgnpHw.png" /></figure><h4>1. Volume:</h4><blockquote>When we talk about Big data, probably volume is the very first criteria for consideration. The range of volume justifies whether it should be considered as ‘big’ or not. Usually, if the volume of data is above gigabytes then only it is considered as big data from a volume perspective. What does measurement signifies here? It could be petabytes, terabytes, Exabyte. This volume amount is considered based on data surveys of different organizations and here are some of the examples:</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/861/1*sJQqN8nPCr6_hUg64q6IRw.jpeg" /></figure><h4><strong>2. Velocity:</strong></h4><blockquote>Stream analytics is a popular term today where high-speed data is processed using tools. But do you know stream analytics associated with which<strong> </strong>characteristics of big data? No doubt, it is the velocity of data. Here velocity means data generation speed, how frequent it is delivered and analyzed. Now, the amount of data generated in today’s scenario is massive. Most importantly it needs real-time processing for analysis purpose. For example, Google alone generates more than 40k search queries per second. Hence, we can imagine how fast processing is required to get insights from data.</blockquote><h4><strong>3. Variety:</strong></h4><blockquote>Big data<strong> </strong>deals with any data formats — structured, unstructured, semi-structured or even very complex structured. So, storing and processing unformatted data through RDBMS is not easy. However, such unstructured data provides more valuable insights on the information which we rarely get from structured data. Besides, a variety of data means different data sources. So, this characteristic of big data also provides information on the data sources.</blockquote><h4><strong>4. Veracity:</strong></h4><blockquote>Not that all data that come for processing are valuable. So, unless the data is cleansed correctly, it is not wise to store or process complete data. Specially when the volume is such massive. There comes this dimension of big data — veracity. This particular characteristics also helps to know whether the data is coming from a reliable source or it is the right fit for the analytic model.</blockquote><h4><strong>5. Variability:</strong></h4><blockquote>In Big data analysis data inconsistency is a common scenario which arises as the data is sourced from different sources. Besides, it contain different data types. Hence, to get meaningful data out of that enormous amount of data anomaly and outlier detection are essential. So, variability is considered as one of the characteristics of big data.</blockquote><h4>6. Value:</h4><blockquote>The primary interest for big data is probably for its business value. Perhaps this is the most crucial characteristic of big data. Because unless you get any business insights out of it, there is no meaning of other characteristics of big data.</blockquote><h4>7. Visualization:</h4><blockquote>Big data processing is not the only means of getting a meaningful result out of it. Unless it is represented or visualizes in a meaningful way, there is no point of analyzing it. Hence, big data must be visualized with appropriate tools which serve different parameters to help data scientists or analysts to understand it in a better way.</blockquote><blockquote>However, plotting billions of data points is not an easy task. Furthermore, it associates different techniques like using treemaps, network diagrams, cone trees, etc.</blockquote><h4>8. Validity:</h4><blockquote>Validity has some similarities with veracity. As the meaning of the word suggests, the validity of big data means how correct is the data for the purpose it is used for. Interestingly a considerable portion of big data remains un-useful which is considered as <em>‘dark data.</em>‘ The remaining part of collected unstructured data is cleansed first for analysis.</blockquote><p>Let’s see real world cases of Big Data one-by-one</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/600/1*TWSfgyT4Sv6MDPBDf-F9Kg.jpeg" /></figure><h3>Google:</h3><blockquote>Its pretty safe to assume that in today’s time, Google probably has more data than any other organization on the planet. Google however is very secretive about its working as would any major organization, so we don’t really know for sure how much data the company manages or how they manage it. That doesn’t mean we cannot estimate it though.</blockquote><blockquote>Now we also know that these data centers are highly efficient with only 10–20% of the power being spent on cooling . To gather approximately how much energy a server consume , let’s take a look back to the “container data center” concept from 2005. Although we have no way of verifying if they actually do utilize this concept today — it will give us a fair idea of what Google considers reasonable power consumption. The result — 215 watts per server.</blockquote><blockquote>Using this information along with previous data, Google was running around 1 million servers back at the turn of the decade. The company has grown by leaps and bounds since and by 2013 it was estimated that the capital invested in data centers could’ve been 3x to 4x times the capital of 2010. Based on this knowledge, we can assume the number of servers being operated by the company to be between 1.8 to 2.4 million.</blockquote><blockquote>If we assume that these servers have a couple of hard drives of 2 TB each, we come to the mind boggling figure of <strong>10 exabytes !</strong>. This isn’t too hard to believe when you consider that approximately 8 exabytes of hard drive storage is shipped annually. While that figure might not include Google, the company has been active for quite a few years and the storage would’ve also accumulated in that time.</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/299/1*Dq6g1lCRXDzV4l9Pkql_5g.png" /></figure><h3>Facebook:</h3><blockquote>At a very high level, there are two key things Facebook relies on to manage huge amounts of quickly changing data:</blockquote><blockquote><strong>RAM </strong>— Facebook has a well-known partitioning issue where it is basically impossible for them to divide-and-conquer the problem by splitting users into clusters where they communicate only among themselves locally. Instead, users communicate with other users in an unpredictable fashion. Facebook solved the problem by creating a monster RAM layer, kept in <em>memcached</em>, with minimum latency where constant updates from a single user to many others can be performed efficiently and in a timely manner.</blockquote><blockquote><strong>Linear algorithms</strong> — by doing everything in RAM, Facebook can quickly assemble news feed for every user very quickly on-the-fly. But the key is also that the data assembled quickly is processed in linear time, as their algorithms, starting with EdgeRank, are linear. Was that not the case, the problem would have been much more difficult and challenging.</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/379/1*l3BSBDochxKEqGobX_GcGw.jpeg" /></figure><h3>Netflix:</h3><blockquote>So, how does Netflix use data analytics? By collecting data from their 151 million subscribers, and implementing data analytics models to discover customer behaviour and buying patterns. Then, using that information to recommend movies and TV shows based on their subscribers’ preferences.</blockquote><blockquote>According to Netflix, over 75% of viewer activity is based off personalised recommendations. Netflix collects several data points to create a detailed profile on its subscribers. The profile is far more detailed than the personas created through conventional marketing.Most significantly, Netflix collects customer interaction and response data to a TV show. For example, Netflix knows the time and date a user watched a show, the device used, if the show was paused, does the viewer resume watching after pausing? Do people finish an entire TV show or not, how long does it take for a user to finish a show and so on.</blockquote><blockquote>Netflix even has screenshots of scenes people might have viewed repeatedly, the rating content is given, the number of searches and what is searched for. With this data, Netflix can create a detailed profile on its users. To collect all this data and harness it into meaningful information, Netflix requires data analytics. For example, Netflix uses what is known as the recommendation algorithm to suggest TV shows and movies based on user’s preferences. Netflix’s ability to collect and use the data is the reason behind their success. According to Netflix, they earn over a billion in customer retention because the recommendation system accounts for over 80% of the content streamed on the platform. Netflix also uses its big data and analytics tools to decide if they want to greenlight original content. To an outsider, it might look like Netflix is throwing their cash at whatever they can get, but in reality, they greenlight original content based on several touch points derived from their user base.</blockquote><blockquote>For example, Netflix distributed ‘Orange is the New Black’ knowing it would be a big hit on their platform. How? Because ‘Weeds’, Jenji Kohan’s previous hit performed well on Netflix in terms of viewership and engagement.</blockquote><blockquote>Netflix even uses big data and analytics to conduct custom marketing, for</blockquote><blockquote>In addition to collecting data on subscriber actions, Netflix also encourages feedback from its subscribers. One feedback system is the thumbs up/thumbs down system that replaced their rating system, the system improved audience engagement by a significant margin, which enabled them to customise the user’s homepage further. According to Joris Evers, Director of Global Communications, there are 33 million different versions of Netflix.</blockquote><p>While searching information of Big Data ,I saw <strong>Hadoop</strong> word lots of time</p><p>So let’s try to search some information about Hadoop and how Big Data and Hadoop are linked</p><h3>What is Hadoop?</h3><blockquote>Hadoop is one of the open-source software frameworks that is used for processing and storing large clusters of commodity hardware in a distributed manner. It was developed by the MapReduce system and is licensed under the Apache v2 license, which applies the concepts of functional programming. It is one of the highest level Apache projects and is written in Java programming language.</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Ddd1eAY5jh4rNkoyPvhUXw.png" /></figure><h3>Hadoop vs. Big Data</h3><blockquote>Hadoop can be used to store all kinds of structured, semi-structured, and unstructured data, whereas traditional database was only able to store structured data, which is the main difference between Hadoop and Traditional Database.</blockquote><blockquote>Difference between Big Data vs. Hadoop</blockquote><p><strong>1. Accessibility:</strong> One can use the Hadoop framework to process and access the data at a faster rate when it is compared to other tools, whereas it is tough to access the big data.</p><p><strong>2. Storage:</strong> Apache Hadoop HDFS has the capability of storing big data, but on the other hand, Big Data is very difficult to be stored because it often comes in an unstructured and structured form.</p><p><strong>3. Significance:</strong> Hadoop can process Big Data to make it more meaningful, but Big Data has no value on its own until it can be utilized to create some profit after processing the data.</p><p><strong>4. Definition:</strong> Hadoop is a kind of framework that can handle the huge volume of Big Data and process it, whereas Big Data is just a large volume of the Data which can be in unstructured and structured data.</p><p><strong>5. Developers:</strong> Big Data developers will just develop applications in Pig, Hive, Spark, Map Reduce, etc. whereas the Hadoop developers will be mainly responsible for the coding, which will be used to process the data.</p><p><strong>6. Type:</strong> Big Data is a type of a problem that has no meaning or value to it unless it is processed, and Hadoop is a type of a solution that solves the complex processing of Huge Data.</p><p><strong>7. Veracity:</strong> It means how trustworthiness the Data is. The Data that is processed by Hadoop can be used to process, analyze, and use for better decision-making. But on the other hand, Big Data cannot be relied on entirely to make any perfect decision because it has so many varieties of format and volume of data that makes it incomplete structured data to be able to process efficiently and understand. It makes Big Data not wholly reliable or trustworthiness to make a perfect decision.</p><p><strong>8. Companies Using Hadoop and Big Data:</strong> The companies that are using Hadoop are IBM, AOL, Amazon, Facebook, Yahoo, etc. Big Data is used by Facebook, which generates 500 TB data every day and the airlines’ industry, which produces 10 TB of data every half an hour. The total data generated in the world every year is 2.5 quintillion bytes of data.</p><p><strong>9. Nature:</strong> Big Data is vast in nature with high-variety of information, high velocity, and humongous volume of data. Big Data is not a tool but Hadoop is a tool. Big Data is treated like an asset, which can be valuable, whereas Hadoop is treated like a program to bring out the value from the asset, which is the main difference between Big Data and Hadoop.</p><p>Big Data is unsorted and raw, whereas Hadoop is designed to manage and handle complicated and sophisticated Big Data. Big Data is more like a concept for business used to denote a wide variety and volume of data sets, but Hadoop is just another technology infrastructure for analyzing, managing, and storing these vast sets of data in large quantities.</p><p><strong>10. Representation:</strong> Big Data is like an umbrella which is representing the collection of technologies in the world, whereas Hadoop is just representing one of the many frameworks which are implementing big-data principles for processing.</p><p><strong>11. Speed: </strong>The speed of Big Data is very, very slow and especially in comparison with Hadoop. Hadoop can process the data faster comparatively.</p><p><strong>12. Range of Applications:</strong> Big Data has an extensive range of uses in many sectors of businesses like Banking &amp; Finance, Information Technology, Retail Industry, Telecommunications, Transportation, and Healthcare. Hadoop is used to solve mainly three types of components, which are YARN for cluster resource management, MapReduce for parallel processing, and HDFS for data storage.</p><p><strong>13. Challenges:</strong> For Big Data, Securing Big Data, Processing Data of Massive Volumes and Storing Data of Huge Volumes is a very big challenge, whereas Hadoop does not have those kinds of problems that are faced by Big Data.</p><p><strong>14. Manageability: </strong>The management of Hadoop is very easy as it is just like a tool or program which can be programmed. But Big Data is not so easy one to manage or handle as it is called Big Data mainly because of the amount, quantity, volume, variety of data set. It is challenging to manage and process this kind of data and can only be done by Large Companies with large resources.</p><p><strong>15. Applications:</strong> Big Data can be used for Weather forecasting, prevention of cyberattacks, the self-driving car of Google, Research and Science, Sensor Data, Text Analytics, Fraud Detection, Sentiment Analysis, etc. Hadoop can be used to handle complex data easily and with speed, processing data in real-time for decision making and optimization of business processes.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/480/1*5lis6F0xq5PFaoduQA6POg.gif" /></figure><p>For reading the article 🤩🤩</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=536ea3ba210b" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Launching Wordpress on AWS cloud using EKS and EFS]]></title>
            <link>https://shraddhabhalerao1499.medium.com/launching-wordpress-on-aws-cloud-using-eks-and-efs-da0d64a9674a?source=rss-92948e66b61d------2</link>
            <guid isPermaLink="false">https://medium.com/p/da0d64a9674a</guid>
            <dc:creator><![CDATA[Shraddha Bhalerao]]></dc:creator>
            <pubDate>Wed, 15 Jul 2020 16:42:41 GMT</pubDate>
            <atom:updated>2020-07-15T18:38:02.780Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/725/1*aKmQhpRk7pITzudTPdyj1A.jpeg" /></figure><h3>Elastic Kubernetes Service (EKS):</h3><p>Amazon Elastic Kubernetes Service (EKS) is a managed <a href="https://aws.amazon.com/kubernetes/">Kubernetes</a> service that makes it easy for you to run Kubernetes on AWS without needing to install, operate, and maintain your own Kubernetes control plane. Amazon EKS is certified Kubernetes conformant, so existing applications running on upstream Kubernetes are compatible with Amazon EKS.</p><p><strong><em>Managed control plane</em></strong></p><p>Amazon EKS provides a scalable and highly-available control plane that runs across multiple AWS availability zones. The Amazon EKS service automatically manages the availability and scalability of the Kubernetes API servers and the etcd persistence layer for each cluster. Amazon EKS runs the Kubernetes control plane across three Availability Zones in order to ensure high availability, and it automatically detects and replaces unhealthy masters.</p><p><strong><em>Why AWS:</em></strong></p><p>Amazon Elastic Kubernetes Service (Amazon EKS) is a fully managed <a href="https://aws.amazon.com/kubernetes/">Kubernetes</a> service. Customers such as Intel, Snap, Intuit, GoDaddy, and Autodesk trust EKS to run their most sensitive and mission critical applications because of its security, reliability, and scalability.</p><p><em>High Availability</em></p><p>EKS runs the Kubernetes management infrastructure across multiple AWS Availability Zones, automatically detects and replaces unhealthy control plane nodes, and provides on-demand, zero downtime upgrades and patching.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Mj2IAwvAQOnwW4I6105lLw.png" /><figcaption>Working of EKS</figcaption></figure><p>For connecting to AWS EKS we have different ways such as <strong>WebUI, CLI, TERRAFORM.</strong></p><p>Before diving into EKS :<br>we have to download <strong>eksctl</strong> in our base os!</p><p><strong>EKSCTL</strong> is a simple CLI tool for creating clusters on EKS by just running a single command.</p><p><strong><em>Pre-reqisistes:</em></strong></p><ul><li><a href="https://docs.aws.amazon.com/cli/latest/userguide/install-cliv2-windows.html">AWS</a>CLI</li><li><a href="https://kubernetes.io/docs/tasks/tools/install-kubectl/">kubectl</a></li><li><a href="https://docs.aws.amazon.com/eks/latest/userguide/getting-started-eksctl.html">eksctl</a></li></ul><h3>Our aim:</h3><p>👉<strong>Create a Kubernetes cluster using AWS EKS.</strong></p><p>👉<strong>Integrate EKS with EC2, ELB, EBS, EFS.</strong></p><p>👉<strong>Deploying WordPress &amp; Mysql on top of AWS EKS</strong></p><h3><strong><em>1) Step 1:</em></strong></h3><p><strong><em>Create a IAM role in aws and configure on awscli</em></strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/675/1*fTn44KdTIGDje7nQvjO-zQ.png" /></figure><h3>2)Step 2:</h3><p><strong><em>Now create a yml file for creating eks cluster</em></strong></p><pre>apiVersion: eksctl.io/v1alpha5<br>kind: ClusterConfig<br>metadata:<br>  name: eks-task-cluster<br>  region: ap-south-1<br>nodeGroups:<br>   - name: ng1<br>     desiredCapacity: 2<br>     instanceType: t2.micro<br>     ssh:<br>        publicKeyName: taskkey<br>   - name: ng-mixed<br>     minSize: 1<br>     maxSize: 3<br>     instancesDistribution:<br>       maxPrice: 0.010<br>       instanceTypes: [&quot;t2.micro&quot;] # At least one instance type should be specified<br>       onDemandBaseCapacity: 0<br>       onDemandPercentageAboveBaseCapacity: 50<br>       spotInstancePools: 2     <br>     ssh:<br>         publicKeyName: taskkey</pre><p>In the above code, we have given 2 node groups and one spot instance for a node in Mumbai region</p><p>Run below command to create cluster using yml file in your workplace:</p><pre>&gt; eksctl create cluster -f eks-cluster.yml</pre><p>You can see demo below:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*S6WSEn-sdnxmcvr-kmEQ-g.png" /><figcaption>Creating cluster…</figcaption></figure><p>Let’s see in AWS console cluster is created or not</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*p-eq4PjxDC0rQLtns1jdZA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*bpjzoYEc32vdkwXidFzGhA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*FfPJfg78vFC3JaUuCcHBaA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*0jOK7AUtzFVyFqmE_E7vdg.png" /></figure><p>Hurray!! Cluster is created successfully😍😍</p><p>Check Your cluster using CLI using command:</p><pre>&gt; eksctl get cluster</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/868/1*8rJakc20GCGR7wzWBz3Ihw.png" /></figure><p>The one thing need to do install amazon-efs-utils in each of the nodes we have created by remote login or through gui. This can be done through the Instances section of AWS EC2 and executing the following command in each node:</p><pre>#yum install amazon-efs-utils    /(use root account)</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*3QkJ4mNL91hDxU796m_yIQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*jnSEzFepxxVhJAzWw85VWg.png" /></figure><h3>3) Step 3:</h3><p>Update config file to allow kubectl to send instructions to master node and you can check nodes through command:</p><pre>&gt;aws eks update-kubeconfig --name eks-task-cluster</pre><p>This will automatically create a Config file for the mentioned Cluster.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*bQCL8X1VEw0FP5hCXMYPWg.png" /></figure><p>Create an EFS storage manually which can be used by the PVC later. We prefer EFS storage because EBS storage can’t be mounted to an instance running in any other subnet. This problem is solved by EFS. Create EFS with same vpc (eks-cluster vpc) and security group( CLuster ShareNode Security Group) used within cluster.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*GjvuuI18X1YaHZzlWTGnkg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*xJU5xuQORPUSoZk62-TOgg.png" /></figure><h3>4) Step 4:</h3><p>Next, we create an EFS provisioner with the help of YML code.In this code, i have provided the ID &amp; DNS from my already created EFS system. The code to create an EFS provisioner is as follows -</p><pre>kind: Deployment<br>apiVersion: apps/v1<br>metadata:<br>  name: efs-provisioner<br>spec:<br>  selector:<br>    matchLabels:<br>      app: efs-provisioner<br>  replicas: 1<br>  strategy:<br>    type: Recreate<br>  template:<br>    metadata:<br>      labels:<br>        app: efs-provisioner<br>    spec:<br>      containers:<br>        - name: efs-provisioner<br>          image: quay.io/external_storage/efs-provisioner:v0.1.0<br>          env:<br>            - name: FILE_SYSTEM_ID<br>              value: fs-d27de803<br>            - name: AWS_REGION<br>              value: ap-south-1<br>            - name: PROVISIONER_NAME<br>              value: eks-cluster/aws-efs<br>          volumeMounts:<br>            - name: pv-volume<br>              mountPath: /persistentvolumes<br>      volumes:<br>        - name: pv-volume<br>          nfs:<br>            server: fs-d27de803.efs.ap-south-1.amazonaws.com<br>            path: /</pre><p>Change the value of FILE_SYSTEM_ID and server according to your EFS which is created in previous step. Run above code using:</p><pre>&gt; kubectl create -f efs-provisioner.yml</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/980/1*HGH8wDxWj_bLdodxGrZvMQ.png" /></figure><p>To see updated config file</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/848/1*GC05aHQv24MtPsuOvZa_Ng.png" /></figure><h3>6) Step 6:</h3><p>Next, create a YML code to modify some permisssions using ROLE BASED ACCESS CONTROL (RBAC). The code is as follows -</p><pre>apiVersion: rbac.authorization.k8s.io/v1beta1<br>kind: ClusterRoleBinding<br>metadata:<br>  name: nfs-provisioner-role-binding<br>subjects:<br>  - kind: ServiceAccount<br>    name: default<br>    namespace: default<br>roleRef:<br>  kind: ClusterRole<br>  name: cluster-admin<br>  apiGroup: rbac.authorization.k8s.io</pre><p>Run the code using:</p><pre>&gt; kubectl create -f rbac.yml</pre><p>The output of the above command is:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/982/1*pvo_skVx_xK_f_L5sGlgFQ.png" /></figure><h3>7) Step 7:</h3><p>Now, I have created a Storage Class which will create a PVC as well as a dynamic PV. I have created two PVCs of 10 Gib each. You can create as per your requirement.</p><pre>kind: StorageClass<br>apiVersion: storage.k8s.io/v1<br>metadata:<br>  name: aws-efs<br>provisioner: eks-cluster/aws-efs<br>---<br>kind: PersistentVolumeClaim<br>apiVersion: v1<br>metadata:<br>  name: efs-wordpress<br>  annotations:<br>    volume.beta.kubernetes.io/storage-class: &quot;aws-efs&quot;<br>spec:<br>  accessModes:<br>    - ReadWriteMany<br>  resources:<br>    requests:<br>      storage: 10Gi<br>---<br>kind: PersistentVolumeClaim<br>apiVersion: v1<br>metadata:<br>  name: efs-mysql<br>  annotations:<br>    volume.beta.kubernetes.io/storage-class: &quot;aws-efs&quot;<br>spec:<br>  accessModes:<br>    - ReadWriteMany<br>  resources:<br>    requests:<br>      storage: 10Gi</pre><p>Run the code using:</p><pre>&gt; kubectl create -f create_storage.yml</pre><p>And the output is</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/952/1*cZhHYskQxtqqekkfjA5ANw.png" /></figure><h3>8) Step 8:</h3><p>We create a secret for mysql password as given below:</p><pre>&gt; kubectl create secret generic mysql-pass  --from-literal=password=mypass</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*hop0kl0EGdehJosp8XoZDw.png" /></figure><h3>9) Step 9:</h3><p>Now,we need to launch a MYSQL which will be connected to the Wordpress. For this purpose you can used any version but ,I used MYSQL version 5.6. The YML code is as follows-</p><pre>apiVersion: v1<br>kind: Service<br>metadata:<br>  name: wordpress-mysql<br>  labels:<br>    app: wordpress<br>spec:<br>  ports:<br>    - port: 3306<br>  selector:<br>    app: wordpress<br>    tier: mysql<br>  clusterIP: None<br>---<br>apiVersion: apps/v1 # for versions before 1.9.0 use apps/v1beta2<br>kind: Deployment<br>metadata:<br>  name: wordpress-mysql<br>  labels:<br>    app: wordpress<br>spec:<br>  selector:<br>    matchLabels:<br>      app: wordpress<br>      tier: mysql<br>  strategy:<br>    type: Recreate<br>  template:<br>    metadata:<br>      labels:<br>        app: wordpress<br>        tier: mysql<br>    spec:<br>      containers:<br>      - image: mysql:5.6<br>        name: mysql<br>        env:<br>        - name: MYSQL_ROOT_PASSWORD<br>          valueFrom:<br>            secretKeyRef:<br>              name: mysql-pass<br>              key: password<br>        ports:<br>        - containerPort: 3306<br>          name: mysql<br>        volumeMounts:<br>        - name: mysql-persistent-storage<br>          mountPath: /var/lib/mysql<br>      volumes:<br>      - name: mysql-persistent-storage<br>        persistentVolumeClaim:<br>          claimName: efs-mysql</pre><p>Command to run the code is:</p><pre>&gt;kubectl create -f deploy_mysql.yml</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/854/1*X5mR_mfcMYyMBoxD8FA5ig.png" /></figure><h3>10) Step 10:</h3><p>Now, it’s time to launch our Wordpress &amp; connect it to our MYSQL Database. The YML code is as follows-</p><pre>apiVersion: v1<br>kind: Service<br>metadata:<br>  name: wordpress<br>  labels:<br>    app: wordpress<br>spec:<br>  ports:<br>    - port: 80<br>  selector:<br>    app: wordpress<br>    tier: frontend<br>  type: LoadBalancer<br>---<br>apiVersion: apps/v1 # for versions before 1.9.0 use apps/v1beta2<br>kind: Deployment<br>metadata:<br>  name: wordpress<br>  labels:<br>    app: wordpress<br>spec:<br>  selector:<br>    matchLabels:<br>      app: wordpress<br>      tier: frontend<br>  strategy:<br>    type: Recreate<br>  template:<br>    metadata:<br>      labels:<br>        app: wordpress<br>        tier: frontend<br>    spec:<br>      containers:<br>      - image: wordpress:4.8-apache<br>        name: wordpress<br>        env:<br>        - name: WORDPRESS_DB_HOST<br>          value: wordpress-mysql<br>        - name: WORDPRESS_DB_PASSWORD<br>          valueFrom:<br>            secretKeyRef:<br>              name: mysql-pass<br>              key: password<br>        ports:<br>        - containerPort: 80<br>          name: wordpress<br>        volumeMounts:<br>        - name: wordpress-persistent-storage<br>          mountPath: /var/www/html<br>      volumes:<br>      - name: wordpress-persistent-storage<br>        persistentVolumeClaim:<br>          claimName: efs-wordpress</pre><p>To deploy the wordpress :</p><pre>&gt;kubectl create -f deploy_wordpress.yml</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/962/1*txYvnT_WbiMoBacHN3mlbA.png" /></figure><p>Now, let’s check the all pods are working or not using <strong><em>kubectl get pods:</em></strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/795/1*BRm8DudQp8XOadViyq2wFQ.png" /></figure><p>Yeahhhhhh ✨✨ all pods work great!!</p><h3>11) Step 11:</h3><p>Wordpress can mount on MySQL database and store data inside it.After it ,we can access wordpress by LoadBlancer external IP</p><pre>&gt; kubectl get all -o wide OR &gt;kubectl get svc</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*N4tQopQKDJbz6SZFvIGLYg.png" /></figure><p>Copy this IP on your browser url:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*k9x916tGRtM3J8RRLsWZSQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*SWa5kkon16biXAF3KRm0Ag.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*tqn5v4ufo8ga29fNHOk1QQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/528/1*KB5pI2-97J3ZzTs9yJnlaw.jpeg" /></figure><p>The task is completed!!!!!</p><p>Now, delete entire cluster with this single command:</p><pre>&gt; eksctl delete cluster -f &lt;cluster-file-name&gt;</pre><p>Check manually all thing are deleted or not using GUI otherwise you get the bill amount😢😱😱😱😱</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*b8vLj2gxJUhtj6qCgghiKQ.png" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=da0d64a9674a" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>