<?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 Varshit Agarwal on Medium]]></title>
        <description><![CDATA[Stories by Varshit Agarwal on Medium]]></description>
        <link>https://medium.com/@vikyagarwal473?source=rss-1d42de495113------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/2*p2EPxXoaPl_DRXAef6o9Vw.jpeg</url>
            <title>Stories by Varshit Agarwal on Medium</title>
            <link>https://medium.com/@vikyagarwal473?source=rss-1d42de495113------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Mon, 30 Nov 2026 14:12:51 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@vikyagarwal473/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[Deploy Stack To Docker Swarm]]></title>
            <link>https://medium.datadriveninvestor.com/deploy-stack-to-docker-swarm-1b23582d0279?source=rss-1d42de495113------2</link>
            <guid isPermaLink="false">https://medium.com/p/1b23582d0279</guid>
            <category><![CDATA[stack]]></category>
            <category><![CDATA[docker-swarm]]></category>
            <category><![CDATA[docker]]></category>
            <category><![CDATA[docker-compose]]></category>
            <category><![CDATA[containerization]]></category>
            <dc:creator><![CDATA[Varshit Agarwal]]></dc:creator>
            <pubDate>Fri, 10 Apr 2020 14:51:00 GMT</pubDate>
            <atom:updated>2020-04-11T12:53:41.026Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/899/1*1ddhn6dsnSruEGHYyxw0gQ.png" /><figcaption>Docker Swarm</figcaption></figure><p>In this blog, I am going to show you by deploying an application that consists of a Python app that maintains a counter in a Redis instance and increments the counter whenever you visit it. It’s not an introductory tutorial, but I’ll create one in the future.</p><p>Docker swarm is a quite new addition to Docker (from version 1.12). It’s designed to easily manage container scheduling over multiple hosts, using Docker CLI.</p><h3>pre-requisite</h3><p>1] docker swarm mode should be configured <br>2] docker-compose version 1.10 or later should be installed</p><p><strong>Note</strong>: If you’re trying things out on a local development environment, you can put your engine into swarm mode and<strong> </strong>If you’ve already got a multi-node swarm running, keep in mind that all commands must be run from a manager node.</p><p>first, check the docker swarm mode is configured properly:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/787/1*sc7s0uyH-6asJYINm28oNQ.png" /></figure><p>now, set up the docker registry because a swarm consists of multiple Docker Engines, a registry is required to distribute images to all of them. Start the registry as a service on your swarm and check its status also.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/973/1*qamWsymXvEqscoGhiKbtUg.png" /></figure><p>deploy an application to understand the stack to swarm, now create a workspace where all required program going to write. first Create a file called app.py in the Project Workspace and write this code in it.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/922/1*MwbQ9GfaDTEPj27ZHjK1vQ.png" /></figure><p>Create a file called requirements.txt and write these two lines in:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/842/1*xREoyWQAaSlxxEwnnyP4hw.png" /></figure><p>Create a file called Dockerfile and Create a file called docker-compose.yml and write some lines respectively.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/830/1*FTUV7gO8N7jrJI5DPAaRTg.png" /></figure><p>start with the compose by Start the app with docker-compose up. This builds the web app image, pulls the Redis image if you don’t already have it, and creates two containers.</p><p><a href="https://www.datadriveninvestor.com/2020/03/29/microsoft-having-an-edge-over-chrome/">DataDrivenInvestor | Microsoft Having An &#39;Edge&#39; Over Chrome</a></p><p>You see a warning about the Engine being in swarm mode. This is because Compose doesn’t take advantage of swarm mode, and deploys everything to a single node. You can safely ignore this.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*dmDOHLHnb5TxbJq8GFHHYw.png" /></figure><p>Check that the app is running with docker-compose ps command :</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*uLz5opChSdilFrup19sZDQ.png" /></figure><p>now you can test the app by using curl command or browse node IP in chrome with the port number.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/725/1*Ub6UBNH5iACEWnjAgXgb7g.png" /></figure><p>after that bring the app down before push the generated image into the registry.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/769/1*G30LhLgcKbPxaFAtRqIXLg.png" /></figure><p>To distribute the web app’s image across the swarm, it needs to be pushed to the registry you set up earlier. With Compose, this is very simple:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/940/1*zVRCcL8dJOA6kdJoz8BREQ.png" /></figure><p>The stack is now ready to be deployed and Create the stack with docker stack deploy The last argument is a name for the stack. Each network, volume and service name is prefixed with the stack name and Check that it’s running with docker stack services demo:Once it’s running, you should see 1/1 under REPLICAS for both services. This might take some time if you have a multi-node swarm, as images need to be pulled.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/952/1*6AIoDgokL7tyX5-ry720aA.png" /></figure><p>As before, you can test the app with curl and Thanks to Docker’s built-in routing mesh, you can access any node in the swarm on port 8000 and get routed to the app:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*0JtiijroufCJmWg4Nt6osg.jpeg" /><figcaption>Chrome with connecting with container</figcaption></figure><p>This is my experience working with Docker Swarm. I’ve considered other options, but in my opinion. For the easiest required files have been found here: <a href="https://github.com/VarshitAgarwal/Docker_Swarm.git">https://github.com/VarshitAgarwal/Docker_Swarm.git</a>.</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fupscri.be%2Fb2a0d6%3Fas_embed%3Dtrue&amp;dntp=1&amp;display_name=Upscribe&amp;url=https%3A%2F%2Fupscri.be%2Fb2a0d6%2F&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=upscri" width="800" height="400" frameborder="0" scrolling="no"><a href="https://medium.com/media/0707f5c806284d01a4a13c7b13a91ce3/href">https://medium.com/media/0707f5c806284d01a4a13c7b13a91ce3/href</a></iframe><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=1b23582d0279" width="1" height="1" alt=""><hr><p><a href="https://medium.datadriveninvestor.com/deploy-stack-to-docker-swarm-1b23582d0279">Deploy Stack To Docker Swarm</a> was originally published in <a href="https://medium.datadriveninvestor.com/">DataDrivenInvestor</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Exploring Kubernetes With Minikube]]></title>
            <link>https://faun.pub/exploring-kubernetes-with-minikube-f754a549b05d?source=rss-1d42de495113------2</link>
            <guid isPermaLink="false">https://medium.com/p/f754a549b05d</guid>
            <category><![CDATA[cluster]]></category>
            <category><![CDATA[kubernetes]]></category>
            <category><![CDATA[container-orchestration]]></category>
            <category><![CDATA[orchestration]]></category>
            <category><![CDATA[devops]]></category>
            <dc:creator><![CDATA[Varshit Agarwal]]></dc:creator>
            <pubDate>Sun, 01 Dec 2019 06:11:11 GMT</pubDate>
            <atom:updated>2019-12-01T20:22:32.786Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/588/1*F_5HMDwYmNLQTZyGqSUURg.png" /><figcaption>Kubernetes v1.16</figcaption></figure><p>In the good old days, software were designed and deployed as monolithic applications. In monolithic applications, a single host performed all the functions.The majority of these applications were organization based applications, meant to be used by a single company or department. They were deployed and maintained by their own resources. These applications were primarily used for simple tasks like billing and so on.</p><p>The technology revolution forward during the late nineties and mid 2000s, pushed the points of confinement of what’s conceivable from software applications began performing an ever increasing number of complex errands, similar to business insight, client relationship the board, and so on.</p><h4><strong>Rise of Cloud and Containerization</strong></h4><p>As the size of the applications, and the interest for their non-stop accessibility developed, keeping up these applications on-premises turned into a test.The expense and building exertion required to keep up the physical equipment seemed well and good. Rather, another option immediately turned into the prevalent decision, on-request distributed computing platforms.Cloud computing stages offered the physical equipment assets required to run the applications as a help.These associations guarantee high accessibility and unwavering quality of their foundation, and charge their clients based on what number of assets they utilized,what’s more, for to what extent.</p><p>Indeed, even with cloud dealing with the physical equipment issue, there are various issues in an application life-cycle that stay unsolved — improvement and arrangement, or we can say development and deployment.</p><p>The principal key of advancement, that turned into an essential piece of the answer for handle the distributed applications on the cloud, was Containerization.</p><p>Containerization is the practice of deploying applications by packaging them in a container,when the business embraced containerization, the requirement for our second key development was conceived. This innovation was the container orchestration system. On a high level, a container orchestration system allows the user to effectively manage the deployment of containerized applications.</p><h4><strong>Birth of Kubernetes</strong></h4><p>Early on, they realized the advantages of containerization, when performing deployment operations at large scale. They then went on to design a system for automating containerized application deployment, scaling, and management. This attempt at designing a system which could reliably function at the scale of Google, gave the engineering team rare and useful insights. After realizing how ubiquitous the problems they solved were, Google’s engineering team considered democratizing this technology, and <br>started working on a new project — reshaping the concepts behind their internal projects, to work in tandem with other open source technologies.<br>In 2014, Google open-sourced this project with the name Kubernetes.</p><p><strong>Kubernetes</strong> is a powerful open-source system, initially developed by Google, for managing containerized applications in a clustered environment.<br>It aims to provide better ways of managing related, distributed components and services across varied infrastructure.</p><h4><strong>Starting With Minikube</strong></h4><p>It is commonly described as a way for people to get some hands-on experience with Kubernetes by managing a cluster locally. It can also be used in day-to-day development tasks. Now time to hand dirty with implementation of minikube locally.</p><p>Note: [This Demonstration totally based on the Windows]</p><h4>Pre-requisite</h4><p>1] Windows 10 Laptop. VT-x/AMD-v virtualization must be enabled in BIOS.<br>2] Oracle VM box should be install in the windows.<br>3] you should log in with administrator power.</p><h4>Minikube Installation</h4><p>The first step is to download the<strong> </strong><a href="https://storage.googleapis.com/kubernetes-release/release/v1.16.0/bin/windows/amd64/kubectl.exe"><strong>kubectl.exe</strong></a> and place into C:\folder and next step is to download the minikube binary from the following location: <a href="https://github.com/kubernetes/minikube/releases/tag/v1.5.2">https://github.com/kubernetes/minikube/releases/tag/v1.5.2</a>.</p><p>This will start downloading the <strong>v1.5.2</strong> release of the executable. The file name is <strong>minikube-windows-amd64.exe</strong>. Just rename this to <strong>minikube.exe</strong> and place it in <strong>C:\</strong> drive, alongside the <strong>kubectl.exe</strong> file.</p><p>All the steps moving forward are being done in Command line. Launch command line by win+r and type cmd hit enter and navigate to C:\ drive where the kubectl.exe and minikube.exe files are present.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/679/1*LFJY5Dxd2rS0BjdN30Uqdw.png" /><figcaption>cmd interface</figcaption></figure><p>Now open Oracle VM box along with Cmd line to understand the approach and construction of virtual machine or minikube.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*BSuWjHjGkJ3OPmMOIvt2Vg.png" /></figure><p>Now Type Following command to install minikube:<br> &gt; minikube.exe start</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ykn30eOI6rVbGjI3Kd9L-w.png" /><figcaption>minikube running</figcaption></figure><p>It take few minutes to complete and if u able to see running virtual node inside oracle box and command complete successfully . It mean minikube installation is done and single node cluster is ready to deploy the application.</p><p>Let’s create a Kubernetes Deployment using an existing image named “echoserver” which is a simple HTTP server.</p><p>&gt;kubectl create deployment hello-minikube --image=k8s.gcr.io/echoserver:1.10</p><p>To access the hello-minikube Deployment, expose it as a Service:</p><pre>kubectl expose deployment hello-minikube --type=NodePort --port=8080 </pre><p>The hello-minikube Pod is now launched but you have to wait until the Pod is up before accessing it via the exposed Service. Check if the Pod is up and running:</p><p>kubectl get pod</p><p>If the output shows the STATUS as ContainerCreating, the Pod is still being created and get the URL of the exposed Service to view the Service details:</p><p>minikube service hello-minikube --url</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*DYKIqVcZYVJIlp2mlZkKeg.png" /></figure><p>after exposing the service last command will give you the link of an application that is running inside the container so outside network will access the link.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*WAmtNHr2FZAcSOJPBVtTcg.png" /></figure><p>At the end of this blog you will able to deploy your first containerization application on minikube and for more details follow Kubernetes officials documentation. &gt;&gt; <a href="https://kubernetes.io/docs/setup/learning-environment/minikube/#quickstart">https://kubernetes.io/docs/setup/learning-environment/minikube/#quickstart</a>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/727/0*Piks8Tu6xUYpF4DU" /></figure><p><strong>Follow us on </strong><a href="https://twitter.com/joinfaun"><strong>Twitter</strong></a><strong> </strong>🐦<strong> and </strong><a href="https://www.facebook.com/faun.dev/"><strong>Facebook</strong></a><strong> </strong>👥<strong> and join our </strong><a href="https://www.facebook.com/groups/364904580892967/"><strong>Facebook Group</strong></a><strong> </strong>💬<strong>.</strong></p><p><strong>To join our community Slack </strong>🗣️ <strong>and read our weekly Faun topics </strong>🗞️,<strong> click here⬇</strong></p><figure><a href="https://www.faun.dev/join/?utm_source=medium.com%2Ffaun&amp;utm_medium=medium&amp;utm_campaign=faunmediumbanner"><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*oSdFkACJxs5iy1oR" /></a></figure><h4>If this post was helpful, please click the clap 👏 button below a few times to show your support for the author! ⬇</h4><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f754a549b05d" width="1" height="1" alt=""><hr><p><a href="https://faun.pub/exploring-kubernetes-with-minikube-f754a549b05d">Exploring Kubernetes With Minikube</a> was originally published in <a href="https://faun.pub/">FAUN.dev() 🐾</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Block Storage Automation]]></title>
            <link>https://medium.com/@vikyagarwal473/block-storage-automation-412743f3f383?source=rss-1d42de495113------2</link>
            <guid isPermaLink="false">https://medium.com/p/412743f3f383</guid>
            <category><![CDATA[storage-solutions]]></category>
            <category><![CDATA[lvm]]></category>
            <category><![CDATA[partition]]></category>
            <category><![CDATA[automation]]></category>
            <category><![CDATA[ansible]]></category>
            <dc:creator><![CDATA[Varshit Agarwal]]></dc:creator>
            <pubDate>Wed, 30 Oct 2019 17:43:03 GMT</pubDate>
            <atom:updated>2019-10-30T17:43:03.816Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*FKrQJeppMFvVa42I" /></figure><p>Linux is the best-known and most-used open Source operating system. As an operating system, Linux is software that sits underneath all of the other software on a computer, receiving requests from those programs and relaying these requests to the computer’s hardware.and tooling to manage hardware devices, including storage drives. In this blog we’ll cover, at a level, how Linux and ansible make thing easier and help to do less manual configuration.</p><p><strong>How Ansible came into Existence?</strong></p><p>Ansible is an open-source IT automation engine, which can remove drudgery from your work life, and will also dramatically improve the scalability, consistency, and reliability of your IT environment. We’ll start to explore how to automate repetitive system administration tasks using Ansible.</p><p>Ansible can automate IT environments whether they are hosted on traditional bare metal servers, virtualization platforms, or in the cloud. It can also automate the configuration of a wide range of systems and devices such as databases, storage devices, networks, firewalls, and many others.</p><p>today in this blog i going to show you how to automate the Logical volume without doing any manually configuration.</p><p><strong>What is LVM ?</strong></p><p>Logical Volume Manager (LVM) is a software-based RAID-like system that lets you create “pools” of storage and add hard drive space to those pools as needed. There are lots of reasons to use it, especially in a data center or any place where storage requirements change over time. Many Linux distributions use it by default for desktop installations, though, because users find the flexibility convenient and there are some built-in encryption features that the LVM structure simplifies.</p><p>To know more about <a href="https://opensource.com/business/16/9/linux-users-guide-lvm">LVM</a> :</p><p><strong>prerequisite:</strong></p><p>1] extra Hard disk should be attached for Demonstration<br>2] maximum 2 Partition Should Required</p><p>Step 1: make a 2 partition in extra added hard disk</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*meW_mXwdOrJ-5iyUuy6CVw.png" /></figure><p>Step2 : Add the partition into Physical Volume.</p><p><em>#pvcreate /dev/sdb1 /dev/sdb2<br>#pvdisplay</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*auwCd0Ye7ipeDDn_kmjjjg.png" /></figure><p>Now a make playbook to automate the Lvm configuration, to copy the playbook follow the <a href="https://github.com/VarshitAgarwal/Lvm_automated.git">link</a>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*937k_85XxPYD0cEVlnSUaQ.png" /></figure><p>run the playbook using following command</p><p>#<em>ansible-playbook lvm.yml</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*lkmjQU0KQ67nVGRSTlWzAw.png" /></figure><p>now run following command to see the configured Lvm</p><p><em>#lvdisplay</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*c7Tl5_uDIinmPBFF2ZFW7g.png" /></figure><p><strong>Conclusion</strong></p><p>At the end ,of this you can see that Lvm created successfully and mounted under given Directory without doing a Manual configuration, even you can make your Storage as a Service by doing same Procedure for providing block storage to another Remote Instance, that the beauty of ansible it help the human to reduce the effort and intervention of less human error.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=412743f3f383" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Deployment of Ansible Roles[WordPress +php-fpm+Nginx]]]></title>
            <link>https://medium.com/@vikyagarwal473/deployment-of-ansible-roles-wordpress-php-fpm-nginx-6d61af4261f1?source=rss-1d42de495113------2</link>
            <guid isPermaLink="false">https://medium.com/p/6d61af4261f1</guid>
            <category><![CDATA[wordpress]]></category>
            <category><![CDATA[database]]></category>
            <category><![CDATA[ansible]]></category>
            <category><![CDATA[blogging]]></category>
            <category><![CDATA[automation]]></category>
            <dc:creator><![CDATA[Varshit Agarwal]]></dc:creator>
            <pubDate>Fri, 25 Oct 2019 17:43:48 GMT</pubDate>
            <atom:updated>2019-10-25T17:43:48.746Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/560/1*km-NWFkdd_cokNPllAOepA.png" /></figure><p>In case you’re in IT, you’re finding out about Ansible increasingly more of late. CIO considers it the DevOps “sweetheart” for orchestration the script, including that Ansible “has appeared suddenly to be the №1 decision for software automation in numerous associations.” StackShare records in excess of 1,000 organisations that utilisation Ansible, including Intel, Evernote, and Hootsuite, and the Ansible blog says Apple and NASA have received it too. So what precisely is Ansible, and why has it picked up prominence so rapidly? We’ll dig into that here, and we’ll additionally disclose to you somewhat concerning why Ansible work so well together. Let get Started !</p><p><strong>Introduction of Ansible</strong></p><p>Ansible is an open-source automation tool, or platform, used for IT tasks such as configuration management, application deployment, intraservice orchestration and provisioning. Automation is crucial these days, with IT environments that are too complex and often need to scale too quickly for system administrators and developers to keep up if they had to do everything manually. Automation simplifies complex tasks, not just making developers’ jobs more manageable but allowing them to focus attention on other tasks that add value to an organization. In other words, it frees up time and increases efficiency. And Ansible, as noted above, is rapidly rising to the top in the world of automation tools. Let’s look at some of the reasons for Ansible’s popularity.</p><p><strong>How Ansible Roles make things Easy!!</strong></p><p>Roles provide a framework for fully independent, or interdependent collections of variables, tasks, files, templates, and modules.</p><p>In Ansible, the role is the primary mechanism for breaking a playbook into multiple files. This simplifies writing <strong>complex playbooks</strong>, and it makes them easier to reuse. The breaking of playbook allows you to logically break the playbook into reusable components.</p><p>Each role is basically limited to a particular functionality or desired output, with all the necessary steps to provide that result either within that role itself or in other roles listed as dependencies.</p><p>Roles are not playbooks. Roles are small functionality which can be independently used but have to be used within playbooks. There is no way to directly execute a role. Roles have no explicit setting for which host the role will apply to.</p><p>Top-level playbooks are the bridge holding the hosts from your inventory file to roles that should be applied to those hosts.</p><p><strong>Pre-requisite before implementation :</strong></p><p>1] Git should be installed<br>2] basic knowledge of Ansible Roles<br>3] Network should be configured</p><p><strong>Installation and Demonstration of WordPress +Database</strong></p><p>first install an ansible rpm using yum :</p><p><em># yum install ansible</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*37egallC90YK4NO54bmgkA.png" /><figcaption>Installation of Ansible 2.8</figcaption></figure><p>confirm the Ansible Version using following Command:</p><p><em># ansible -version</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*tKZhV5O51PCoT63oi5gzXw.png" /></figure><p>clone the <a href="https://github.com/VarshitAgarwal/automated_wordpress.git"><strong>Repository</strong></a> to deploy the wordpress +database using ansible</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*p1ZChC6JlQnd0C6wy8hiYQ.png" /></figure><p>open hosts file and change accordingly your system ip Address</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*oD6Vm_sHFdeQRD2VT34xMw.png" /></figure><p>see, how ansible role make things easier instead of writing different playbook of wordpress and php it use role for deployment and made complex playbook into simpler one.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*5lxkekePuI5jK03Mpgw7Eg.png" /></figure><p>Now, run the wordpress.yml script to deploy the wordpress and database by running following Command:</p><p>#<em>ansible-playbook -i hosts wordpress.yml</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*wI40l5SohwjpJys2Y3ourw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*P3tuWN_6Mpq71UQnnsxf-Q.png" /></figure><p>now open firefox and Enter &lt;ip address&gt;:80</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*VrUh5ec5g8nQNkzJluZW5Q.png" /></figure><p>Enter required details to proceed further.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*5AplgoB5aPFNyo6Un-Fqzw.png" /></figure><p>after this page you have been install WordPress successfully and Click on Log in button</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*LEFkjTB3NIHqqkLSKemyTA.png" /><figcaption>\</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*mQ9T0OniOgMzR8F_150EEg.png" /></figure><p>after customize your site you can create your Blogging Website using wordpress.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*bOtNk2jiqOMQa8uPXsNaCA.png" /></figure><p>finally, successfully Deployed Wordpress + php-fpm + ngnix using Ansible role and seen how ansible role make complex playbook into easy one.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=6d61af4261f1" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[The Power of “D” Could Lead To Startups (DevOps, Data Science and Data Structure)]]></title>
            <link>https://medium.com/@vikyagarwal473/power-of-d-f97dc7936f4a?source=rss-1d42de495113------2</link>
            <guid isPermaLink="false">https://medium.com/p/f97dc7936f4a</guid>
            <category><![CDATA[devops]]></category>
            <category><![CDATA[techology]]></category>
            <category><![CDATA[entrepreneurship]]></category>
            <category><![CDATA[starups]]></category>
            <category><![CDATA[data-science]]></category>
            <dc:creator><![CDATA[Varshit Agarwal]]></dc:creator>
            <pubDate>Sun, 20 Oct 2019 14:50:00 GMT</pubDate>
            <atom:updated>2019-10-20T14:50:00.644Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*3LRBID2RS1fR0jtwRA3rAw.png" /><figcaption>Power of D</figcaption></figure><p>Startups are presently ready to perform all the more effectively and productively because of the most recent tech innovations and arrangements. In any case, constant changes in innovation are likewise making a great deal of difficulties for associations.</p><p>Keeping awake to date with the business innovation that is changing constantly is one of the greatest tech challenges for new businesses. They may regularly need to put resources into redesigned business innovation not exclusively to encounter an expansion in efficiency yet to bring down the general business overheads moreover. In this advanced world, each start up necessities to move quick and embrace new tech arrangements that can be exceptionally expensive for independent ventures eventually and can likewise keep them from pursuing their centre business targets.</p><p>The superb part of this segment is that you can make the product your very own through advancement of Technology. There are less limits as far as how your product can advance and develop into an different beast.</p><p>With respect to gross overall revenues, there is no physical product you should hold, keep up and convey in the exacting sense. Sending codes by means of email is less expensive and more reasonable than delivery items by lorry, ship or compartment, in a manner of speaking.</p><p>The limits of passage for universal business are not applicable — as long as you are language agreeable. In general, the magnificence of the tech-new company is the potential for high development, scope, and new advancement.</p><p><strong>How DevOps Help in growth of business?</strong></p><p>Current market is a thing brimming with wanders aimlessly at each corner that requires adaptability and capacity to adjust to the regularly changing situation. “Agility “ is the word that best portrays the stuff to be aggressive in the advanced world.</p><p>You basically won’t prepare anyplace in the event that you aren’t to modify as per the circumstance and curve it to your advantage. It is valid for most ventures, yet particularly so in programming advancement. cue DevOps.</p><p>In the present quick paced condition, it is basic for associations to receive better approaches for attempting to be in front of the challenge. At the point when executed effectively, DevOps culture can change your product procedure as well as make an incentive for the both employee and clients, at last improving your business execution. By gaining by the DevOps benefits, associations can streamline the connection among designers and the activities group, in this manner making them increasingly beneficial.</p><p>DevOps involves infrastructure provisioning, configuration management, continuous integration and deployment, testing and monitoring. DevOps teams have been closely working with the<strong> Development </strong>teams to manage the life cycle of applications effectively.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/489/1*wnxVFrYMRZsQuwO56ZHYSQ.jpeg" /></figure><p><strong>How Data Science and Data Structure Contribute in DevOps?</strong></p><p>The jobs of Software Engineering and DevOps have been isolated for quite a long time: Software Engineer compose applications and DevOps is answerable for deploying and maintaining in production environment A similar clash exists among DevOps and Data Scientist . Isolating the job of the data scientist who is answerable for creating models, from the individual deploying and maintaining is a hindrance to operational algorithm</p><p>Data science and data Structure brings additional responsibilities to DevOps. Data engineering, a niche domain that deals with complex pipelines that transform the data, demands close collaboration of data science teams with DevOps. Operators are expected to provision highly available clusters of Apache Hadoop, Apache Kafka and Apache Spark that tackle data extraction and transformation. Data engineers acquire data from a variety of sources before leveraging Big Data clusters and complex pipelines for transforming it.</p><p>DevOps mindset will also enable data scientists to define and refine questions quickly through rapid interactive exploration of the dataset. Once the process of iterating on the question by testing it on datasets becomes a process, automation of the data science process — the goal of DevOps — is closer to reality. Speeding this up helps you define your question more quickly.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/604/1*VAqfwflUXp7p5FTrnM_PJQ.png" /></figure><p>When working with DevOps or as a data scientist, it is important to be upfront about requirements and expectations. This may include programming languages, package versions or framework. Last but not the least, it is also important to show respect to one another. After all, both DevOps and Data Scientists have incredibly hard challenges to solve. DevOps do not know much about data science and Data Scientists are not experts in DevOps and IT. Hence, communication is key for a successful business outcome.</p><p><strong>Reach me Out for your Valuable Feedback </strong><a href="https://twitter.com/VarshitAgarwal2"><strong>Twitter</strong></a><strong> ,</strong><a href="https://www.linkedin.com/in/varshit-agarwal-836107158/"><strong>LinkedIn</strong></a><strong> and </strong><a href="https://www.facebook.com/varshit.agarwal"><strong>Facebook </strong></a><strong>.</strong></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f97dc7936f4a" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Smart Way To Start With Jenkins]]></title>
            <link>https://medium.com/@vikyagarwal473/smart-way-to-start-with-jenkins-17b6a3b104ff?source=rss-1d42de495113------2</link>
            <guid isPermaLink="false">https://medium.com/p/17b6a3b104ff</guid>
            <category><![CDATA[devops]]></category>
            <category><![CDATA[continuous-integration]]></category>
            <category><![CDATA[jenkins]]></category>
            <category><![CDATA[continuous-delivery]]></category>
            <category><![CDATA[automation]]></category>
            <dc:creator><![CDATA[Varshit Agarwal]]></dc:creator>
            <pubDate>Sun, 13 Oct 2019 16:03:06 GMT</pubDate>
            <atom:updated>2019-10-19T12:15:48.780Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/796/1*8m8uLGCp5XZluzeDyn1OtQ.png" /><figcaption>Jenkins is an Open Source Automation Tool</figcaption></figure><p>Is it true that you are searching for the quickest and fast demanding approach to begin with utilizing Jenkins as your continuous deployment and test automation? Jenkins is the <strong>No.1</strong> continuous delivery platform in the market since it interfaces with almost every apparatus utilized by Dev-Ops groups. With a huge number of clients, another module or plugin is introduced each 2–3 days. This pace of development can enable your group to automate each application delivery pipeline task — that is simply out and out marvelous!</p><p>Continuous Integration is the most significant piece of Dev-Ops that is utilized to incorporate different Dev-Ops stages. Jenkins is the most renowned Continuous Integration tool, I realize you are interested to know the purpose for the prominence of Jenkins and I am almost certain in the wake of perusing this how Jenkins install ,blog,every one of your inquiries will get replied.</p><h3>Introduction</h3><p>Jenkins is an open source orchestration tool and written in Java with Plugin worked for Continuous Integration reason. Jenkins is utilized to assemble and test your product extends constantly making it simpler for engineers to incorporate changes to the undertaking, and making it simpler for clients to get a new form. It likewise enables you to consistently convey your product by incorporating with countless testing and deployment .</p><p><strong>Advantages of Jenkins include:</strong></p><ul><li>It is an open source tool with great community support.</li><li>It is easy to install.</li><li>It has 1000+ plugins to ease your work. If a plugin does not exist, you can code it and share with the community.</li><li>It is free of cost.</li><li>It is built with Java and hence, it is portable to all the major platforms.</li></ul><h3>Prerequisites</h3><p>To follow this Blog, you will need:</p><ul><li>One Ubuntu 18.04 server configured with a non-root sudo user and firewall.We recommend starting with at least 1 GB of RAM.</li><li>Java 8 should be installed,</li></ul><h3>Step 1 — Installing Jenkins</h3><p>The version of Jenkins included with the default Ubuntu packages is often behind the latest available version from the project itself. To take advantage of the latest fixes and features, you can use the project-maintained packages to install Jenkins.</p><p>First, add the repository key to the system</p><pre>$ wget -q -O - https://pkg.jenkins.io/debian/jenkins.io.key | sudo apt-key add -</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ZQus2wSnnoDwAVdHlm3GMg.png" /></figure><p>When the key is added, the system will return OK. Next, append the Debian package repository address to the server’s sources.list:</p><pre>$ sudo sh -c &#39;echo deb http://pkg.jenkins.io/debian-stable binary/ &gt; /etc/apt/sources.list.d/jenkins.list&#39;</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*AVA4UOErkD3xoq4Vp4CKhA.png" /></figure><p>When both of these are in place, run update so that apt will use the new repository:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Q-N1AbpjcN--8QxqxRirLQ.png" /></figure><p>finally Install the jenkins and it dependencies</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*PTNtzi3FM_1jmN1VwKMA7g.png" /></figure><h3>Step 2 — Starting Jenkins</h3><p>Let’s start Jenkins using systemctl:</p><pre>$ sudo systemctl start jenkins</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ZVk4cbiUIw4W2V4L8VChhQ.png" /></figure><h3>Step 3 — Opening the Firewall</h3><p>By default, Jenkins runs on port 8080, so let’s open that port using ufw:</p><p>$ sudo ufw allow 8080</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*jtj44rtc7EcoRfZlUM7_9w.png" /></figure><p>Check ufw’s status to confirm the new rules:</p><p>$ sudo ufw status</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ZwDNfm7WObltugMk2_sphg.png" /></figure><p><strong>Note:</strong> If the firewall is inactive, the following commands will make sure that OpenSSH is allowed and then enable it.</p><p>$ sudo ufw allow OpenSSH</p><p>$ sudo ufw enable</p><h3>Step 4 — Setting up Jenkins</h3><p>To set up our installation, we’ll visit Jenkins on its default port, 8080, using the server domain name or IP address: <a href="http://ip_address_or_domain_name:8080/">http://ip_address_or_domain_name:8080</a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Th-_CMGjOfl2XggUUwzQ0g.png" /></figure><p>n the terminal window, we’ll use the cat command to display the password:</p><p>$ sudo cat /var/lib/jenkins/secrets/initialAdminPassword</p><p>We’ll copy the 32-character alphanumeric password from the terminal and paste it into the “Administrator password” field, then click “Continue”. The next screen presents the option of installing suggested plugins or selecting specific plugins.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*2QAzej1rkp3lSOuiQE5g5w.png" /></figure><p>We’ll click the “Install suggested plugins” option, which will immediately begin the installation process:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*tc9IT1PFYu8W7PLLFxKWYw.png" /></figure><p>When the installation is complete, we’ll be prompted to set up the first administrative user. It’s possible to skip this step and continue as admin using the initial password we used above, but we’ll take a moment to create the user.</p><p><strong>Note:</strong> The default Jenkins server is NOT encrypted, so the data submitted with this form is not protected. if u want to encrypt your Credential please Configure the <strong>SSL using an Nginx Reverse Proxy</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*MR1kiBrHay4vivyrOaJWBQ.png" /></figure><p>Once the admin user is Created, you should see a “Jenkins is ready!” confirmation screen.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*HEqJAPvGuuma1akw.png" /></figure><p>Click “Start using Jenkins” to visit the main Jenkins Login Page:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*mJbWBviakRrGWnwf_fsnzw.png" /></figure><p>Enter your Credential Click on “Sign In” you will redirected to jenkins Dashboard</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*U8b4LZVtb9N-MybhF2UQng.png" /></figure><p>At this point, Jenkins has been successfully installed.</p><h3>Conclusion</h3><p>At the last ,jenkins is successfully installed , you will see the jenkins Dashboard.Time to Deployment and Automate your Application using jenkins</p><p>for More Information use Jenkins Official Documentation:<a href="https://jenkins.io/"> https://jenkins.io/</a></p><p><strong>Reach me Out for your Valuable Feedback </strong><a href="https://twitter.com/VarshitAgarwal2"><strong>Twitter</strong></a><strong> ,</strong><a href="https://www.linkedin.com/in/varshit-agarwal-836107158/"><strong>LinkedIn</strong></a><strong> and </strong><a href="https://www.facebook.com/varshit.agarwal"><strong>Facebook</strong></a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=17b6a3b104ff" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>