<?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 Shivani Mandloi on Medium]]></title>
        <description><![CDATA[Stories by Shivani Mandloi on Medium]]></description>
        <link>https://medium.com/@shivanimandloi23?source=rss-2021ebc0c944------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*5WT2Q9Is2BJ8Zkht</url>
            <title>Stories by Shivani Mandloi on Medium</title>
            <link>https://medium.com/@shivanimandloi23?source=rss-2021ebc0c944------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 21 Nov 2026 21:29:05 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@shivanimandloi23/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[Usecase of Javascript]]></title>
            <link>https://shivanimandloi23.medium.com/usecase-of-javascript-c63c8c2d8af3?source=rss-2021ebc0c944------2</link>
            <guid isPermaLink="false">https://medium.com/p/c63c8c2d8af3</guid>
            <category><![CDATA[javascript]]></category>
            <dc:creator><![CDATA[Shivani Mandloi]]></dc:creator>
            <pubDate>Wed, 11 Aug 2021 17:37:48 GMT</pubDate>
            <atom:updated>2021-08-11T17:37:48.126Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/800/0*ogRbHNhUfB3lOvYw.png" /></figure><p>JavaScript is used for web applications and web browsers. JavaScript is a text-based programming language used both on the client-side and server-side that will help you to make your web pages interactive.</p><p>JаvаSсriрt iѕ mainly uѕеd аѕ a сliеnt ѕidе рrоgrаmming lаnguаgе imрlеmеntеd аѕ раrt оf a wеb brоwѕеr tо аllоw dеvеlореrѕ to develop a creative uѕеr intеrfасе аnd dуnаmiс fеаturеѕ in wеb раgеѕ. JаvаSсriрt саn аlѕо bе fоund оutѕidе wеb аррliсаtiоnѕ, fоr еxаmрlе аѕ a wау tо аdd intеrасtivitу tо PDF dосumеntѕ аnd dеѕktор widgеtѕ.</p><p>HTML and CSS are languages that give structure and style to web pages and JavaScript gives web pages interactive elements that engage a user. JavaScript is also used beyond the Web in software, servers, and embedded hardware controls. Here are some basic things JavaScript is used such as</p><p>▪ Displaying some information based on onclick and onmouseover events. i.e Event Handling</p><p>▪ Changing the color based on users&#39; actions.</p><p>▪ Zoom in and Zoom out</p><p>▪ Animation</p><p>▪ Dropdown Menus etc</p><p>In simple words,</p><p>Aссеѕѕ any еlеmеnt in thе dосumеnt аnd manipulate its lооk, content аnd аttributеѕ or Crеаtе nеw еlеmеntѕ аnd content and apply them to thе document when аnd if they аrе needed.</p><p>▪ Lets take a most basic example,</p><p>A simple signup box which almost occurs on every website,</p><p>While registering it shows username suggestion,</p><p>Or in the Google search box, it shows you all related queries whatever you are typing there on time these all the activities are performed by Javascripts behind the scene.</p><p>▪ Javascript also solves your issues related to layout</p><p>for example,</p><p>уоu have a mеnu with ѕеvеrаl levels, bу checking thаt thеrе iѕ ѕрасе for thе ѕub-mеnu tо appear bеfоrе ѕhоwing it, you can prevent ѕсrоll-bаrѕ or оvеrlаррing menu items.</p><p>Now, People have created various frameworks which directly provide you various functionality for your webpages</p><p>So using javascript in your webpage simply gives a behavior to your webpage</p><p>Hope you all find it interesting..!!</p><p>Thankyou.!!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c63c8c2d8af3" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[K-mean clustering]]></title>
            <link>https://shivanimandloi23.medium.com/k-mean-clustering-f7b49ac3a690?source=rss-2021ebc0c944------2</link>
            <guid isPermaLink="false">https://medium.com/p/f7b49ac3a690</guid>
            <category><![CDATA[clustering-analysis-in-ml]]></category>
            <dc:creator><![CDATA[Shivani Mandloi]]></dc:creator>
            <pubDate>Mon, 19 Jul 2021 13:49:10 GMT</pubDate>
            <atom:updated>2021-07-19T13:49:10.854Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*CUv90usOomGvXv5MDVk4fg.png" /></figure><p>▪ Before we learn about k-mean clustering let’s get some root knowledge</p><p>Today we generate a large amount of data, it can be related to population, jobs, production, defects in the production as well.</p><p>The most basic example is researchers have clustered plant and animal kingdoms and further they are sub clustered according to most common features.</p><p>▪ but what is the need for clustering?</p><p>let us consider a large amount of data from all over India, and now you need to research about literacy rate. so for this one will get a huge amount of variation plus this technique may ignore outliers, rather than this he can make clusters of populations sharing similar geographical areas along with the regional development like rural and urban regions. the similarities within rural regions will be greater, wherein the difference between the rural and urban regions will be greater, this will solve the complexity of the problem and sorts the data points.</p><p>▪ Clustering analysis groups things based on the information found in the data describing those objects and their relationships.</p><p>Now, how to cluster the things depends on use cases, and plus one should be able to find the most optimized clustering for the problem.</p><p>One of the most frequently used clusterings is centroid based clustering i.e K-mean clustering, the algorithm aims at classifying objects to particular clusters,</p><p>here, priority is set to the center of the cluster, not its borders or spread.</p><p>▪ K-means clustering is a powerful unsupervised machine learning algorithm. It is used to solve many complex unsupervised machine learning problems.</p><p>Today, computer network security has become the chief problem of the information society. With the continuous development of technology, network intrusion behavior has increased, Therefore, network security is the most important component of today’s society.</p><p>As for the detection and prevention of intrusion detection, it becomes the primary problem that we need to solve. Based on the data mining of the k-means clustering algorithm. they determine the intruder behavior and further solve the holes which can lead to intrusion.</p><p>Hope you all find it interesting..!!!</p><p>Thankyou..!!!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f7b49ac3a690" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Confusion matrix and how Defence cyber security use confusion matrix or its two types of error]]></title>
            <link>https://shivanimandloi23.medium.com/confusion-matrix-and-how-defence-cyber-security-use-confusion-matrix-or-its-two-types-of-error-90a65e2cb1a0?source=rss-2021ebc0c944------2</link>
            <guid isPermaLink="false">https://medium.com/p/90a65e2cb1a0</guid>
            <category><![CDATA[mlops]]></category>
            <category><![CDATA[confusion-matrix]]></category>
            <category><![CDATA[cybersecurity]]></category>
            <dc:creator><![CDATA[Shivani Mandloi]]></dc:creator>
            <pubDate>Sun, 06 Jun 2021 13:19:57 GMT</pubDate>
            <atom:updated>2021-06-06T13:19:57.846Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/893/1*sjVLRzMEVNy2hemW19Y5hA.png" /></figure><p>Whenever we train any machine learning model or prediction model the main aim is to create a model which is the most accurate and gives the most accurate output.</p><p>after creating such models our first and only concern is that whether the model is predicting correctly? is it experienced enough?</p><p>Thus cross-validation is needed for any model,</p><p>to check these issue we split our data into a training set and testing set</p><p>later on, we use these to create a confusion matrix.</p><p>Now, What is the confusion Matrix?</p><p>The confusion matrix is simply a matrix that shows the parameters that how many value model is predicting or classifying correctly.</p><p>Our model can have two types of error</p><ol><li>Model classified positive but it’s not in real</li><li>Model classified negative but it’s not in real</li></ol><p>Which error is more misleading depends on the problem statement</p><p>If the model predicting positive and the actual class is positive too then it is a true positive.</p><p>If the model is predicting positive and the actual class is negative then it is a false negative. (Type 2)</p><p>If the model is predicting negative and the actual class is positive then it is a false positive. (Type 1)</p><p>If the model is predicting negative and the actual class is negative too then it is a true negative.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/266/1*_TqfRY90B-Dvd3Oa2AoQew.png" /></figure><p>Let&#39;s take the case of Evaluating Machine Learning Classifiers for Defensive Cyberspace Operations,</p><p>Today’s defensive cyber sensors are dominated by signature-based analytical methods that require continuous maintenance and lack the ability to detect unknown threats. Anomaly detection offers the ability to detect unknown threats, DCO (defense cyberspace operations) relies on signature-based systems to detect threats against networks and computer systems. Signature-based systems perform well identifying known threats and achieve low false-positive rates when finely tuned signatures are used. However, these systems are incapable of detecting novel attacks for which no signatures exist.</p><p>Contributing challenges have been identified as (i) high cost of errors (time to investigate false alarms and cost of missed attacks); (ii) lack of labeled training data (ground truth); (iii) semantic gap between classification output and operational interpretation; (iv) variability in input data</p><p>These attack classifications are done using ML models,</p><p>Results from the empirical tests are reported as a matrix of correct and incorrect classifications, i.e. confusion matrix</p><p>where each classified data will be divided as True Positive, True Negative, false positive, and false negative</p><p>The main aim of training any data is accuracy, lowest FP rate, highest TP rate.</p><p>they derive various metrics based on the Confusion matrix such as</p><p>Accuracy = TP + TN / TP + TN + FP + FN</p><p>Misclassification = FP + FN / TP + TN + FP + FN</p><p>Precision = TP / TP + FP</p><p>Sensitivity / Recall = TP / TP + FN</p><p>Specificity = TN / TN + FP</p><p>Based on these they make further decisions on sensitivity and accuracy of threats detection models.</p><p>Hope you all find it informative and interesting..!!!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=90a65e2cb1a0" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[GUI application in docker container]]></title>
            <link>https://shivanimandloi23.medium.com/gui-application-in-docker-container-f962b50b3045?source=rss-2021ebc0c944------2</link>
            <guid isPermaLink="false">https://medium.com/p/f962b50b3045</guid>
            <category><![CDATA[gui]]></category>
            <category><![CDATA[docker]]></category>
            <category><![CDATA[dockerfiles]]></category>
            <dc:creator><![CDATA[Shivani Mandloi]]></dc:creator>
            <pubDate>Tue, 01 Jun 2021 11:18:59 GMT</pubDate>
            <atom:updated>2021-06-01T11:18:59.335Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*0KvcnXAw7LfReagN_5XmqA.jpeg" /></figure><p>Can you run GUI apps on Docker?</p><p>Most of us till now containerize applications that we want to keep on running for example like Databases, Web servers, etc.</p><p>There are a lot of myths that we cannot run GUI applications and software on Docker containers but there is a way using which we can run GUI applications and software on a docker container within seconds</p><p>So let&#39;s try this,</p><p>Task Description 📄</p><p>◼ GUI container on the Docker</p><p>◼ Launch a container on docker in GUI mode</p><p>◼ Run any GUI software on the container</p><p>Concept:</p><p>Normally, Whenever we run any GUI application in our machine it tries to connect with the X server. The X server is a windowing system for bitmap displays, common on Unix-like operating systems. X provides the basic framework for a GUI environment.</p><p>but docker containers do not have such X server but it can use hosts X server</p><p>That is for X server it doesn’t matter which application from where making request, simple we can run a GUI application in a docker container and will try to connect it with X11 port i.e X server which is running on the host machine.</p><p>so let&#39;s start,</p><p>◼ Prerequisites:</p><p>Your host machine should have docker configures and running</p><p>Step1: To create an image with any GUI application first we will write a docker file using which we will build the docker image,</p><p>Create a workspace first,</p><p># mkdir dockerGui</p><p>create a file named “Dockerfile” make sure to create a file name with the same case because while building image docker search for file names “Dockerfile”.</p><p>#vim Dockerfile</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/495/1*9nfy8p-Jg0vqzc_6AomnEA.png" /></figure><p>here I am using firefox as a GUI application, so installing firefox and “/usr/bin/firefox” will run firefox as soon as my container launch</p><p>Creating docker image,</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/678/1*NvWLaY7myaCSudkfVKQoeA.png" /></figure><p>Running a docker container using the image created above,</p><p>here, we share the Host’s XServer with the Container by creating a volume</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/565/1*v4c6MMe7lr4dvc1zeUHbtQ.png" /></figure><p>and share the Host’s <strong>DISPLAY</strong> environment variable to the Container</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/183/1*DKW3s2hPuZm1l5g_INYZgA.png" /></figure><p>run container with <strong>host</strong> network driver with</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/120/1*ppMCENQOIPNDaYcQzSZ9YA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/917/1*tZnDtREaFS__xIML0i2d3A.png" /></figure><p>As soon as you launch a docker container it will open a Mozilla firefox window that is actually running inside a docker container you launched.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/997/1*pEdhc5fPxmfeBW-zo7-78Q.png" /></figure><p>Hope you find it interesting thankyou..!!!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f962b50b3045" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Prediction Model on Docker Container]]></title>
            <link>https://shivanimandloi23.medium.com/prediction-model-on-docker-container-b994f77cc5e7?source=rss-2021ebc0c944------2</link>
            <guid isPermaLink="false">https://medium.com/p/b994f77cc5e7</guid>
            <category><![CDATA[docker]]></category>
            <category><![CDATA[machine-learning]]></category>
            <category><![CDATA[python]]></category>
            <category><![CDATA[pandas]]></category>
            <dc:creator><![CDATA[Shivani Mandloi]]></dc:creator>
            <pubDate>Thu, 27 May 2021 13:48:43 GMT</pubDate>
            <atom:updated>2021-05-27T13:48:43.821Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*8gY6Nk9My9mNmhF7jw06aw.jpeg" /></figure><p>Task Description 📄</p><p>◼ Pull the Docker container image of CentOS image from DockerHub and create a new container</p><p>◼ Install the Python software on the top of the docker container</p><p>◼ In Container you need to copy/create a machine learning model which you have created in the Jupiter notebook</p><p>Let&#39;s get started..!!!</p><p>👩‍💻 Prerequisite</p><p>Docker configured in base OS</p><ol><li>Launching a Docker container named SalaryPrediction</li></ol><p>Further, In this container, we will create a prediction model.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/735/1*wXyaMFdmO4x_zOQDtzc6-w.png" /></figure><p>2. Installing Python in the docker container using command</p><p>#yum install python3</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/801/1*SpWxMzEhf2K6HQtKYr-DAA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/801/1*TutV3C9zO5xVekGCVaUASg.png" /></figure><p>3. Now to create a machine model we need certain modules and library</p><p>so, for installing we use pip3</p><p>packages needed:</p><ul><li>pandas</li><li>sklearn</li></ul><p>using command #pip3 install &lt;library_name&gt;</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/797/1*khSaPtum_h83UK6ybmvkrg.png" /><figcaption>command to install pandas library</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/802/1*GgJJiXClLBIoI59MTih0sg.png" /><figcaption>command to install sklearn library</figcaption></figure><p>4. Creating a workspace for the project.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/802/1*9zYhruV4eT-6y_akHJBBzA.png" /></figure><p>5. Now, to train the model in docker container we need a dataset inside a docker container</p><p>here, I am using an experience /salary data set</p><p>so coping dataset from base OS to docker container using the following command</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/806/1*1ruYQGs3uQU4dfzhKbC7gA.png" /><figcaption>coping dataset from base OS to docker container</figcaption></figure><p>6. Create a python file model.py this file will train and create a model based on a given dataset.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/799/1*UQJdm3bHiFjbmuCJMc5Axw.png" /></figure><p>6. Running model.py to train and create our model that will predict an employee&#39;s salary based on their experience.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/802/1*yJ_x2HQ7owLewRF9vFg1zw.png" /></figure><p>7. Now, creating a python program that will predict an employee&#39;s salary using the above-trained model.</p><p>this file is internally loading the trained model</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/804/1*zDtYoqfuhp9YrEWARw7jfQ.png" /></figure><p>Now let’s check our model,</p><p>Running prediction.py</p><p>Giving input to the model</p><p>And our model is working …</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/804/1*BT-MqKaNVCYUGzs8rQEF9A.png" /></figure><p>Hope you find it interesting..!!!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b994f77cc5e7" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Configuring Kubernetes Multinode cluster over AWS cloud using Ansible Role]]></title>
            <link>https://shivanimandloi23.medium.com/configuring-kubernetes-multinode-cluster-over-aws-cloud-using-ansible-role-7d20aa4351bd?source=rss-2021ebc0c944------2</link>
            <guid isPermaLink="false">https://medium.com/p/7d20aa4351bd</guid>
            <category><![CDATA[kubernetes-cluster]]></category>
            <category><![CDATA[ansible]]></category>
            <category><![CDATA[aws]]></category>
            <category><![CDATA[automation]]></category>
            <category><![CDATA[ansible-roles]]></category>
            <dc:creator><![CDATA[Shivani Mandloi]]></dc:creator>
            <pubDate>Sat, 27 Mar 2021 21:01:02 GMT</pubDate>
            <atom:updated>2021-03-27T21:01:02.392Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*YVRw6I1dv4ojQZG7EzOhiQ.jpeg" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/370/1*9QCHx5QEYkAmt8oO6G_0mw.png" /></figure><p>though containers are a good way to bundle and run your applications. In a production environment, you need to manage the containers that run the applications and ensure that there is no downtime. For example, if a container goes down, another container needs to start but doing this manually is would be a very difficult task.</p><p><strong><em>Wouldn’t it be easier if this behavior was handled by a system?</em></strong></p><p>That’s how Kubernetes comes to the rescue! Kubernetes provides you with a framework to run distributed systems resiliently. It takes care of scaling and failover for your application, provides deployment patterns, and more. For example, Kubernetes can easily manage a canary deployment for your system.</p><p><strong><em>What is Kubernetes?</em></strong></p><p>Kubernetes is an open-source container orchestration platform that automates many of the manual processes involved in deploying, managing, and scaling containerized applications.</p><p><strong><em>What is the Kubernetes cluster?</em></strong></p><p><strong>A</strong> <strong>Kubernetes coordinates a highly available cluster of computers that are connected to work as a single unit</strong> that is a Kubernetes cluster.</p><p>it is actually a set of nodes that run containerized applications. Containerizing applications package an app with its dependencies and some necessary services. Kubernetes clusters allow for applications to be more easily developed, moved, and managed.</p><p>This cluster can be created on any operating system either is on a physical machine, virtual machine, container, or cloud</p><p>It is comprised of <strong>one master node</strong> and several<strong> worker nodes.</strong></p><p><strong>master node</strong> controls the state of the cluster.</p><p>it takes care of the following responsibilities like applications are running and their corresponding container images. assigning the task to the suitable node with respectively, It coordinates processes such as:</p><ul><li><strong>Scheduling</strong> and scaling applications</li><li><strong>Maintaining</strong> a cluster’s state</li><li><strong>Implementing</strong> updates</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/766/1*s10AuTEIxx0lM3mAY3UCNw.png" /></figure><p>Here, our task is to create this Kubernetes cluster over AWS instances using an ansible role. there are prerequisites before we create a cluster on AWS</p><p>we can launch ec2 instance in different ways like</p><p><a href="https://docs.aws.amazon.com/IAM/latest/UserGuide/id_credentials_passwords.html"><strong><em>Console password</em></strong></a><em>:</em> A password that the user can type to sign in to interactive sessions such as the AWS Management Console.</p><p><a href="https://docs.aws.amazon.com/IAM/latest/UserGuide/id_credentials_access-keys.html"><strong><em>Access keys</em></strong></a><strong><em>:</em></strong> A combination of an access key ID and a secret access key. You can assign two to a user at a time. These can be used to make programmatic calls to AWS. For example, you might use access keys when using the API for code or at a command prompt when using the AWS CLI or the AWS PowerShell tools.</p><p>since we are using ansible we will need Access key ID and secret access key</p><p>You can create these by creating an IAM user with a power user role and selecting the programmatic access option and download your credentials.</p><p>also, you will need a pre-created key pair while launching an instance.</p><p>you can get it in AWS ec2 console, create a key pair and download it and import it to your Linux computer using WinScp.</p><p>now let’s start with the task</p><ol><li>Creating a workspace with name <strong>kubernetesclustersetup</strong></li><li>Creating Ansible role <strong>ec2setup</strong> <strong>for launching ec2 instance</strong></li></ol><p><strong>create a role</strong> using command</p><p><strong>#ansible-galaxy init &lt;role_name&gt;</strong></p><p>Now, we will write our tasks in tasks/main.yml</p><p>for this role we need</p><ul><li>AMI image id</li><li>Security group id</li><li>keypair name you downloaded earlier</li><li>Accesskey Id and Secret key</li></ul><p>so, to tell our role what task it should do you have to write it in ec2setup/tasks/main.yml this is the file where role checks all its tasks</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/882/1*f6Hb8uA0C2n333wk8nO7Pw.png" /><figcaption>the task to launch 1 master node in AWS</figcaption></figure><p>Here, I have set count 1 since we have to create a master node.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/883/1*-cpvSSD1ou_y24bJeH7__w.png" /></figure><p>also, I have created variables for count(No. of worker node you want ), AMI image, security group id, key, access key, and secret key so we write variable in <strong>Jinja format {{ variable }}.</strong></p><p>so while execution ansible goes search for its value in vars folder of roles and take that value.</p><p>and you can define these variables in ec2setup/vars/main.yml as follows</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/805/1*Jpd596tbB1Km6iKFBpaHrw.png" /><figcaption>img: var file for ec2setup</figcaption></figure><p>since Access key Id and secret key are highly sensitive data we should secure than for this we have ansible-vaults</p><p><strong><em>•What is Ansible-vault?</em></strong></p><p>Ansible Vault encrypts variables and files so you can protect sensitive content such as passwords or keys rather than leaving it visible as plaintext in playbooks or roles. To use Ansible Vault you need one or more passwords to encrypt and decrypt the content. If you store your vault passwords in a third-party tool such as a secret manager, you need a script to access them. Use the passwords with the <a href="https://docs.ansible.com/ansible/latest/cli/ansible-vault.html#ansible-vault">ansible-vault</a> command-line tool to create and view encrypted variables, create encrypted files, encrypt existing files, or edit, re-key, or decrypt files.</p><ul><li><strong><em>Creating vault and storing the AWS access key and secret key there using command</em></strong></li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/658/1*b4shcbbjRBxk04IsKOs1uA.png" /></figure><p>As you enter it asks for setting a password make sure you create this vault in the same workspace.</p><p>Now creating Playbook to call this role for localhost</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/803/1*rvKc61QKqYO4hW6w9j5FXQ.png" /></figure><p>since you have created a vault for the access key and secret key you need to mention it in your main playbook using keyword</p><p><strong>vars_files:</strong></p><p>but how playbook will get to know that you have secured it so while running playbook you should mention your vault id then first it asks us to enter the vault password and then executes.</p><p>Since our playbook will go on our behalf to our AWS account we need to give privilege escalation.</p><p><strong><em>What is privilege escalation?</em></strong></p><p>Ansible uses existing privilege escalation systems to execute tasks with root privileges or with another user’s permissions. Because this feature allows you to ‘become’ another user, different from the user that logged into the machine (remote user), we call it become.</p><p>so, go in ansible configuration file</p><p>/etc/ansible/ansible.cfg</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/603/1*uVc_IEOf9Th5NQKADM7raQ.png" /></figure><p><strong>Note: since we want to configure Kubernetes on the launched instances we need their public IP. but, every time you launch or start an instance its IP Address changes so we cannot put them in a static way, we need some program that would itself go to our AWS account and retrieve IP from there, this program is nothing but dynamic inventory.</strong></p><p>downloading this pre-created dynamic inventory using python.</p><p>this inventory needs a boto3 module. using which it automatically goes to our AWS account and retrieves the IP-Address . for which we need to give our access key and secret key, we can simply save them in an environment variable.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/741/0*UlnGP1NDJNqgneJY.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/378/1*tuBofpGd_rBnZpy17xGaJQ.png" /></figure><p>copy these files in a single folder like /etc/mydinv and give this path in the ansible configuration file you can refer above configuration image.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/364/1*RTGck-t02tnvyB02QcyYSg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/518/1*0UkJpRtaNm5u-xf-SEhq2g.png" /></figure><p>Now let’s run our playbook for ec2setup</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/818/1*1c6Yd1T98C_BUtu9fzueNg.png" /></figure><p>You can check your dynamic inventory working or not using command</p><p>#./ec2.py</p><p>this command shows the various groups created for example this</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/473/1*3EQdyXJz6zUZC3FxuvdZpQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/844/1*wVdv119E7TMmY8ZCaBFtMA.png" /></figure><p><strong>2. Now, let’s create the role for the Kubernetes Master node and worker node</strong></p><p>using command</p><p>#ansible-galaxy init Masternode</p><p>#ansible-galaxy init Workernode</p><p>let’s assign tasks in Masternode/tasks/main.yml</p><p>Steps:</p><ol><li>Since Kubernetes launch pods over docker, we need to configure our node with docker to install, start and enable docker service.</li><li>Now, to configure the master node for the Kubernetes cluster first we need to configure its yum repository</li><li>since we are creating a cluster using the kubeadm program</li></ol><p>Kubeadm is a tool built to provide kubeadm init and kubeadm join as “fast paths” for creating Kubernetes clusters. so we need to install it.</p><p>with this, also installs kubelet and kubectl program</p><p><strong>Kubectl </strong>command-line tool lets you control Kubernetes clusters.</p><p><strong>Kubelet</strong> is the primary “node agent” that runs on each node and is used to register the nodes in the Kubernetes cluster through the API server. After a successful registration, the primary role of kubelet is to create pods and listen to the API server for instructions.</p><p>4. enable kubeadm</p><p>5. pulling kubeadm config image</p><p>6. Changing the settings such that your container runtime and kubelet use systemd as the cgroup driver stabilized the system. To configure this for Docker, set native.cgroupdriver=systemd.uses systems driver wherein docker creating daemon.json file in /etc/docker</p><p>for which I have created a file in template first as follows</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/792/1*r2l2Nxz0YF8eHtYzGEnCWA.png" /></figure><p>7. Restarting docker</p><p>8. Setting permissions</p><p>9. Starting kubeadm service</p><p>10.Copying config file for k8s</p><p>11. Creating a flannel overlay network</p><p>12. Generating token to connect with worker node</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/781/1*74Dgoc_9SOurvbDWyyNC7A.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/805/1*_FyuSiI-Xynguw4c7iK4YQ.png" /></figure><p>Note: I have added generating token and join the token task in my main playbook but prefer to add it in your roles.</p><p>Similarly in Workernode/tasks/main.yml</p><p>note: copy the daemon.json file in the worker node template folder</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/914/1*XJKaBhvk5C7XH39tqqqEfw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/804/1*XrhRD1pLLWLOAsCddWB0Ug.png" /></figure><p>Now creating a final playbook to call these roles</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/718/1*KujydbkqOQtbO2ggXlI46w.png" /></figure><p>Now, here we have one issue that is</p><p>we save our token in a variable but we cannot directly pass the variable of one host playbook to the other host playbook so,</p><p>you can do two things either copying the token and prompt this token while joining the worker node but this is a manual process to completely automate it</p><p><strong>we can use the concept of adding host in in-memory inventory using the module “add_host” where you can</strong></p><ul><li><strong>Use variables to create new hosts and groups in inventory for use in later plays of the same playbook</strong></li><li><strong>Takes variables so you can define the new hosts more fully like I have used “link”.</strong></li><li><strong>here I have created a dummy host as linkforjoining and set a variable “link” with a variable in which we registered token. i.e “token[‘stdout’]”</strong></li></ul><p>Now, you can call this in worker node task since we save it in the host variable</p><p>Now, let’s run the final playbook</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*RaqeGy0OqZs3K_XAGuySog.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/880/1*cbPqURch9xMymuKb9_75tQ.png" /></figure><p>You can see the token is created</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/796/1*D8swxjLj3-fT8zuoayr2Jg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ZVATqj8AECq9nz8RSv2VWQ.png" /></figure><p>Successfully created Kubernetes cluster you can check by doing ssh to your master node and using command</p><p><strong>#kubectl get node</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*tI3_zNlpuqJuATBMdBNikg.png" /></figure><p>DONE…!!!!</p><p>Hope you all find it interesting…!!!</p><p>Thankyou…✌</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=7d20aa4351bd" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Deploying WordPress with Amazon RDS]]></title>
            <link>https://shivanimandloi23.medium.com/deploying-wordpress-with-amazon-rds-9d9896ae55f7?source=rss-2021ebc0c944------2</link>
            <guid isPermaLink="false">https://medium.com/p/9d9896ae55f7</guid>
            <dc:creator><![CDATA[Shivani Mandloi]]></dc:creator>
            <pubDate>Wed, 24 Mar 2021 19:35:31 GMT</pubDate>
            <atom:updated>2021-03-24T19:35:31.180Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*l4YN1Fv7ev5Qk0imrh0ljA.jpeg" /></figure><p><strong>Introduction📄</strong></p><p><strong>WordPress</strong> is a free and open-source content management system (CMS) written in PHP and paired with a MySQL or MariaDB database which is used for over 30% of all sites over the internet.</p><p>here, My blog would explain how to set up a WordPress site. you can use the MySQL application as well.</p><p><strong>Then why using Amazon RDS is preferred?</strong></p><p>Son Maintaining any Website database is critical since it contains all our important data. if this database goes down it would result in our website crash.</p><p>Amazon RDS helps to manage our database. also, WordPress requires a MySQL database for storing our data.</p><p><strong>Task Description📄</strong></p><p>👉 Launching an AWS EC2 instance and Configuring this instance with Apache Webserver.</p><p>👉For deploying WordPress we need to download the PHP application name “WordPress”.</p><p>👉Now, WordPress needs a backend MySQL database server. so, to set up a MySQL server I am using AWS RDS service using Free Tier.</p><p>👉Providing the endpoint/connection string to the WordPress application to make it work.</p><p>let&#39;s start..!!!</p><ol><li><strong>Launching Ec2 instance</strong> with following <strong>security group inbound rules</strong></li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*IrjZTUL8PKbAVqJEE4-uGw.png" /></figure><p>here I am <strong>allowing HTTP traffic</strong> since this instance is for the Wordpress website.</p><p>also, I am allowing <strong>ssh traffic</strong> so that we can connect with putty remotely for further configuration.</p><p>please copy the security group or rename it since we will need it later on.</p><p>2. Now let&#39;s <strong>create a MySQL database with AWS RDS.</strong></p><p>Go to Amazon RDS service console, click create database</p><p>Now, WordPress uses MySQL, so select the database engine MySQL.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/987/1*oQ6CWEtfkdODWXvWEiw5Eg.png" /></figure><p>In the Settings section, enter wordpress as your DB instance identifier. Then specify the master username and password for your database.</p><p>In <strong>DB Instance size</strong> select option <strong>Burstable classes</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/917/1*gNj1MOWQUnQCbl97oP_-Vw.png" /></figure><p>Here, I am adding an initial database that as the database instance launch it will have pre-created database with the name “wordpress”.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/852/1*KsnazNALG69wbgYEjtmznw.png" /></figure><p>Create Database.</p><p>3. After creating the database you need to <strong>edit the security group</strong></p><p>so add an inbound rule <strong>allowing traffic MySQL/aurora</strong> and add the same security group in the source section which you created while launching your ec2-instance.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/802/1*oGs3w_Kg2jSsp2fdFVmkNA.png" /></figure><p>4. Now, remotely log in to your ec2-instance</p><p>here, we will create a database user, first install MySQL client to interact with your RDS database using command</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/819/1*lyVMp9ng0GZ5R3Ce0d0Lkw.png" /></figure><p>Now saving even variable for MYSQL host which is the hostname of Our RDS database</p><p>find your hostname for your RDS database in the AWS console. In the details of your RDS database, the hostname will be shown as the Endpoint in the Connectivity &amp; security section.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/461/1*JdIBjEsP10uxcbbLK_RgkA.png" /></figure><p><strong>to connect to the MySQL database</strong></p><p><strong>#mysql --user=&lt;user&gt; --password=&lt;password&gt; wordpress</strong></p><p>here, enter the master username and password you configured when creating your RDS database.</p><p>create a user for your database and grant permissions.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/805/1*uvuOCIvD0iC6NeNMdd4_rg.png" /></figure><p>5. Now, to Configuring WordPress application in your ec2-instance</p><p>first, install the apache webserver using the command</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/735/1*BLzXlNVdXoiVACiMb0nNEg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/548/1*EMiKzja1QiDmv9qETAVgrQ.png" /></figure><p>Now, Download WordPress software using the command</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/793/1*B7w61fT1aElAhGUyZjZAlQ.png" /></figure><p>This downloaded software is in a compressed format to you need to uncompress it using the command</p><p>#tar -xzf latest.tar.gz</p><p>Change into the wordpress directory and create a copy of the default config file using the following commands</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/717/1*DcGqE1m2cVt-Fp0QfssPCg.png" /></figure><p>now, here, you need to configure wordpress. so, go to the wordpress configuration file and do further changes as follows</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/787/1*dvlfVrzLxT5-Tq2_Yve_mA.png" /></figure><p>The values should be:</p><p><strong>● DB_NAME: “wordpress”</strong></p><p><strong>● DB_USER: The name of the database user you created.</strong></p><p><strong>● DB_PASSWORD: password for the user you created.</strong></p><p><strong>● DB_HOST: The hostname of the RDS database.</strong></p><p>there are some more applications that WordPress requires behind the scene</p><p>which is <strong>MariaDB software.</strong></p><p>so installed it using the command.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/816/1*lb57KxStEb9jILScpEA8WQ.png" /></figure><p>Now to tell your Apache server that you need to show WordPress application</p><p>you need to copy the wordpress/* file to the root directory of the apache webserver that is /var/www/html</p><p>using command</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/606/1*eIZ9uQhmu3DtXA2ysBZo6A.png" /></figure><p>since we made changes in the root directory you need to <strong>restart our httpd service.</strong></p><p>Now you can check your service via <strong>Public DNS (IPv4) of your ec2 instance.</strong></p><p><strong>Create your WordPress account.</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*NKLwKuIsD7Zgn12W_4qo8Q.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*M6gN_7t428bc-dRZsdUXdw.png" /></figure><p>our website</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*f2QFLyeJA68_79yNDPB0aA.png" /></figure><p>Hope you all find it informative..!!!</p><p>Thankyou..!!!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=9d9896ae55f7" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Openshift Usecase]]></title>
            <link>https://shivanimandloi23.medium.com/openshift-usecase-dc7a1222f767?source=rss-2021ebc0c944------2</link>
            <guid isPermaLink="false">https://medium.com/p/dc7a1222f767</guid>
            <category><![CDATA[container-orchestration]]></category>
            <category><![CDATA[deployment-automation]]></category>
            <category><![CDATA[openshift]]></category>
            <category><![CDATA[kuberne]]></category>
            <category><![CDATA[containerization]]></category>
            <dc:creator><![CDATA[Shivani Mandloi]]></dc:creator>
            <pubDate>Sat, 13 Mar 2021 17:55:42 GMT</pubDate>
            <atom:updated>2021-03-13T17:55:42.448Z</atom:updated>
            <content:encoded><![CDATA[<h3>Openshift use case</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/673/1*kcmrGD4zCGpz9QLDJTImKQ.png" /></figure><ul><li><strong><em>Why there is a need for the open shift?</em></strong></li></ul><p>Today, almost all companies use containers for deploying their web app. containerization enables companies to become more agile and scalable to create more efficient applications and services.</p><p>we have Kubernetes, a popular open-source container management system, which helps automate application deployment, scaling, and other operations.</p><p>but there are a lot more things apart from what Kubernetes automate like creating an image for a specific web application using which Kubernetes will help us with deployment, the company needs to test the image plus every time they have to update Kubernetes if they introduce new versions, also involves continuous integration and continuous deliveries using GitHub and Jenkins.</p><p>so, when it comes to greater scale, managing and syncing with all the tools and integrating becomes complex and difficult though Kubernetes enables application developers to leverage capabilities like self-monitoring, process automation, container balancing, storage orchestration, and more.</p><p><strong>somethings Kubernetes provide but involve a lot of manual procedure</strong></p><ul><li><strong><em>What kind of issues does openshift solve?</em></strong></li><li>Kubernetes doesn’t provide built-in authentication or authorization capabilities, so developers must create tokens, certifications, and other authentication procedures manually.</li><li>Kubernetes lacks a networking solution but lets users employ third-party network plug-ins</li><li>Kubernetes doesn’t offer container image management features.</li></ul><p>there is a need for some program which can manage everything from beginning till the end of launching web application.</p><p><strong><em>Companies require faster deployment, better security, and want to reduce manual work as it consumes a lot of time and is bound to errors, these requirements made them shift to open shift.</em></strong></p><p>Red Hat has seen the OpenShift customer base grow from about 1,000 last year to more than 1,700 now, with strong adoption among Fortune 2000 companies, Gracely says</p><p>Openshift is a tool that sorts all these issues and provides effective deployment.</p><ul><li><strong><em>What is an Open shift?</em></strong></li></ul><p>OpenShift offers a common platform for development and operations teams to ensure consistency and standardization of application components, eliminate configuration errors, automate deployment and controlled rollout of new capabilities into production, and rollback in the event of a failure. For environments with a high degree of security and regulatory requirements, additional capabilities are provided to enforce policies and role-based access control.</p><ul><li><strong><em>Benefits of Openshift</em></strong></li></ul><ol><li><strong>Pod Autoscaling</strong>- openshift offers automatic horizontal pod scaling</li><li><strong>High availability</strong>- OpenShift is architected with a control plane ), persistent storage of REST API objects, and application hosting infrastructure. Each piece of the platform can be configured with multiple redundancies for failover and load-balancing scenarios to eliminate the impact of hardware or infrastructure failure.</li><li><strong>Standardized developer workflows</strong></li><li><strong>Multiple environment support</strong></li><li><strong>Continuous integration and release management</strong></li><li><strong>Managing builds and deployment</strong></li><li><strong>Stricter security policies</strong>- For instance, it is forbidden to run a container as a root. It also offers a secure-by-default option to enhance security</li><li><strong>Choice of cloud infrastructure</strong>- Openshift provides the choice to run on top of physical, virtual, public, or private cloud.</li><li><strong>Out-of-the-box networking solution called Open vSwitch</strong>, which comes with three native plug-ins.</li><li><strong>Responsive web console</strong>- Openshift offers a rich web console developer interface.</li><li><strong>Command-line tool set</strong>- For developers who prefer to work from the command line, openshift provides a rich set of command-line tools which are scriptable to automated interactions.</li><li><strong>Pre-created code repositories</strong> that allow you to instantly deploy your favorite application frameworks.</li><li><strong>Remote access to application containers- </strong>The unique SELinux-based architecture of OpenShift allows users (developers or operations) to remotely execute commands or log in via SSH to individual containers for apps deployed on the platform. The logged-in user will see only their processes, file system, and log files. This gives users the access they need to architect and manage their applications.</li><li><strong>IDE integration- </strong>OpenShift can be integrated with Eclipse, JBoss Developer Studio, and Visual Studio developers can stay entirely within the IDE that they prefer when working with OpenShift.</li></ol><p>Hope you all find it interesting …!!!</p><p>THANKYOU</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=dc7a1222f767" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Industry Use Cases of Jenkin]]></title>
            <link>https://shivanimandloi23.medium.com/industry-use-cases-of-jenkin-617e7ddb151f?source=rss-2021ebc0c944------2</link>
            <guid isPermaLink="false">https://medium.com/p/617e7ddb151f</guid>
            <category><![CDATA[jenkins-pipeline]]></category>
            <category><![CDATA[jenkins-plugins]]></category>
            <category><![CDATA[jenks]]></category>
            <category><![CDATA[cicd]]></category>
            <category><![CDATA[jenkinsfile]]></category>
            <dc:creator><![CDATA[Shivani Mandloi]]></dc:creator>
            <pubDate>Fri, 12 Mar 2021 12:37:37 GMT</pubDate>
            <atom:updated>2021-03-12T13:48:00.010Z</atom:updated>
            <content:encoded><![CDATA[<h3>Industry Use Cases of Jenkins</h3><p><strong>How Jenkins came in role and what challenges it can solve ?</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/951/1*VKOZb6LyLiFDCuBXpHgm8g.jpeg" /></figure><p>To do any integration to do anything manually it takes a lot of time and bound to errors thus to save our time we create some program which can do things what you are doing manually and benefit is that it can be used again and again without error i.e. Automation tools and jenkins do that for us.</p><p>Company comes with the product plan then Developer create software or Application with some code and push it to git repository as a backup but there is not a single team working on it, there may be various team working on different ends so then we need to integrate these codes, compile it and test it in the environments and followed many such processes finally they create a application</p><p>but, trouble don’t end here, if company launch some new feature again developer work on it, again merging codes then compilation so doing this all manually is time consuming.</p><p>let us take another example, suppose company is delivering some security application and experience some glitch so, in such cases there is a need of fast action, one cannot go for manual work because it is bound to client’s product’s security, there is a need of continuous action as soon as the code gets updates to achieve this goals we need a tool which monitors all the changes in the code and do further jobs accordingly i.e. <strong>Continuous Integration and continuous delivery.</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/826/1*gp5bu9joMOkCAkwRfXJA4w.png" /></figure><p>so, Jenkins facilitates us continuous integration and continuous delivery in software and application projects by automating parts related to build, test, and deployment. This makes it easy for developers to continuously work on the betterment of the product by integrating changes to the project.</p><p>This tool is more about integrating multiple tools together and work together.</p><p><strong>How Jenkins supports Continuous Integration and Continuous deployment-</strong></p><p>In both cases, Jenkins describes a desired state and the automation server ensures that that state is achieved. Also, the velocity of releases can be increased since deployments are no longer bounded by personnel limitations, such as operator availability. Finally, Jenkins reduces stress on the development and operations team, by removing the need for middle of the night and weekend rollouts.</p><p><strong>How Jenkins works and features -</strong></p><p>In Jenkins, pipelines are created. it is a series of steps the Jenkins server will take to perform the required tasks of the CI/CD process. These are stored in a plain text <em>Jenkinsfile. </em>These steps are<em> </em>declared as commands with parameters and encapsulated in curly brackets. The Jenkins server then reads the <em>Jenkinsfile</em> and executes its commands, pushing the code down the pipeline from committed source code to production runtime. A<em> Jenkinsfile</em> can be created through a GUI or by writing code directly.</p><ul><li>Easy Installation: Jenkins is a platform-agnostic, self-contained Java-based program, ready to run with packages for Windows, Mac OS, and Unix-like operating systems.</li><li>Easy Configuration: Jenkins is easily set up and configured using it’s web interface, featuring error checks and a built-in help function.</li><li>Available Plugins : There are hundreds of plugins available in the Update Center, integrating with every tool in the CI and CD toolchain.</li><li>Extensible : Jenkins can be extended by means of its plugin architecture, providing nearly endless possibilities for what it can do.</li><li>Easy Distribution : Jenkins can easily distribute work across multiple machines for faster builds, tests, and deployments across multiple platforms.</li><li>Free Open Source : Jenkins is an open-source resource backed by heavy community support.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/832/1*T2P6mBLp-0aiVaZvfWZXUg.png" /></figure><p>Hope you all find it interesting..!!!</p><p>Thankyou..!!!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=617e7ddb151f" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Industrial use cases of neural network]]></title>
            <link>https://shivanimandloi23.medium.com/industrial-use-cases-of-neural-network-2e3a0dabfadc?source=rss-2021ebc0c944------2</link>
            <guid isPermaLink="false">https://medium.com/p/2e3a0dabfadc</guid>
            <category><![CDATA[ids-software]]></category>
            <category><![CDATA[neural-networks]]></category>
            <dc:creator><![CDATA[Shivani Mandloi]]></dc:creator>
            <pubDate>Thu, 04 Mar 2021 16:04:50 GMT</pubDate>
            <atom:updated>2021-03-04T16:04:50.693Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*6Ox9_6NcQPVjcTCwd6EL2Q.jpeg" /></figure><p>What is Neural Network ?</p><p>A neural network is a series of algorithms that endeavors to recognize underlying relationships in a set of data through a process the same way as the human brain operates.</p><p>neural networks refer to systems of neurons, either organic or artificial in nature. Neural networks can adapt to changing input; so the network generates the best possible result without needing to redesign the output criteria. it contains layers of interconnected nodes. Each node is a perceptron and is similar to a multiple linear regression. The perceptron feeds the signal produced by a multiple linear regression into an activation function that may be nonlinear.</p><p><strong>Application of Neural Network</strong></p><p>Neural networks are broadly used, with applications for financial operations, enterprise planning, trading, business analytics and product maintenance, Documents and form processing, Graphics recognition, Finance Industry, Quality assurance and Medical and health care Industry.</p><p><strong>NEURAL NETWORKS IN CYBER INDUSTRY</strong></p><p>Protecting digital assets and intellectual property is a greatest challenge for organizations. Today external hacking as the primary cause of data loss in the corporate industry. Organizations want to take adequate measures to protect data from loss or leakage.</p><p>unchecked IT cyber security risk factors that remain unmitigated are the greatest cause for unexpected cyber attacks.</p><p>The artificial neural network is playing most important role in network management. Most of the research in the area of intrusion detection system relies extensively on AI techniques to design, implement and enhance security monitoring system.</p><p><strong>How Intrusion Detection System is using neural networking?</strong></p><p><strong>Intrusion detection systems</strong> (<strong>IDS</strong>) have been created to predict current and future attacks. <strong>Neural networks</strong> are used to identify and predict unusual activities in the <strong>system</strong>. In particular, feedforward <strong>neural networks</strong> with the back propagation training algorithm plays key roles in this procedure.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/523/0*KIwjXxe1Eb45-NCH.png" /></figure><p>An artificial Neural Network consists of a collection of treatments to transform a set of inputs to a set of searched outputs, through a set of simple processing units, or nodes and correlation between them.nodes between input and output form hidden layers. then it is determine how much one unit will affect the other i.e weights.</p><p>Artificial neural networks offer the potential to resolve a number of the problems encountered by the other current approaches to intrusion detection.</p><p><strong>Supervised training algorithms: </strong>the learning phase, the network learns the desired output for a given input or pattern. supervised neural network is the Multi-Level Perceptron (MLP).the MLP is employed for Pattern Recognition problems.</p><p><strong>Unsupervised training algorithms: </strong>in the learning phase, the network learns without specifying desired output.</p><p><strong>ARTIFICIAL NEURAL NETWORKS (ANNS) IN INTRUSION DETECTION</strong></p><p>Some IDS designers use soft computing techniques for dealing with uncertain and partially true data makes them attractive to be applied in intrusion detection some studies have used soft computing techniques other than ANNs in intrusion detection</p><p>Some IDS designers use ANN approach as a pattern recognition technique. Pattern recognition is implemented by using a feed-forward neural network according to the data for training.</p><p>training results optimized neural network parameters to associate outputs with corresponding input patterns. When the neural network is used, it identifies the input pattern and tries to output the corresponding class. When a connected record has no output associated with it is given as an input. The neural network gives the output that corresponds to a taught input pattern that is least different from the given pattern.</p><p><strong>MISUSE IDS WITH NEURAL NETWORKS</strong></p><p>Misuse systems are based on expert knowledge of the usual attacks</p><p>It spends more time doing compression of the system activity with database of attack signatures. Some signatures are to define and check the database directly.</p><p>if it encounters Port scan then usually it is an attempt to intrude the system usually via internet.</p><p>Misuse system analyzes the incoming packets, which could be in some items modified by intruder to meet the intentions.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/679/1*baR2cTERtwuFwXf48wYZSQ.png" /></figure><p>Neural Network and Artificial Neural network has resulted in greater accuracy and sensitive data security such IDS are later on integrated with further automated security actions for that particular database.</p><p>hope you all my blog interesting…!!</p><p>Thankyou..!!</p><p>reference: International Research Journal of Computer Science (IRJCS)</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=2e3a0dabfadc" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>