<?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[My Devops work - Medium]]></title>
        <description><![CDATA[It&#39;s a beautiful thing when a career and passion comes togeather - Medium]]></description>
        <link>https://medium.com/oneops-work?source=rss----7653b41060dc---4</link>
        <image>
            <url>https://cdn-images-1.medium.com/proxy/1*TGH72Nnw24QL3iV9IOm4VA.png</url>
            <title>My Devops work - Medium</title>
            <link>https://medium.com/oneops-work?source=rss----7653b41060dc---4</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Fri, 04 Dec 2026 07:43:21 GMT</lastBuildDate>
        <atom:link href="https://medium.com/feed/oneops-work" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[How to switch b/w multiple kubernetes clusters]]></title>
            <link>https://medium.com/oneops-work/how-to-switch-b-w-multiple-kubernetes-clusters-1feaf80e0cbe?source=rss----7653b41060dc---4</link>
            <guid isPermaLink="false">https://medium.com/p/1feaf80e0cbe</guid>
            <category><![CDATA[docker]]></category>
            <category><![CDATA[aws]]></category>
            <category><![CDATA[cloud-computing]]></category>
            <category><![CDATA[kubernetes]]></category>
            <category><![CDATA[devops]]></category>
            <dc:creator><![CDATA[Aravind G V]]></dc:creator>
            <pubDate>Sat, 05 Jan 2019 04:16:54 GMT</pubDate>
            <atom:updated>2019-07-30T04:43:06.105Z</atom:updated>
            <content:encoded><![CDATA[<iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fplay.ht%2Fembed%2F%3Farticle_url%3Dhttps%3A%2F%2Fmedium.com%2F_p%2Fhow-to-switch-b-w-multiple-kubernetes-clusters-1feaf80e0cbe&amp;url=https%3A%2F%2Fplay.ht%2Farticles%2F1feaf80e0cbe&amp;image=https%3A%2F%2F1%2AL0ZL0Ilv66qRjUqdGtfMNQ.jpeg&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=play" width="700" height="185" frameborder="0" scrolling="no"><a href="https://medium.com/media/ef3a0884d982d7a29c4a596e22bd36f9/href">https://medium.com/media/ef3a0884d982d7a29c4a596e22bd36f9/href</a></iframe><p>It gets a little tedious when you want to manage multiple k8 clusters. I will show you how you can set the context and use it.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/900/1*p5aoaiUojwa3IeVyVbyerQ.png" /></figure><p>In my company, I work on more than 10 Clusters and over 100 Namespaces. We create namespaces for each application env. This way we can restrict developers to there own application.So the need for switching context is very much needed.</p><h3>Prerequisites</h3><p>First, you must install kubectl on the host where you will remotely manage your cluster. It can be your laptop or any Jumpbox in the cloud.</p><h3>The KUBECONFIG environment variable</h3><p>The <strong>KUBECONFIG</strong> environment variable plays an important role. It holds a list of kubeconfig files. For Linux and Mac, the list is colon-delimited.</p><p>Step-1</p><p>Gather all your different Kube-conf files in a folder. And export these files separated by a colon. Also, you can add to your ~/.bash_profile file.</p><pre>agv$ export KUBECONFIG=/Users/agv/kubeconfigs/qal-rpgw-ppd-east:/Users/agv/kubeconfigs/qal-rpgw-ppd-west:/Users/agv/kubeconfigs/west-readonly-ppd</pre><p>Step-2</p><p>Verify all the contexts are set by getting the contexts. It should list all the contexts and names, namespaces, etc.</p><pre>agv$ kubectl config get-contexts</pre><p>step-3</p><p>Set the context and start using it.</p><pre>agv$ kubectl config use-context &lt;Context-Name&gt;</pre><p>Check the currently loaded context:</p><pre>$ kubectl config current-context</pre><p>That’s it, I hope this tip saves you many keystrokes in the future when working with Kubernetes/kubectl. If you enjoyed this tip give claps as much as possible to help others to read.</p><p>If you like and useful you can help others to read by clapping it.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=1feaf80e0cbe" width="1" height="1" alt=""><hr><p><a href="https://medium.com/oneops-work/how-to-switch-b-w-multiple-kubernetes-clusters-1feaf80e0cbe">How to switch b/w multiple kubernetes clusters</a> was originally published in <a href="https://medium.com/oneops-work">My Devops work</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[GROW WHAT YOU EAT AND EAT WHAT YOU GROW!]]></title>
            <link>https://medium.com/oneops-work/grow-what-you-eat-and-eat-what-you-grow-91c5fb5f8c70?source=rss----7653b41060dc---4</link>
            <guid isPermaLink="false">https://medium.com/p/91c5fb5f8c70</guid>
            <category><![CDATA[environment]]></category>
            <category><![CDATA[gardening]]></category>
            <category><![CDATA[life]]></category>
            <category><![CDATA[green]]></category>
            <category><![CDATA[lifestyle]]></category>
            <dc:creator><![CDATA[Aravind G V]]></dc:creator>
            <pubDate>Wed, 02 Jan 2019 06:10:07 GMT</pubDate>
            <atom:updated>2019-01-02T06:24:42.808Z</atom:updated>
            <content:encoded><![CDATA[<h3>“When you sit and work all the day there’s something about literally putting your hands in the dirt, digging and actually creating something that’s really beautiful”</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*QD9iZcxKiqNF7bYHJqGO6Q.jpeg" /><figcaption>Spanish in my Terrace Garden</figcaption></figure><h3>Stress relief</h3><p>I am going to share my experience with my <strong>Terrace</strong> <strong>Garden</strong>. In Urban life stress relief is not easy after day-long work you need some relaxation time.</p><p>I chose something different. which I have developed over the years Terrace-garden. I grow flowers(roses) and vegetables mainly leafy and creeper.</p><p>Gardening is a beautiful art that can help you in relieving stress that you gather in the day to day life and gets more energy to spend with my family. It also helps my kids to bring them closer to the environment and also brings all of us in one place without importantly electronic devices. They enjoy playing in mud dirtying hands and also helps me with small work.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*71cNVHya7e1jCdUr0mU8-w.jpeg" /><figcaption>Seeds Germinate to harvesting</figcaption></figure><h3>When you start gardening you have to be a little patient as the germination will take a while, but once the seed germinates the plant will grow steadily that will be a delight to watch.</h3><h3>So, if you are planning to surprise your friends and relatives, then start planning for your brand new garden now.</h3><blockquote><em>A recent study in the Netherlands suggests that gardening can fight stress even better than other relaxing leisure activities. After completing a stressful task, two groups of people were instructed to either read indoors or garden for 30 minutes. Afterward, the group that gardened reported being in a better mood than the reading group, and they also had lower levels of the stress hormone cortisol.</em></blockquote><h3><strong>Space is not a constraint to have a garden.</strong></h3><p>You can start with your balcony if you don&#39;t have a terrace. Having practiced this sometime now. I am familiar with the intricacies of gardening. And it’s simpler than one might imagine. Filling the pots/grow bags with soil and cocopeat, sourced from local nurseries and gardens, and gets the process started. “Having low-maintenance plants helps for people who may not have the luxury of time,”</p><p>Growing Mint, Palak(Spanish), tomatoes are easy. It does not need a great deal of hard work just that we need to be watering regularly.</p><p>And the harvest season is a good time to reflect on your actions in the past season. What did you do well? What could you have done better? What will you do next season? What are you going to do with all those tomatoes?</p><h3>Home gardens: a promising approach to enhance household food security and wellbeing</h3><p>With the global population expected to reach over 9 billion by 2050, there is a continuous need to increase food production and buffer stocks. In this scenario, countries around the world, especially developing countries where the pervasiveness of hunger and food scarcity is more acute, are resorting to various counter-strategies to meet the growing demand and to avert food insecurity and famine.</p><p>For me, living a simple life works. It keeps me calm in a chaotic city. It keeps me sane in a stressful work environment. And most importantly, it keeps my day-to-day problems in perspective.</p><p><strong>If you are looking for new resolutions this can be one of the best things to do in 2019!!</strong></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=91c5fb5f8c70" width="1" height="1" alt=""><hr><p><a href="https://medium.com/oneops-work/grow-what-you-eat-and-eat-what-you-grow-91c5fb5f8c70">GROW WHAT YOU EAT AND EAT WHAT YOU GROW!</a> was originally published in <a href="https://medium.com/oneops-work">My Devops work</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How to install Kubernetes(k8) in RHEL or Centos in just 7 steps]]></title>
            <link>https://medium.com/oneops-work/how-to-install-kubernetes-k8-in-rhel-or-centos-in-just-7-steps-2b78331174a5?source=rss----7653b41060dc---4</link>
            <guid isPermaLink="false">https://medium.com/p/2b78331174a5</guid>
            <category><![CDATA[kubernetes]]></category>
            <category><![CDATA[linux]]></category>
            <category><![CDATA[docker]]></category>
            <category><![CDATA[development]]></category>
            <category><![CDATA[devops]]></category>
            <dc:creator><![CDATA[Aravind G V]]></dc:creator>
            <pubDate>Sat, 25 Aug 2018 10:40:25 GMT</pubDate>
            <atom:updated>2018-08-25T10:40:24.765Z</atom:updated>
            <content:encoded><![CDATA[<h4>I had tough time to install K8 in Centos. So made this document to help others who want to install K8 on RHEL/Centos</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*Vu9u8x8M-dYKjkO0.jpg" /></figure><p>The need for RHEL is more because of lot of Enterprise company’s use RHEL than Debian systems.</p><p>Here I will not be explaining k8 architecture or concepts. There are tons of documents available.</p><p>We need 2 Servers/VM/Instance installed with RHEL-7 or Centos-7. One will be called Master and a Node</p><p>Lets start with Master node and setup and configure before node install</p><p>First thing to do is install Docker.In RHEL we will not be getting regular OpenSource Docker it comes with Docker-EE which we don’t want to use in this blog.So trick is to enable centos repo.</p><p>1.To add centos yum repo. Run below command</p><pre>agv-master$ cat &lt;&lt;EOF &gt; /etc/yum.repos.d/centos.repo<br>[centos]</pre><pre>name=CentOS-7</pre><pre>baseurl=http://ftp.heanet.ie/pub/centos/7/os/x86_64/</pre><pre>enabled=1</pre><pre>gpgcheck=1</pre><pre>gpgkey=http://ftp.heanet.ie/pub/centos/7/os/x86_64/RPM-GPG-KEY-CentOS-7</pre><pre>#additional packages that may be useful</pre><pre>[extras]</pre><pre>name=CentOS-$releasever - Extras</pre><pre>baseurl=http://ftp.heanet.ie/pub/centos/7/extras/x86_64/</pre><pre>enabled=1</pre><pre>gpgcheck=0</pre><pre>EOF</pre><p>2. As a standard religious practice run yum update and then install docker</p><pre>agv-master$ yum -y update <br>agv-master$ yum -y install docker<br>agv-master$ systemctl enable docker<br>agv-master$ systemctl start docker</pre><p>3. Now time to install Kubernetes packages, we need yum repo from google Also disable selinux as docker uses cgroups and other lib which selinux falsely treats as threat.</p><pre>agv-master$ cat &lt;&lt;EOF &gt; /etc/yum.repos.d/kubernetes.repo</pre><pre>[kubernetes]</pre><pre>name=Kubernetes</pre><pre>baseurl=https://packages.cloud.google.com/yum/repos/kubernetes-el7-x86_64</pre><pre>enabled=1</pre><pre>gpgcheck=1</pre><pre>repo_gpgcheck=1</pre><pre>gpgkey=https://packages.cloud.google.com/yum/doc/yum-key.gpg https://packages.cloud.google.com/yum/doc/rpm-package-key.gpg</pre><pre>EOF</pre><pre>agv-masrter$ setenforce 0</pre><pre>agv-master$ vi /etc/selinux/config<br>     SELINUX=permissive ##Change if it is enforceing</pre><pre>agv-master$ yum -y install kubelet kubeadm kubectl</pre><pre>agv-master$ systemctl start kubelet</pre><pre>agv-master$ systemctl enable kubelet</pre><p>4. Con-grates you installed K8 and now some hacks and config’s to enable cluster.</p><pre>agv-master$ cat &lt;&lt;EOF &gt;  /etc/sysctl.d/k8s.conf</pre><pre>net.bridge.bridge-nf-call-ip6tables = 1</pre><pre>net.bridge.bridge-nf-call-iptables = 1</pre><pre>EOF</pre><pre>agv-master$ sysctl --system</pre><pre>agv-master$ echo 1 &gt; /proc/sys/net/ipv4/ip_forward</pre><p>5. Configure and Enable Networking to the cluster.</p><pre>agv-master$ kubeadm init --pod-network-cidr=10.244.0.0/16</pre><pre>----Output-of above command-------</pre><pre>kubeadm join 10.0.2.203:6443 --token 49ub6n.b97ie9hxthvfyjtx --discovery-token-ca-cert-hash sha256:09e35eb11e535c64171d50059a584ea209a8d2479d00de30c566f47dbc7128cf</pre><pre>agv-master$ kubectl get nodes<br>NAME                      STATUS     ROLES       AGE       VERSION</pre><pre>js-master.js.com          NotReady   master      17h       v1.11.1</pre><p>6. Run these commands as regular user to setup your profile and configure cluster. <strong><em>Also make note of token which will be used to configure nodes</em></strong>.</p><pre>ec2user@agv-master$ mkdir -p $HOME/.kube<br>ec2user@agv-master$ sudo cp -i /etc/kubernetes/admin.conf $HOME/.kube/config</pre><pre>ec2user@agv-master$ sudo chown $(id -u):$(id -g) $HOME/.kube/config</pre><p>Now we will enable Kubernetes cluster and will use flannel to get the config in yaml. And this should be run only on Master node</p><pre>ec2user@agv$ kubectl apply -f <a href="https://raw.githubusercontent.com/coreos/flannel/v0.9.1/Documentation/kube-flannel.yml">https://raw.githubusercontent.com/coreos/flannel/v0.9.1/Documentation/kube-flannel.yml</a></pre><p>Verify the Cluster with below command</p><pre>ec2user@agv$ kubectl get nodes<br>NAME                      STATUS     ROLES     AGE       VERSION<br><br>js-master.js.com          Ready      master    17h       v1.11.1</pre><p>This means My Master node is successfully running and I am ready to join nodes to the cluster.</p><p>Lets add one node to this cluster. You should have one instance/server and follow 1–4 steps on the new server which is called node.</p><p>7. After finishing 1–4 steps on the nod one last step will be run the notes which you made note during master setup. This step is to run on node to get registered with Master</p><pre>agv$ kubeadm join 10.0.2.203:6443 --token 49ub6n.b97ie9hxthvfyjtx --discovery-token-ca-cert-hash sha256:09e35eb11e535c64171d50059a584ea209a8d2479d00de30c566f47dbc7128cf</pre><pre>## Run below command on Master Node #####<br>agv$ kubectl get nodes<br>NAME                         STATUS    ROLES     AGE       VERSION<br>ip-10-0-0-139.vpc.internal   Ready     &lt;none&gt;    25s       v1.11.1<br>ip-10-0-2-203.vpc.internal   Ready     master    17h       v1.11.1</pre><p>Congratulations!! now you are all set. You have Master and a node. Now you can start playing with creating pods,deployments,namespaces etc.. Also I am planning to cover these in my upcoming blog posts.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=2b78331174a5" width="1" height="1" alt=""><hr><p><a href="https://medium.com/oneops-work/how-to-install-kubernetes-k8-in-rhel-or-centos-in-just-7-steps-2b78331174a5">How to install Kubernetes(k8) in RHEL or Centos in just 7 steps</a> was originally published in <a href="https://medium.com/oneops-work">My Devops work</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[docker c̶h̶e̶a̶t̶s̶h̶e̶e̶t̶ needsheet]]></title>
            <link>https://medium.com/oneops-work/docker-c%CC%B6h%CC%B6e%CC%B6a%CC%B6t%CC%B6s%CC%B6h%CC%B6e%CC%B6e%CC%B6t%CC%B6-needsheet-81f997bc0ade?source=rss----7653b41060dc---4</link>
            <guid isPermaLink="false">https://medium.com/p/81f997bc0ade</guid>
            <category><![CDATA[docker]]></category>
            <category><![CDATA[development]]></category>
            <category><![CDATA[kubernetes]]></category>
            <category><![CDATA[devops]]></category>
            <category><![CDATA[github]]></category>
            <dc:creator><![CDATA[Aravind G V]]></dc:creator>
            <pubDate>Sat, 25 Aug 2018 10:02:12 GMT</pubDate>
            <atom:updated>2019-10-01T07:48:35.281Z</atom:updated>
            <content:encoded><![CDATA[<h4><em>The Most used docker commands.</em></h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*ESPDtXtvuW2N3uK9.png" /></figure><iframe src="https://play.ht/embed/?article_url=https://medium.com/_p/docker-c%CC%B6h%CC%B6e%CC%B6a%CC%B6t%CC%B6s%CC%B6h%CC%B6e%CC%B6e%CC%B6t%CC%B6-needsheet-81f997bc0ade" width="700" height="185" frameborder="0" scrolling="no"><a href="https://medium.com/media/89ecd425d89236809bb5bc4fa32def84/href">https://medium.com/media/89ecd425d89236809bb5bc4fa32def84/href</a></iframe><ol><li>Create a Dockerfile . Sample file to deploy WAR file from tomcat Image</li></ol><pre>##Docker Private Registry. Please change it u r own<br>FROM docker.artifactory.com/tomcat:latest</pre><pre>MAINTAINER <a href="/service/mailto:ebsrarecore@intuit.com">a</a>ravind.gv@gmail.com</pre><pre>RUN [&quot;rm&quot;, &quot;-fr&quot;, &quot;/usr/local/tomcat/webapps/ROOT&quot;]<br>RUN [&quot;rm&quot;, &quot;-fr&quot;, &quot;/usr/local/tomcat/webapps/ROOT.war&quot;]<br><br>COPY ./server.xml  /usr/local/tomcat/conf/server.xml<br>COPY ./example.war  /usr/local/tomcat/webapps/example.war</pre><pre>CMD [&quot;/usr/local/tomcat/bin/catalina.sh&quot;, &quot;run&quot;]</pre><p>2. Build Image by applying changes from the Dockerfile</p><pre>docker build -t docker-image-name .</pre><p>3. Run the image as demon</p><pre>docker run -d  docker-image-name</pre><p>4. Verify container is running or not</p><pre>docker ps -a<br>docker logs &lt;image_id&gt;</pre><p>5. Delete the running Container</p><pre>docker rm -f &lt;Image_ID&gt;</pre><p>6. Delete custom image from your server/laptop</p><pre>docker rmi -f docker-image-name</pre><p>7. Run Docker Image with exposing port locally on laptop/server. Below command listens on 8000 port on laptop</p><pre>docker run -d -p 80:8080 some-name</pre><pre>means port 80 on the host is mapped to port 8080 on the container.</pre><p>8. Login to an existing container</p><pre>docker exec -it container-name/container-id /bin/bash</pre><p>9. Stop/Start containers</p><pre>docker stop/start container-name/container-id</pre><p>10. List all images available on the machine</p><pre>docker images</pre><p>11. List of all running processes inside the container</p><pre>docker top container-name/container-id</pre><p>12. Rename an existing container</p><pre>docker rename old-container-name new-container-name</pre><p>14. Run and login to the container</p><pre>$ docker run --name ubuntu_bash --rm -i -t ubuntu bash</pre><p>This will create a container named ubuntu_bash and start a Bash session.</p><p>15. Remove the stopped container and all of the images, including unused or dangling images, with the following command:</p><pre>docker system prune -a</pre><p>Type y when prompted in the output to confirm that you would like to remove the stopped container and images. Be advised that this will also remove your build cache.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=81f997bc0ade" width="1" height="1" alt=""><hr><p><a href="https://medium.com/oneops-work/docker-c%CC%B6h%CC%B6e%CC%B6a%CC%B6t%CC%B6s%CC%B6h%CC%B6e%CC%B6e%CC%B6t%CC%B6-needsheet-81f997bc0ade">docker c̶h̶e̶a̶t̶s̶h̶e̶e̶t̶ needsheet</a> was originally published in <a href="https://medium.com/oneops-work">My Devops work</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How Remove Files completely from git repository history]]></title>
            <link>https://medium.com/oneops-work/how-remove-files-completely-from-git-repository-history-47ed3e0c4c35?source=rss----7653b41060dc---4</link>
            <guid isPermaLink="false">https://medium.com/p/47ed3e0c4c35</guid>
            <category><![CDATA[development]]></category>
            <category><![CDATA[developer]]></category>
            <category><![CDATA[git]]></category>
            <category><![CDATA[github]]></category>
            <category><![CDATA[devops]]></category>
            <dc:creator><![CDATA[Aravind G V]]></dc:creator>
            <pubDate>Wed, 20 Jun 2018 09:58:56 GMT</pubDate>
            <atom:updated>2018-06-20T09:58:29.328Z</atom:updated>
            <content:encoded><![CDATA[<blockquote>There are many use cases to remove a file from git history</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*WPkdg5nbTxZdD-1YzOaNiA.jpeg" /></figure><p>It is straight forward to remove a file from the current commit or HEAD but if you want remove entirely from the repository’s history then you need to run couple of commands.</p><p>It took some trial and error for me to find something that worked for me</p><ul><li><strong>Find out the path fo the file in your repo</strong></li><li><strong>Execute Below command with file path</strong></li></ul><pre>git filter-branch --index-filter &quot;git rm -rf --cached --ignore-unmatch path_to_file&quot; HEAD</pre><blockquote>It’s a time intensive task might takes good amount of time to complete. As it has to check each commit and remove. For my repo which is ~10 years old took almost 10hours with 90K commits.</blockquote><ul><li><strong>If you want to push it to remote repo just do git push</strong></li></ul><pre>git push -all</pre><p>If you like it and want to spread this please clap it as mush as possible.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=47ed3e0c4c35" width="1" height="1" alt=""><hr><p><a href="https://medium.com/oneops-work/how-remove-files-completely-from-git-repository-history-47ed3e0c4c35">How Remove Files completely from git repository history</a> was originally published in <a href="https://medium.com/oneops-work">My Devops work</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Setup and Run Jenkins in 1 min]]></title>
            <link>https://medium.com/oneops-work/setup-and-run-jenkins-in-1-min-57439fa85473?source=rss----7653b41060dc---4</link>
            <guid isPermaLink="false">https://medium.com/p/57439fa85473</guid>
            <category><![CDATA[quality-assurance]]></category>
            <category><![CDATA[jenkins]]></category>
            <category><![CDATA[development]]></category>
            <category><![CDATA[devops]]></category>
            <dc:creator><![CDATA[Aravind G V]]></dc:creator>
            <pubDate>Mon, 28 May 2018 04:20:18 GMT</pubDate>
            <atom:updated>2018-05-28T04:18:55.113Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/255/0*u4iycSIu_PJ-vp_N." /></figure><p>In 2 Steps you can run Jenkins in Linux servers. It should not take more than 1min.</p><h3>Installing Jenkins:</h3><p>Download latest or specific version you want to install from <a href="https://updates.jenkins-ci.org/download/war/">here.</a></p><p>For example:</p><pre>$ wget https://updates.jenkins-ci.org/download/war/2.123/jenkins.war</pre><h3>Starting Jenkins</h3><p>The easiest way to execute Jenkins is through the built in Jetty servlet container. You can execute Jenkins like this:</p><p>$ java -jar jenkins.war</p><p>Of course, you probably want to send the output of Jenkins to a log file, and if you’re on Unix, you probably want to use <strong>nohup</strong>:</p><p>$ nohup java -jar jenkins.war &gt; $LOGFILE 2&gt;&amp;1 &amp;</p><h3>Accessing Jenkins</h3><p>To see Jenkins, simply bring up a web browser and go to URL <strong>http://myServer:8080</strong> where myServer is the name of the system running Jenkins.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=57439fa85473" width="1" height="1" alt=""><hr><p><a href="https://medium.com/oneops-work/setup-and-run-jenkins-in-1-min-57439fa85473">Setup and Run Jenkins in 1 min</a> was originally published in <a href="https://medium.com/oneops-work">My Devops work</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Transparent SSH tunnel through a bastion host]]></title>
            <link>https://medium.com/oneops-work/transparent-ssh-tunnel-through-a-bastion-host-d1d864ddb9ae?source=rss----7653b41060dc---4</link>
            <guid isPermaLink="false">https://medium.com/p/d1d864ddb9ae</guid>
            <category><![CDATA[ssh]]></category>
            <category><![CDATA[devops]]></category>
            <category><![CDATA[aws]]></category>
            <dc:creator><![CDATA[Aravind G V]]></dc:creator>
            <pubDate>Mon, 09 Apr 2018 11:50:08 GMT</pubDate>
            <atom:updated>2018-04-09T11:51:05.318Z</atom:updated>
            <content:encoded><![CDATA[<p>Security is (or at least should be) king in AWS cloud, and the most important security tool is a properly designed <strong>VPC (Virtual private cloud)</strong></p><p>When we create VPC usually 2 types of subnets are created ie public and private subnets. In Public subnets as name suggests it will have applications exposed to internet like ALB’s,Bastion,NLB’s etc..</p><blockquote><strong>The Problem</strong> is how to connect to private subnet instances which are not directly accessible from internet(Does not have public-IP).</blockquote><h4>It can be solved by Creating a transparent SSH tunnel through a bastion host using the ProxyCommand configuration parameter</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*9zX--0BUyipmQ1AmqixOhg.png" /></figure><p>Here’s how it works:</p><ul><li>From the above diagram A connection from laptop is established to the<a href="https://en.wikipedia.org/wiki/Bastion_host"> bastion host</a></li><li><strong>ProxyCommand ssh -W %h %p</strong> : Specifies the command to use to connect to the server forwarded.In this example, Any occurrence of %h will be substituted by the host name to connect, %p by the port.</li><li>Your Laptop then connects through the (-W )tunnel and reaches the target server</li></ul><blockquote><strong>Enough with overview Lets get our hands dirty</strong></blockquote><pre>ssh -i mymaster.pem  ec2-user@10.0.2.56 -o &quot;proxycommand ssh -W %h:%p -i mymaster.pem <a href="/service/mailto:ec2-user@ebsbastion-1958803814.us-west-2.elb.amazonaws.com">ec2-user@mybastion.elb.amazonaws.com</a>&quot;</pre><p>Above we tell ssh that when it establishes a connection to private subnet host ie <strong>10.0.2.56. </strong>To do so using the stdin/stdout of the ProxyCommand as a transport. The ProxyCommand then tells the system to first ssh to our bastion host and open a connection to host %h (hostname supplied to ssh) on port %p (port supplied to ssh).</p><p><strong>Add it to SSH Config File</strong></p><p>The <a href="https://www.ssh.com/ssh/">ssh</a> program on a host receives its configuration from either the command line or from configuration files ~/.ssh/config</p><pre>#~/.ssh/config</pre><pre>Host spinnaker<br>  Hostname 10.0.2.137<br>  IdentityFile  ~/Downloads/EBS-Jenkins.pem<br>  ForwardAgent yes<br>  User ec2-user<br>  ProxyCommand ssh -W %h:%p -i ~/Downloads/EBS-Jenkins.pem <a href="/service/mailto:ec2-user@ebsbastion-1958803814.us-west-2.elb.amazonaws.com">ec2-user@ebsbastion.us-west-2.elb.amazonaws.com</a></pre><p>In more advanced and to make generic for all hosts in private subnet we will split bastion and second block to all subnets.</p><pre>Host bastion<br>  Hostname ebsbastion.us-west-2.elb.amazonaws.com<br>  User ec2-user<br>  IdentityFile  ~/Downloads/EBS-Jenkins.pem</pre><pre>Host 10.0.2.*<br>  IdentityFile  ~/Downloads/EBS-Jenkins.pem<br>  User ec2-user<br>  ProxyCommand ssh -W %h:%p  ec2-user@bastion</pre><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d1d864ddb9ae" width="1" height="1" alt=""><hr><p><a href="https://medium.com/oneops-work/transparent-ssh-tunnel-through-a-bastion-host-d1d864ddb9ae">Transparent SSH tunnel through a bastion host</a> was originally published in <a href="https://medium.com/oneops-work">My Devops work</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[ssh tunnel for RDS via bastion host]]></title>
            <link>https://medium.com/oneops-work/ssh-tunnel-for-rds-via-bastion-host-6659a48edc?source=rss----7653b41060dc---4</link>
            <guid isPermaLink="false">https://medium.com/p/6659a48edc</guid>
            <category><![CDATA[devops]]></category>
            <category><![CDATA[rds]]></category>
            <category><![CDATA[aws]]></category>
            <category><![CDATA[mysql]]></category>
            <category><![CDATA[bds]]></category>
            <dc:creator><![CDATA[Aravind G V]]></dc:creator>
            <pubDate>Mon, 09 Apr 2018 03:13:55 GMT</pubDate>
            <atom:updated>2017-11-15T09:36:53.213Z</atom:updated>
            <content:encoded><![CDATA[<p>Our RDS db is hosted on Amazon. Our Bastion(Jumphost) can connect to the db. Connections to the db are not allowed outside of the internet.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/954/1*0JaPjL3O5Se96b7IGt5P_A.png" /></figure><h3>Run ssh tunnel locally:</h3><p>This creates a tunnel from my local machine to the Bastion:</p><pre>ssh -N -L 3307:my-rds-db.us-east-1.rds.amazonaws.com:3306 ec2-my-bastion-server.compute-1.amazonaws.com</pre><p>This will forward port 3307 from your local desktop to the remote MySQL rds server through your Public facing bastion EC2 instance.</p><p>You can easily set up this tunnel every time you log into your remote EC2 instance and log into it with whatever name you prefer:</p><h3>Add this to .ssh/config:</h3><pre>Host my_instance<br>  Hostname bastion-ip<br>  Localforward 3307 my-rds-db.us-east-1.rds.amazonaws.com:3306</pre><p>Then, just:</p><pre>ssh my_instance</pre><h3>Connect to db using your favorite db interface.</h3><p>An example using mysql:</p><pre>$ mysql -uusername -h 127.0.0.1 -P 3307 -p</pre><p>For more info man ssh:</p><pre>-L [bind_address:]port:host:hostport<br> Specifies that the given port on the local (client) host is to be forwarded to the given <br> host and port on the remote side.  This works by allocating a socket to listen to port on <br> the local side, optionally bound to the specified bind_address.  Whenever a connection is <br> made to this port, the connection is forwarded over the secure channel, and a connection <br> is made to host port hostport from the remote machine.  Port forwardings can also be <br> specified in the configuration file.  IPv6 addresses can be specified by enclosing the <br> address in square brackets.  Only the superuser can forward privileged ports.  By default, <br> the local port is bound in accordance with the GatewayPorts setting.  However, an explicit <br> bind_address may be used to bind the connection to a specific address.  The bind_address of <br> ``localhost&#39;&#39; indicates that the listening port be bound for local use only, while an empty <br>  address or `*&#39; indicates that the port should be available from all interfaces.</pre><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=6659a48edc" width="1" height="1" alt=""><hr><p><a href="https://medium.com/oneops-work/ssh-tunnel-for-rds-via-bastion-host-6659a48edc">ssh tunnel for RDS via bastion host</a> was originally published in <a href="https://medium.com/oneops-work">My Devops work</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How to do “end to end” encryption of data in transit b/w AWS ALB and EC2]]></title>
            <link>https://medium.com/oneops-work/how-to-do-end-to-end-encryption-of-data-in-transit-b-w-aws-alb-and-ec2-3b7fd917cddd?source=rss----7653b41060dc---4</link>
            <guid isPermaLink="false">https://medium.com/p/3b7fd917cddd</guid>
            <category><![CDATA[aws]]></category>
            <category><![CDATA[shell-script]]></category>
            <category><![CDATA[ssl-certificate]]></category>
            <category><![CDATA[nginx]]></category>
            <category><![CDATA[devops]]></category>
            <dc:creator><![CDATA[Aravind G V]]></dc:creator>
            <pubDate>Mon, 29 Jan 2018 08:32:20 GMT</pubDate>
            <atom:updated>2018-01-29T08:32:19.614Z</atom:updated>
            <content:encoded><![CDATA[<h3><strong>Terminating secure connections at the load balancer and using HTTP on the backend may be sufficient for our application but I assume we need end-to-end encryption for compliance reasons (PCI, HIPAA, etc.)</strong></h3><p><strong>To get full end to end encryption we need to configure encryption ie SSL termination at ALB and also self signed certs in web servers as explained from below diagram.</strong></p><p>Creating ALB from console is straightForward. Please follow this <a href="https://docs.aws.amazon.com/elasticloadbalancing/latest/application/create-https-listener.html">link</a> if you are doing first time</p><p>Below Diagram will explain how is ALB-&gt; to Ec2 Communicates</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/387/1*Mjh6exXn57w2FS9Qcope2w.png" /><figcaption>End-to-End Encryption</figcaption></figure><p>Now Your ALB should have configured Listener with 443 and Instance port on 443 as shown below.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*2IeapKwS18aWtqvsaCwFPw.png" /></figure><p>Next step will be work on automation side of setting up nginx and configuring Self-Signed SSL</p><h3><strong>If you’d like to duplicate my Shell script which will do:</strong></h3><ol><li>Generate Certificate and key with hostname</li><li>Installs Nginx</li><li>Creates and configures /etc/nginx/conf.d/ssl.conf</li><li>Reload Nginx</li></ol><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/e0739a5a5e52c5438620291772ee46b2/href">https://medium.com/media/e0739a5a5e52c5438620291772ee46b2/href</a></iframe><h3>Now Time to test using tcpdump and Wireshark to sniff and analyse SSL network traffic</h3><p>To ensure that the backend instances where healthy and serving requests I wanted to dig a bit deeper to confirm that the data was, in fact, encrypted. I went ahead and ran some requests against the backend web servers and utilized <a href="http://www.tcpdump.org/">tcpdump</a> on a backend instance, capturing data on port 443</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*_RwfFATF8C5NamhjLwpMAg.png" /></figure><p>Now above tcpdump data loaded into <a href="https://www.wireshark.org/">Wireshark</a> for visualization — the result is show below:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*h5eoRq5TDBooonnm23pvCw.png" /></figure><p>Notice that the capture has no filters applied — and specifically — that payload is shown as “Encryption Alert.” <em>If this were an HTTP connection I would be able to view the data that was being sent</em>. After the packet capture my curiosity was satisfied — the body of HTTP requests was being encrypted in transit.</p><h3>Conclusion:</h3><p>If you require “end to end” <em>encryption</em> of data in transit you can utilize backend instances with self-signed certificates.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=3b7fd917cddd" width="1" height="1" alt=""><hr><p><a href="https://medium.com/oneops-work/how-to-do-end-to-end-encryption-of-data-in-transit-b-w-aws-alb-and-ec2-3b7fd917cddd">How to do “end to end” encryption of data in transit b/w AWS ALB and EC2</a> was originally published in <a href="https://medium.com/oneops-work">My Devops work</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How does my Browser find the right Website?]]></title>
            <link>https://medium.com/oneops-work/how-does-my-browser-find-the-right-website-8b156037c3eb?source=rss----7653b41060dc---4</link>
            <guid isPermaLink="false">https://medium.com/p/8b156037c3eb</guid>
            <category><![CDATA[information-technology]]></category>
            <category><![CDATA[information-security]]></category>
            <category><![CDATA[it]]></category>
            <category><![CDATA[development]]></category>
            <category><![CDATA[devops]]></category>
            <dc:creator><![CDATA[Aravind G V]]></dc:creator>
            <pubDate>Sat, 14 Oct 2017 10:23:01 GMT</pubDate>
            <atom:updated>2017-10-14T12:53:41.334Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/387/1*-P42oTIgk6TGkQbLapVctg.png" /></figure><h3>What is a DNS ?</h3><p>DNS is like a phone book. If you know a person&#39;s name you can easily find his phone number. DNS Provides same service to the internet.</p><h3>How does my Browser find the right Website?</h3><p>When you type a URL/web address into your browser, several things occur behind the scenes to bring you the correct web page. The first thing your web browser needs to do is translate the domain name into the IP address of a website. Doing this enables it to locate the correct website. Once it’s found the correct website, it can then download the web page, along with it’s associated files (images, CSS files, etc).</p><h4>When you type a URL into your browser, it uses the following steps to locate the correct website:</h4><ol><li><strong>Ask for Information:</strong> The process starts with <em>browser checks its cache (memory) to see if it knows which IP address the domain name resolves to. If it knows, it will resolve it and display the web page. </em>If your computer doesn’t already know the answer, it needs to perform a <strong>DNS query</strong> to find out.</li><li><strong>Host File Check:</strong> If the domain name is unable to be resolved, the browser will check your <em>hosts file</em> for a DNS entry.</li><li><strong>Get the recursive DNS servers:</strong><em>If there’s no entry in the hosts file, the browser will check the default DNS server (specified via your computer’s network settings). This is usually your ISP’s DNS server or your employer’s. These specialized computers perform the legwork of a DNS query on your behalf. Recursive servers have their own caches, </em><strong><em>so the process usually ends here and the information is returned to the user.</em></strong></li><li><strong>Check out Root Name Server</strong>: If the default DNS server doesn’t have an entry for that domain name,The root nameservers will look at the first part of our request, reading from right to left — <a href="http://www.dyn.com/"><em>www.myopswork.</em><strong><em>com</em></strong></a> — and direct our query to the <a href="http://dyn.com/dns/domain-registration/supported-tlds/"><strong>Top-Level Domain (TLD) nameservers</strong></a> for <em>.com</em>. Each TLD, such as <em>.com</em>, <em>.org</em>, and <em>.in</em>, have their own set of nameservers, which act like a receptionist for each TLD. These servers don’t have the information we need, but they can refer us directly to the servers that <em>do</em> have the information.</li><li><strong>Step 5: Ask the authoritative DNS servers: </strong>The TLD nameservers review the next part of our request — <a href="http://www.dyn.com/"><strong><em>www.myopswork.com</em></strong></a> — and direct our query to the nameservers responsible for this <em>specific</em> domain. These <strong>authoritative nameservers</strong> are responsible for knowing all the information about a specific domain, which are stored in <strong>DNS records</strong>. There are many types of records, which each contain a different kind of information. In this example, we want to know the IP address for <a href="http://www.dyndns.com,/"><em>www.myopswork.com</em>,</a> so we ask the authoritative nameserver for the <strong>Address Record (A)</strong>.</li><li><strong>Keeping and Caching the Record</strong>: The recursive server retrieves the A record for myopswork<em>.com</em> from the authoritative nameservers and stores in local cache. If same requests come again it just provides it. There is also TTL(Time to Leave) depending up the value(5min,1 hour or 24hours) recursive server keeps updating its cache.</li><li>Get the Result: The recursive server returns A record to your computer and your computer keeps it in cache.</li></ol><h3>This entire process, from start to finish, takes only milliseconds to complete.</h3><h3>Thanks for reading! :) If you enjoyed this article, hit that clap button below . Would mean a lot to me and it helps other people see the story.</h3><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=8b156037c3eb" width="1" height="1" alt=""><hr><p><a href="https://medium.com/oneops-work/how-does-my-browser-find-the-right-website-8b156037c3eb">How does my Browser find the right Website?</a> was originally published in <a href="https://medium.com/oneops-work">My Devops work</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>