<?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 Aastha Saxena on Medium]]></title>
        <description><![CDATA[Stories by Aastha Saxena on Medium]]></description>
        <link>https://medium.com/@aasthasaxena217?source=rss-4a86382be65c------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*xpNMQdj2_hlPdc9KiFVI4g.jpeg</url>
            <title>Stories by Aastha Saxena on Medium</title>
            <link>https://medium.com/@aasthasaxena217?source=rss-4a86382be65c------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Mon, 23 Nov 2026 22:29:11 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@aasthasaxena217/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[From Frontend Flair to Backend Brilliance: My Backend Developer Journey with NodeJs]]></title>
            <link>https://medium.com/@aasthasaxena217/from-frontend-flair-to-backend-brilliance-my-backend-developer-journey-with-nodejs-309f6c3417f0?source=rss-4a86382be65c------2</link>
            <guid isPermaLink="false">https://medium.com/p/309f6c3417f0</guid>
            <category><![CDATA[nodejs]]></category>
            <category><![CDATA[backend-development]]></category>
            <category><![CDATA[javascript]]></category>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[coding]]></category>
            <dc:creator><![CDATA[Aastha Saxena]]></dc:creator>
            <pubDate>Sun, 02 Feb 2025 08:56:00 GMT</pubDate>
            <atom:updated>2025-02-02T08:56:00.390Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*HJID8KKbor6KUXP8xX3Ukg.png" /></figure><p>Transitioning from frontend development to backend development is both exciting and challenging. As a frontend web designer with experience in HTML, CSS, and JavaScript, I had a solid grasp of the basics. I even knew a bit of Java for backend development. However, when I made the switch to Node.js, the real challenge wasn’t the language itself — it was API design, authentication, MySQL queries, handling joins, managing data flow from complex tables, and understanding MongoDB. Let’s dive into the experiences, lessons, and challenges of making this shift.</p><h3>Why Transition from Frontend to Backend?</h3><p>When I started as a frontend developer, I loved crafting beautiful interfaces and ensuring a seamless user experience. But there was always this lingering curiosity about what happened behind the scenes. I’d wonder, “How does the server know what data to send?” or “What magic powers this dynamic content?” Eventually, I realized that transitioning to backend development could answer these questions and elevate my skill set. Exploring backend development with Node.js felt like unlocking a new level in a game — it was challenging but equally rewarding. The promise of a broader skill set, understanding the bigger picture, and opening doors to career growth was irresistible.</p><h3>Challenges in the Transition</h3><h4>1. Mindset Shift:</h4><p>Initially, I struggled to adjust my thinking. Frontend development had always been about visuals, interactions, and the user’s perspective. Switching to backend meant focusing on logic, data flow, and system performance. It felt like switching from painting a picture to designing the frame that holds it. I had to train myself to prioritize functionality and efficiency over aesthetics — a shift that took time but became second nature with practice.</p><h4>2. API Design &amp; Authentication:</h4><p>One of my biggest challenges was designing APIs effectively. It wasn’t just about sending data back and forth; it was about structuring endpoints, handling authentication securely, and ensuring scalability. Implementing JWT-based authentication and OAuth felt overwhelming at first, but I soon realized the importance of security in backend development.</p><h4>3. Understanding Databases (MySQL &amp; MongoDB):</h4><p>SQL queries and database design were among the steepest learning curves. Unlike frontend development, where I mainly focused on fetching data, now I had to deal with complex queries, table joins, indexing, and optimizing large data sets. My first attempt at structuring MySQL tables resulted in messy queries, but over time, I learned efficient database structuring. Similarly, MongoDB felt like an entirely different world with its document-based storage, and understanding when to use NoSQL vs. SQL took time.</p><h4>4. Debugging &amp; Data Flow in Large Applications:</h4><p>Debugging in backend development was an entirely different beast. Gone were the browser’s developer tools I was accustomed to. Instead, I found myself navigating server logs and trying to pinpoint issues in my code. It was frustrating at first, but tools like Node.js Debugger and Postman became my trusted allies over time. Additionally, managing data flow between multiple services and large tables required a deep understanding of backend architecture.</p><h4>5. Dealing with Asynchronous Code:</h4><p>Ah, asynchronous code — my arch-nemesis during the early days. I’d write code that didn’t behave as expected and then spend hours figuring out why. Understanding callbacks, promises, and async/await was a game-changer. It took plenty of practice and a few “aha” moments, but eventually, I started to appreciate the power of asynchronous programming in Node.js.</p><h3>Steps to Ease the Transition</h3><h4>1. Start with the Basics:</h4><p>I began by reading the Node.js documentation and experimenting with simple HTTP servers. It was like learning the alphabet before writing sentences. Understanding the core concepts laid a strong foundation for everything that followed.</p><h4>2. Build Projects:</h4><p>Nothing solidified my learning like building projects. My first project was a basic to-do list API. It was clunky and full of bugs, but it taught me how to handle requests, responses, and data storage. Each project after that added a new layer of understanding.</p><h4>3. Learn About APIs:</h4><p>I remember the first time I successfully built a RESTful API. Structuring endpoints and handling HTTP methods felt empowering. It was a moment where I realized how backend systems communicate with the frontend.</p><h4>4. Practice Database Integration:</h4><p>Connecting my Node.js application to MySQL and MongoDB was another milestone. I’d create, read, update, and delete data, slowly gaining confidence in working with databases. Each query felt like solving a puzzle, and I started to understand when to use relational vs. NoSQL databases.</p><h4>5. Explore Frameworks:</h4><p>Once I had the basics down, frameworks like Express.js became my best friends. They simplified repetitive tasks and allowed me to focus on building features rather than reinventing the wheel.</p><h4>6. Dive into Authentication &amp; Security:</h4><p>Authentication initially seemed like a daunting concept. Implementing JWTs and OAuth felt like an uphill battle, but once I got it working, it was incredibly satisfying. Securing applications became a challenge I looked forward to solving.</p><h3>Top Resources to Kickstart Backend Development</h3><p>In my early learning phase, I didn’t start with books, which delayed my progress. However, you can accelerate your learning by reading while doing hands-on practice.</p><p><strong>Books</strong>:</p><ul><li>“Node.js Design Patterns” by Mario Casciaro.</li><li>“Eloquent JavaScript” by Marijn Haverbeke. It was my go-to resource for understanding asynchronous programming.</li></ul><p><strong>Courses</strong>:</p><ul><li>Udemy’s “The Complete Node.js Developer Course” .</li><li>FreeCodeCamp’s backend curriculum offered a structured approach to learning.</li><li><strong>Practice</strong>:</li><li>I spent hours on LeetCode and HackerRank, solving data structure problems and improving my logic.</li><li>Building clone projects, like a mini Todo List, user management system etc, gave me real-world experience.</li></ul><h3>Embrace the Journey</h3><p>Looking back, transitioning from frontend to backend development was one of the most rewarding decisions I’ve made. It wasn’t without its struggles, but every challenge taught me something valuable. Today, I feel more confident as a developer and more equipped to tackle complex problems.</p><p>To anyone considering this journey, I say: take it one step at a time. The road might be tough, but the destination is worth it. With Node.js, a vibrant community, and a thirst for learning, you’ll soon be building robust, scalable backend systems with ease.</p><p>And remember, the learning journey never ends! Stay tuned for Part 2, where I’ll dive deeper into backend development, sharing approaches and guidance for new learners from my perspective.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=309f6c3417f0" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How to stop auto-starting the apps in windows?]]></title>
            <link>https://medium.com/learntut/how-to-stop-auto-starting-the-apps-in-windows-e55f2945a119?source=rss-4a86382be65c------2</link>
            <guid isPermaLink="false">https://medium.com/p/e55f2945a119</guid>
            <category><![CDATA[technology]]></category>
            <category><![CDATA[desktop-application]]></category>
            <category><![CDATA[windows]]></category>
            <category><![CDATA[windows-10]]></category>
            <dc:creator><![CDATA[Aastha Saxena]]></dc:creator>
            <pubDate>Thu, 07 Jan 2021 09:56:52 GMT</pubDate>
            <atom:updated>2021-01-07T09:56:52.642Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/320/0*5xQ9hpKhDli1eVrs.png" /></figure><p>Have you ever wondered automatically apps start after you just turn on your PC. I personally don’t know about the Mac and Linux users, but in windows 10, apps start automatically after clicking power on the button within in 5 seconds. Well, every problem has a solution. This problem has also a brilliant solution.</p><p><strong>The reason behind it:</strong></p><p>Actually, in windows newly downloaded apps go to the startup apps section in the task manager. Startup section in the windows. Some applications are defined by the Microsoft and others are user-defined.</p><p>You can change the settings in the task manager.</p><p><strong>With task manager:</strong></p><p>&gt;Open task manager</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/512/0*HjP2L7vZ2cKzN7aL.png" /></figure><p>&gt; Go to startup</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/512/0*coKwav2v3Y3RaW_a.png" /></figure><p>&gt; Select the application you want to disable, click on the enable in the status section.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/320/0*C_9kJE9oyULNycu0.png" /></figure><p>&gt; Right-click and click on disable.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/512/0*2QxqDGdUui4R2tEf.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/512/0*ZvIIoHQzcIe2a-19.png" /></figure><p>This will disable the system of auto-restarting of the applications.</p><p>For more, go to our official blogger website page:</p><p><a href="https://freelearntut.blogspot.com/2021/01/how-to-stop-auto-starting-apps-in.html">How to stop auto-starting the apps in windows 10? Learn Tut</a></p><p>Thanks for reading :)</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e55f2945a119" width="1" height="1" alt=""><hr><p><a href="https://medium.com/learntut/how-to-stop-auto-starting-the-apps-in-windows-e55f2945a119">How to stop auto-starting the apps in windows?</a> was originally published in <a href="https://medium.com/learntut">LearnTut</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Cloud automation using Terraform — part 2 (using EFS)]]></title>
            <link>https://medium.com/@aasthasaxena217/cloud-automation-using-terraform-part-2-using-efs-4d2c7243ee01?source=rss-4a86382be65c------2</link>
            <guid isPermaLink="false">https://medium.com/p/4d2c7243ee01</guid>
            <category><![CDATA[ef]]></category>
            <category><![CDATA[aws]]></category>
            <category><![CDATA[terraform]]></category>
            <dc:creator><![CDATA[Aastha Saxena]]></dc:creator>
            <pubDate>Mon, 07 Sep 2020 11:37:40 GMT</pubDate>
            <atom:updated>2020-09-07T11:37:40.237Z</atom:updated>
            <content:encoded><![CDATA[<h3>Cloud automation using Terraform — part 2 (using EFS)</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/875/1*N2Ye3XuoQziYansA2zT-JQ.png" /></figure><p>Problem Statement:</p><p>1. Create Security group which allow the port 80.</p><p>2. Launch EC2 instance.</p><p>3. In this Ec2 instance use the existing key or provided key and security group which we have created in step 1.</p><p>4. Launch one Volume using the EFS service and attach it in your vpc, then mount that volume into /var/www/html</p><p>5. Developer have uploded the code into github repo also the repo has some images.</p><p>6. Copy the github repo code into /var/www/html</p><p>7. Create S3 bucket, and copy/deploy the images from github repo into the s3 bucket and change the permission to public readable.</p><p>8 Create a Cloudfront using s3 bucket(which contains images) and use the Cloudfront URL to update in code in /var/www/html</p><p>In this, I’m using EFS instead of EBS — but why?</p><p>Both EBS and EFS are faster, EBS is scalable up or down with a single API thus can be used for single ec2 instance but for large quantities of data, such as large analytic workloads, EBS does not fulfil the requirement and hence EFS is best.</p><p>So , all steps are same as in my this article <a href="https://medium.com/@aasthasaxena217/cloud-automation-using-terraform-e844fce9d23b">https://medium.com/@aasthasaxena217/cloud-automation-using-terraform-e844fce9d23b</a> only the EFS part is changed.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*uqELJglIl-BRMx279FPzwA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/985/1*N7YU3wT-z3MKMB9G6J-K-g.png" /><figcaption>EFS Security Group</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*KqBf2UWYSQFMNQz6LX8eew.png" /><figcaption>Code to create EFS</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*RVLoKWuPUebvIngGhKMcfA.png" /><figcaption>EFS CREATED</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*L44Bi0bUeKPOlZI6GiTCCQ.png" /><figcaption>S3 Bucket created</figcaption></figure><p>Thanks for reading :)</p><p>Open for suggestions….. 🙂🙂🙂</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=4d2c7243ee01" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Cloud automation using Terraform]]></title>
            <link>https://medium.com/@aasthasaxena217/cloud-automation-using-terraform-e844fce9d23b?source=rss-4a86382be65c------2</link>
            <guid isPermaLink="false">https://medium.com/p/e844fce9d23b</guid>
            <category><![CDATA[terraform]]></category>
            <category><![CDATA[aws]]></category>
            <category><![CDATA[cloud]]></category>
            <dc:creator><![CDATA[Aastha Saxena]]></dc:creator>
            <pubDate>Wed, 02 Sep 2020 16:34:35 GMT</pubDate>
            <atom:updated>2020-09-02T16:34:35.889Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*BrT6mYH_K1jE-V-Dsg9o3w.png" /></figure><p>This article will give you a idea of how we can create an instance , storage and volumes and other cloud services.</p><p>Task Overview:</p><p>→ Have to create/launch Application using Terraform</p><p>1. Create the key and security group which allow the port 80.</p><p>2. Launch EC2 instance.</p><p>3. In this Ec2 instance use the key and security group which we have created in step 1.</p><p>4. Launch one Volume (EBS) and mount that volume into /var/www/html</p><p>5. The developer has uploaded the code into GitHub repo also the repo has some images.</p><p>6. Copy the GitHub repo code into /var/www/html</p><p>7. Create an S3 bucket, and copy/deploy the images from GitHub repo into the s3 bucket and change the permission to public readable.</p><p>8 Create a Cloudfront using s3 bucket(which contains images) and use the Cloudfront URL to update in code in /var/www/html</p><p>So let us learn what technologies we are using and what they are.</p><p>What is<strong> Amazon Web services OR AWS?</strong></p><p>AWS is a cloud service platform which provides infrastructure technologies like compute, storage, and databases–to emerging technologies.</p><p>Why use terraform?</p><p><strong>Terraform</strong> is <strong>cloud</strong>-agnostic and allows a single configuration to be <strong>used</strong> to manage multiple providers, and to even handle cross-<strong>cloud</strong> dependencies. This simplifies management and <strong>orchestration</strong>, helping operators build large-scale multi-<strong>cloud</strong> infrastructures.</p><p>It is<strong><em> open-source</em></strong> and<strong><em> infrastructure as a code software developed by HarshiCorp.</em></strong></p><p>You can download and install terraform from its official website.</p><p><a href="https://www.terraform.io/downloads.html">https://www.terraform.io/downloads.html</a></p><p>To use terraform, first we need to download it and its plugins. So, we are going to create a separate folder in which we will keep our terraform code.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/606/1*u2MG5fKnxVPpRDs3FIWRQA.png" /></figure><p>Now installing plugins by using “terraform init” command.</p><p>This command will install the required plugin to run the terraform code.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/606/1*BdxL8-Z0Pu9ft0yVLgiMGg.png" /></figure><h3>Now creating the terraform code.</h3><p>Using notepad, we can easily create our code.</p><p><strong>Choosing AWS provider:</strong></p><p>Terraform supports all cloud providers. In terraform code we have to write the provider name here. In this case, we are using AWS. We have chosen the Mumbai region(<em>ap-south-1</em>) and an IAM profile (<em>aastha19</em>) in this case. You can create your new profile in going to IAM section in the AWS console.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/409/1*H5a0pw7mV27OtH8CZAW1NA.png" /></figure><p><strong>Creating a key pair:</strong></p><p><em>Key Pair: Key pair is an identity and contains credentials which are required to connect with an instance, it works like a proof.</em></p><p>Why we are using RSA as an algorithm? you can study deeply about it from AWS official website</p><p>.<a href="https://docs.aws.amazon.com/crypto/latest/userguide/concepts-algorithms.html">https://docs.aws.amazon.com/crypto/latest/userguide/concepts-algorithms.html</a></p><p>It will be a private key so , we are giving its location to be saved in that location.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/606/1*isWstAvVYVa0LC7GIYAzTw.png" /></figure><p><strong>Creating security group:</strong></p><p><em>Security Group: It works like a firewall to control incoming and outgoing traffic on instances. We have to set some inbound and outbound rules to control instances traffic.</em></p><p>We are giving our already made VPC’s id.<strong> Amazon VPC or Virtual Private Cloud</strong> gives you a part of aws cloud on which you can setup your network and launch aws resources.</p><p><strong>Ingress</strong> is traffic that enters the boundary of a network and<strong> Egress </strong>implies that exiting a network boundary.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/606/1*Zm0BwNGrxYSXWyT8pelZJA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/506/1*HKY2KEnMI8umdmPTyfSU7w.png" /></figure><p><strong>Creating Instance:</strong></p><p>Giving its an Amazon AMI id <strong>Amazon Linux AMI 2018.03.0 (HVM), SSD Volume Type and provisioning with its some command s which have to be run after the instance is ready.</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/606/1*d-gZRS8hs0e-IQtlJqWl0Q.png" /></figure><p><strong>Creating EBS volume:</strong></p><p>EBS volume is nothing but a Pendrive device for your instance. It is a powerful service from AWS which provides you with block storage or persistent storage which can be added or removed from your instance.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/894/1*CP4ptTcEbDcM_zrJ_KpzRw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Y1ZBpf6tHsd0MiHSG6vr1A.png" /></figure><p><strong>Creating an S3 Bucket:</strong></p><p>An Amazon <strong>S3 bucket</strong> is a public cloud storage resource available in <strong>Amazon Web Services</strong>’ (<strong>AWS</strong>) Simple Storage Service (<strong>S3</strong>), an object storage offering. Amazon <strong>S3 buckets</strong>, which are similar to file folders, store objects, which consist of data and its descriptive metadata.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/886/1*zaqKOEOKY3653BXaCxjRSA.png" /></figure><p>Creating Cloudfront service:</p><p>It is a content delivery network that securely networks your data and applications.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*iN9BdOPvf8kiRdOBntl1tg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1023/1*XH_xe0KkaqkBXRqrLjC7wQ.png" /></figure><p>You can refer my GitHub code :</p><h4><a href="https://github.com/aasthasaxena217/terraform_cloud_task1">https://github.com/aasthasaxena217/terraform_cloud_task1</a></h4><p>Now, what else? by running this code using “terraform apply “ command , we can simply create our services .</p><p><strong>Instance Created:</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*xzSUjSCRXb_d7CDRp0Rv5g.png" /></figure><p><strong>EBS Volume Created:</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*8Au1pZNobq6osYJX_-HTPA.png" /></figure><p>S3 Bucket created:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*WFQsYYVF8whsHhscxwsp-g.png" /></figure><p>Cloud Front Launched:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*SMoJY_fXE5aaXz_A40IUaw.png" /></figure><p>Here, we have completed <strong>:)</strong></p><p>Thanks for reading , open for suggestions</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e844fce9d23b" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Kubernetes Integration with Prometheus and Grafana]]></title>
            <link>https://medium.com/@aasthasaxena217/kubernetes-integration-with-prometheus-and-grafana-b84258923d5d?source=rss-4a86382be65c------2</link>
            <guid isPermaLink="false">https://medium.com/p/b84258923d5d</guid>
            <category><![CDATA[kubernetes]]></category>
            <category><![CDATA[devops]]></category>
            <category><![CDATA[prometheus]]></category>
            <category><![CDATA[grafana]]></category>
            <dc:creator><![CDATA[Aastha Saxena]]></dc:creator>
            <pubDate>Mon, 24 Aug 2020 10:26:38 GMT</pubDate>
            <atom:updated>2020-08-24T10:30:51.827Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/515/1*HzeeHqvaR1NxP3Wx0FvvPg.png" /></figure><p>In this article, I will gonna explain to you how you can integrate Kubernetes and Grafana and deploy them on Kubernetes.</p><p>Our Task Overview: Integrate Prometheus and Grafana and perform in the following way:<br>1. Deploy them as pods on top of Kubernetes by creating resources Deployment, ReplicaSet, Pods or Services<br>2. And make their data to remain persistent <br>3. And both of them should be exposed to the outside world.</p><p>Solution:</p><p>We have to make a persistent volume, persistent volume claim Deployment file.</p><p>For Deployment, we need an image in which Prometheus and grafana should be configured.</p><p>We need a docker image, which should be configured with the requirements to launch Prometheus and Grafana.</p><p>So, I’m creating a Dockerfile to make a Docker image.</p><p>Using ‘vi’ command you can write the following code to make every file. Example, use following command to make Dockerfile.</p><p>vi Dockerfile</p><p>For Prometheus:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/829/1*8klpDjzQObXL2_fJYIfd5Q.png" /><figcaption>Dockerfile code</figcaption></figure><p>For Grafana:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/829/1*E1p32yfFQI3DA9JCdQ3gEw.png" /><figcaption>Dockerfile code</figcaption></figure><p>Now we have to build the images and have to push them to the docker hub, so we can use them publicly and anywhere.</p><p>Building the images:</p><p>For Prometheus:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/826/1*JnsgUrO3DWdz_vz14oSP7Q.png" /><figcaption>Image Building</figcaption></figure><p>For Grafana:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/831/1*IADBDpEdhPnYqXdGja9NAQ.png" /><figcaption>Image Building</figcaption></figure><p>Now for pushing to the docker hub, we need to tag them with our username of the docker hub account.</p><p>And then we can simply push them to the docker hub.</p><p>For Prometheus:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/829/1*TNSb2gbG3XYRxaAOfeWkdw.png" /><figcaption>Pushing to the docker hub</figcaption></figure><p>For Grafana:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/829/1*-1aA7e_r5nMZU3epozmpxw.png" /><figcaption>Pushing to the docker hub</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*oITseGVvtFwEBU17TN3QbA.png" /><figcaption>Images are pushed to the docker hub</figcaption></figure><p>You can see my images are successfully pushed to docker hub.</p><p>Now, we have to make persistent volume files for Prometheus and grafana.</p><p>For Prometheus:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/829/1*zpEA1SUBsPlZgtp2i-bfIA.png" /><figcaption>Code for the persistent volume of prometheus</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/829/1*dqEW_Nf2prfOeZFWWFkoog.png" /><figcaption>Persistent Volume is created.</figcaption></figure><p>For Grafana:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/829/1*yTcwsg5wlcu16uQ3H-mr7w.png" /><figcaption>Code for the persistent volume of grafana.</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/829/1*aNToS50lm3VPQsr8tb6OEg.png" /></figure><p>Now, we have successfully made our persistent volumes for both Prometheus and grafana. Now, we have to create a persistent volume claim for persistent volume.</p><p>For Prometheus:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/830/1*-fWa8F--EkpwQL73-V60Cw.png" /><figcaption>Code for Persistent Volume Claim for Prometheus</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/833/1*Oxp3SQh_ehG_c1Xz1ihXFQ.png" /><figcaption>PVC is created</figcaption></figure><p>For Grafana:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/828/1*pXBgUCF8mirrbNLScL2RFw.png" /><figcaption>Code for Persistent Volume Claim for grafana</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/829/1*rOXAs6smN4Recp7ZfvKh7A.png" /><figcaption>PVC is created</figcaption></figure><p>Now, we have to create a deployment file for both Prometheus and grafana separately.</p><p>For Prometheus:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/829/1*PZJ-SYuQ1GI-SB2aSpKhFA.png" /><figcaption>Code for deployment file for Prometheus</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/949/1*lzplUhYBqQDF3gkzJZ4xeA.png" /><figcaption>Deployment is created</figcaption></figure><p>For Grafana:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/829/1*2if6wFtQ8wATFSNuIDmXWw.png" /><figcaption>Code for deployment for grafana</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/924/1*32z7LB3wUgPgi3ch2hRyzg.png" /><figcaption>Deployment is created</figcaption></figure><p>Exposing them :</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/830/1*pKR2w1K9hG2MqgEFPR2TUg.png" /><figcaption>Deployments are exposed</figcaption></figure><p>You can see that our services are successfully running.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/829/1*92RtkZxS_-XqcsmvBW6_Bg.png" /><figcaption>All the services are running</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*PdrZjAQz2NQuCWydCPw0oA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*hEs72rG7pgOCCVnLWuamdQ.png" /></figure><p>Thanks for reading :)</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b84258923d5d" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>