<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>kubernetes on Rise-</title><link>https://madil.in/tag/kubernetes/</link><description>Recent content in kubernetes on Rise-</description><generator>Hugo</generator><language>en</language><lastBuildDate>Sat, 11 May 2024 10:01:18 +0000</lastBuildDate><atom:link href="https://madil.in/tag/kubernetes/index.xml" rel="self" type="application/rss+xml"/><item><title>Learn Hard-to-Learn Technologies (like Kubernetes)</title><link>https://madil.in/learn-hard-to-learn-technologies-like-kubernetes/</link><pubDate>Sat, 11 May 2024 10:01:18 +0000</pubDate><guid>https://madil.in/learn-hard-to-learn-technologies-like-kubernetes/</guid><description>&lt;p&gt;As developers, we often face the dilemma of choosing which technologies to use and when. In this article, we will talk about one of the most debated claims - &lt;em&gt;&amp;ldquo;Do you really need Kubernetes?&amp;rdquo;&lt;/em&gt;.&lt;/p&gt;&#10;&lt;p&gt;Lane Wagner, in his article - &lt;em&gt;&amp;ldquo;Maybe You Need Kubernetes&amp;rdquo;&lt;/em&gt;, sheds some light on the controversial claim. When we&amp;rsquo;re making business decisions, it&amp;rsquo;s usually best to opt for the simplest, fastest, and cheapest solution. However, when it comes to our careers as developers, having expertise in hard-to-learn technologies can be a valuable asset. Speaking from my personal experience, I gained a lot more opportunities after completing my Certified Kubernetes Administrator (CKA) and Certified Kubernetes Security Specialist (CKS) certifications. By the end of the year, I was able to do penetration testing on Kubernetes clusters and also contribute to the Container and Kubernetes security knowledge base within the organization.&lt;/p&gt;</description></item><item><title>TIL - Tracing Syscalls using Aquasec Tracee</title><link>https://madil.in/til-tracing-syscalls-using-aquasec-tracee/</link><pubDate>Sat, 12 Nov 2022 08:30:23 +0000</pubDate><guid>https://madil.in/til-tracing-syscalls-using-aquasec-tracee/</guid><description>&lt;p&gt;To check all the syscalls made from a container use the Tracee tool developed by Aqua Security.&lt;/p&gt;&#10;&lt;p&gt;Below docker run command will trace all the new syscalls made from new containers.&lt;/p&gt;&#10;&lt;div class="code-block not-prose group relative my-7" x-data="copy(function () { return this.$root.querySelector('pre').innerText })"&gt;&lt;pre tabindex="0"&gt;&lt;code&gt;docker run --name tracee --rm --privileged \&#10; -v /lib/modules/:/lib/modules/:ro \&#10; -v /usr/src:/usr/src:ro -v /tmp/tracee:/tmp/tracee -it \&#10; aquasec/tracee:0.4.0 --trace container=new&lt;/code&gt;&lt;/pre&gt;&lt;div class="absolute right-2 top-2 flex items-center gap-2"&gt;&#10; &lt;button type="button" @click="copy()" data-track="code_copied" data-track-props='{&amp;#34;language&amp;#34;:&amp;#34;text&amp;#34;}' class="absolute right-0 flex items-center gap-1 rounded-md bg-white/10 px-2 py-1 text-xs text-white/80 opacity-0 transition-opacity hover:bg-white/20 focus:opacity-100 group-hover:opacity-100"&gt;&#10; &lt;span x-text="copied ? 'Copied' : 'Copy'"&gt;Copy&lt;/span&gt;&#10; &lt;/button&gt;&#10; &lt;/div&gt;&#10;&lt;/div&gt;&#10;&lt;a class="bookmark-card" href="https://github.com/aquasecurity/tracee" target="_blank" rel="noopener"&gt;&#10; &lt;span class="bookmark-content"&gt;&#10; &lt;span class="bookmark-title"&gt;GitHub - aquasecurity/tracee: Linux Runtime Security and Forensics using eBPF&lt;/span&gt;&lt;span class="bookmark-description"&gt;Linux Runtime Security and Forensics using eBPF. Contribute to aquasecurity/tracee development by creating an account on GitHub.&lt;/span&gt;&#10; &lt;span class="bookmark-meta"&gt;&lt;img class="bookmark-icon" src="https://github.com/fluidicon.png" alt="" loading="lazy"&gt;&lt;span&gt;aquasecurity&lt;/span&gt;&#10; &lt;/span&gt;&#10; &lt;/span&gt;&lt;span class="bookmark-thumb"&gt;&lt;img src="https://opengraph.githubassets.com/6f23fbe07e784db031aa7b211bfe511094104455d02cf4dc8adf6b8ff83f3508/aquasecurity/tracee" alt="" loading="lazy"&gt;&lt;/span&gt;&lt;/a&gt;</description></item><item><title>TIL - Viewing x509 Certificate Details</title><link>https://madil.in/til-viewing-x509-certificate-details/</link><pubDate>Sat, 05 Nov 2022 17:05:34 +0000</pubDate><guid>https://madil.in/til-viewing-x509-certificate-details/</guid><description>&lt;p&gt;Use the following command to view the details of an x509 certificate.&lt;/p&gt;&#10;&lt;blockquote&gt;&#10;&lt;p&gt;💡 Example uses the certificates generated by kubeadm tool for Kubernetes API Server.&lt;/p&gt;&#10;&lt;/blockquote&gt;&#10;&lt;div class="code-block not-prose group relative my-7" x-data="copy(function () { return this.$root.querySelector('pre').innerText })"&gt;&lt;div class="highlight"&gt;&lt;pre tabindex="0" style="color:#abb2bf;background-color:#282c34;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;"&gt;&lt;code class="language-shell" data-lang="shell"&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;openssl x509 -in /etc/kubernetes/pki/apiserver.crt -text -noout&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;div class="absolute right-2 top-2 flex items-center gap-2"&gt;&lt;span class="select-none text-xs uppercase tracking-wider text-white/40 transition-opacity group-hover:opacity-0"&gt;shell&lt;/span&gt;&#10; &lt;button type="button" @click="copy()" data-track="code_copied" data-track-props='{&amp;#34;language&amp;#34;:&amp;#34;shell&amp;#34;}' class="absolute right-0 flex items-center gap-1 rounded-md bg-white/10 px-2 py-1 text-xs text-white/80 opacity-0 transition-opacity hover:bg-white/20 focus:opacity-100 group-hover:opacity-100"&gt;&#10; &lt;span x-text="copied ? 'Copied' : 'Copy'"&gt;Copy&lt;/span&gt;&#10; &lt;/button&gt;&#10; &lt;/div&gt;&#10;&lt;/div&gt;</description></item><item><title>TIL - Pod Topology Spread Constraints</title><link>https://madil.in/til-pod-topology-spread-constraints/</link><pubDate>Sat, 29 Oct 2022 19:45:03 +0000</pubDate><guid>https://madil.in/til-pod-topology-spread-constraints/</guid><description>Today I learned about Pod Topology Spread Constraints in Kubernetes. This is demonstrated using an example scenario.</description></item><item><title>TIL - Add wait between Kubernetes deployments</title><link>https://madil.in/til-add-wait-between-kubernetes-deployments/</link><pubDate>Sat, 01 Oct 2022 19:45:01 +0000</pubDate><guid>https://madil.in/til-add-wait-between-kubernetes-deployments/</guid><description>&lt;p&gt;When building Kubernetes deployment scripts for local testing, we often encounter scenarios where we have to wait for a database instance before deploying an application.&lt;/p&gt;&#10;&lt;p&gt;In order to add a wait between deployments, we can add a rollout status command like this -&lt;/p&gt;&#10;&lt;div class="code-block not-prose group relative my-7" x-data="copy(function () { return this.$root.querySelector('pre').innerText })"&gt;&lt;div class="highlight"&gt;&lt;pre tabindex="0" style="color:#abb2bf;background-color:#282c34;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;"&gt;&lt;code class="language-bash" data-lang="bash"&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;&lt;span style="color:#7f848e"&gt;# deploy a database using a deployment manifest file&lt;/span&gt;&#10;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;kubectl apply -f database-deployment.yaml&#10;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;&#10;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;&lt;span style="color:#7f848e"&gt;# wait for the rollout before running the application&lt;/span&gt;&#10;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;kubectl rollout status deployment/database-deployment&#10;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;&#10;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;&lt;span style="color:#7f848e"&gt;# deploy application using a deployment manifest file&lt;/span&gt;&#10;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;kubectl apply -f application-deployment.yaml&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;div class="absolute right-2 top-2 flex items-center gap-2"&gt;&lt;span class="select-none text-xs uppercase tracking-wider text-white/40 transition-opacity group-hover:opacity-0"&gt;bash&lt;/span&gt;&#10; &lt;button type="button" @click="copy()" data-track="code_copied" data-track-props='{&amp;#34;language&amp;#34;:&amp;#34;bash&amp;#34;}' class="absolute right-0 flex items-center gap-1 rounded-md bg-white/10 px-2 py-1 text-xs text-white/80 opacity-0 transition-opacity hover:bg-white/20 focus:opacity-100 group-hover:opacity-100"&gt;&#10; &lt;span x-text="copied ? 'Copied' : 'Copy'"&gt;Copy&lt;/span&gt;&#10; &lt;/button&gt;&#10; &lt;/div&gt;&#10;&lt;/div&gt;&#10;&lt;p&gt;The output will be something like this -&lt;/p&gt;</description></item><item><title>TIL - You do not need Kubernetes API Server to spin up Pods</title><link>https://madil.in/til-you-do-not-need-kubernetes-api-server-to-spin-up-pods/</link><pubDate>Wed, 13 Apr 2022 17:42:54 +0000</pubDate><guid>https://madil.in/til-you-do-not-need-kubernetes-api-server-to-spin-up-pods/</guid><description>&lt;p&gt;Yes, you heard it correctly! When I read about it, it blew my mind. 🤯&lt;/p&gt;&#10;&lt;p&gt;In Kubernetes, the control plane manages the Pods. To run a Pod with an Nginx container, we run the following command -&lt;/p&gt;&#10;&lt;div class="code-block not-prose group relative my-7" x-data="copy(function () { return this.$root.querySelector('pre').innerText })"&gt;&lt;div class="highlight"&gt;&lt;pre tabindex="0" style="color:#abb2bf;background-color:#282c34;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;"&gt;&lt;code class="language-shell" data-lang="shell"&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;&amp;gt; kubectl run nginx --image nginx&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;div class="absolute right-2 top-2 flex items-center gap-2"&gt;&lt;span class="select-none text-xs uppercase tracking-wider text-white/40 transition-opacity group-hover:opacity-0"&gt;shell&lt;/span&gt;&#10; &lt;button type="button" @click="copy()" data-track="code_copied" data-track-props='{&amp;#34;language&amp;#34;:&amp;#34;shell&amp;#34;}' class="absolute right-0 flex items-center gap-1 rounded-md bg-white/10 px-2 py-1 text-xs text-white/80 opacity-0 transition-opacity hover:bg-white/20 focus:opacity-100 group-hover:opacity-100"&gt;&#10; &lt;span x-text="copied ? 'Copied' : 'Copy'"&gt;Copy&lt;/span&gt;&#10; &lt;/button&gt;&#10; &lt;/div&gt;&#10;&lt;/div&gt;&#10;&lt;p&gt;Kubernetes will make sure that a Pod with the &amp;ldquo;nginx&amp;rdquo; name is spun-up and uses the &amp;ldquo;nginx:latest&amp;rdquo; image. But let me tell you that there are other ways to run Pods in Kubernetes. These Pods are called Static Pods.&lt;/p&gt;</description></item><item><title>Useful links - Software Orchestration Edition</title><link>https://madil.in/useful-links-software-orchestration-edition/</link><pubDate>Fri, 21 Jul 2017 18:30:00 +0000</pubDate><guid>https://madil.in/useful-links-software-orchestration-edition/</guid><description>&lt;h3 id="git"&gt;git&lt;/h3&gt;&#10;&lt;p&gt;Most commonly used git tips and tricks - &lt;a href="https://github.com/git-tips/tips"&gt;Git-tips&lt;/a&gt;&lt;/p&gt;&#10;&lt;h3 id="ansible"&gt;ansible&lt;/h3&gt;&#10;&lt;p&gt;Automating Django Deployments With Fabric and Ansible - &lt;a href="https://realpython.com/blog/python/automating-django-deployments-with-fabric-and-ansible/"&gt;Realpython.com blog&lt;/a&gt;&lt;/p&gt;&#10;&lt;h3 id="docker"&gt;docker&lt;/h3&gt;&#10;&lt;p&gt;A handy CLI in Docker container to make optimum use of git tips - &lt;a href="https://github.com/djoudi5/docker-git-tip"&gt;Docker git-tips&lt;/a&gt;&lt;/p&gt;&#10;&lt;p&gt;Docker 101 workshop - introduction to Docker and basic concepts -&lt;br&gt;&#10;&lt;a href="https://github.com/gravitational/workshop/blob/master/docker.md"&gt;Gravitational Workshops - docker&lt;/a&gt;&lt;/p&gt;&#10;&lt;p&gt;Build and deploying heroku apps with docker - &lt;a href="https://blog.heroku.com/introducing_heroku_docker_release_build_deploy_heroku_apps_with_docker"&gt;Heroku + Docker&lt;/a&gt;&lt;/p&gt;&#10;&lt;h3 id="kubernetes"&gt;kubernetes&lt;/h3&gt;&#10;&lt;p&gt;Kubernetes 101 workshop - introduction to Kubernetes and basic concepts -  &lt;a href="https://github.com/gravitational/workshop/blob/master/k8s101.md"&gt;Gravitational Workshops - kubernetes&lt;/a&gt;&lt;/p&gt;</description></item></channel></rss>