<?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 Eduardo Munari on Medium]]></title>
        <description><![CDATA[Stories by Eduardo Munari on Medium]]></description>
        <link>https://medium.com/@dumunari?source=rss-2c0a14d4779b------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*77n5x71Kg-4NZ09n1uw0mQ.jpeg</url>
            <title>Stories by Eduardo Munari on Medium</title>
            <link>https://medium.com/@dumunari?source=rss-2c0a14d4779b------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Mon, 23 Nov 2026 04:47:42 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@dumunari/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[My Kubestronaut journey]]></title>
            <link>https://faun.pub/my-kubestronaut-journey-9b2546c81b97?source=rss-2c0a14d4779b------2</link>
            <guid isPermaLink="false">https://medium.com/p/9b2546c81b97</guid>
            <category><![CDATA[cncf]]></category>
            <category><![CDATA[cloud-native]]></category>
            <category><![CDATA[certification]]></category>
            <category><![CDATA[kubestronaut]]></category>
            <category><![CDATA[kubernetes]]></category>
            <dc:creator><![CDATA[Eduardo Munari]]></dc:creator>
            <pubDate>Fri, 31 Jan 2025 03:03:00 GMT</pubDate>
            <atom:updated>2026-01-25T20:05:06.656Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/720/1*SefoBYWXyiGMoALeWYr-WA.png" /></figure><blockquote>Also available<em> </em><strong><em>@</em></strong><em> </em><a href="https://platformsessions.com.br/en/posts/kubestronaut-journey/kubestronaut-journey/">Platform Sessions</a></blockquote><h3><strong>Introduction</strong></h3><p>For those who don’t know, the Kubestronaut Program is a <a href="https://www.cncf.io/">CNCF</a> initiative that recognizes individuals who have consistently invested in their ongoing education and have advanced their skills with Kubernetes, having successfully passed all of the CNCF’s <strong>Kubernetes</strong> certifications.</p><p>For complete information about the program, check the following link: <a href="https://www.cncf.io/training/kubestronaut/">https://www.cncf.io/training/kubestronaut/</a>.</p><h3>My journey</h3><p>Before talking about my Kubestronaut journey, let me first share my journey with Kubernetes itself. <br>I’ve been working with Kubernetes for 6 years, so I had a solid foundation for most of the exams.</p><h4>My Kubernetes journey</h4><p>I’ve worked with Kubernetes on bare metal, Azure, AWS, and OpenShift implementations, across industries such as Banking, Telecom, E-commerce, Logistics, and Food &amp; Beverage. <br>I’ve handled a wide range of applications, from Business and Data Apps to maintaining DevOps tool clusters and building Internal Developer Platforms based on Kubernetes from scratch.</p><h4>My Kubestronaut journey</h4><p>My Kubestronaut journey began on October 8th, 2024, when I aced KCNA and ended on January 23rd, 2025, when I received the results from the CKS exam.<br><a href="https://github.com/dumunari/my-kubestronaut-journey">I created a GitHub repository</a> where I shared all the courses I’ve taken, along with tips for each exam and my personal notes (please, forgive me for my terrible handwriting).</p><p>Here’s a summary of my journey:</p><ol><li><strong>08/10/2024</strong> — [<strong>KCNA</strong>] Kubernetes and Cloud Native Associate Exam<br>Score Needed: 75 🎯<br>My Score: 93 ✅</li><li><strong>11/11/2024</strong> — [<strong>CKA</strong>] Certified Kubernetes Administrator<br>Score Needed: 66 🎯<br>My Score: 99 ✅</li><li><strong>29/12/2024</strong> — [<strong>KCSA</strong>] Kubernetes and Cloud Native Security Associate<br>Score Needed: 75 🎯<br>My Score: 87 ✅</li><li><strong>30/12/2024</strong> — [<strong>CKAD</strong>] Certified Kubernetes Application Developer<br>Score Needed: 66 🎯<br>My Score: 98 ✅</li><li><strong>22/01/2025</strong> — [<strong>CKS</strong>] Certified Kubernetes Security Specialist<br>Score Needed: 67 🎯<br>My Score: 74 ✅ 😰</li></ol><h4>Some important things to point out</h4><p>a) I was planning to take the CKAD exam one week after the CKA, since the content overlaps by about 70%, but I was moving out, and my schedule didn’t go as expected. Hehe.</p><p>b) I finally got settled around December 16th, so I rushed through the KCSA exam alongside my ongoing CKAD studies, which helped me make up for some of the time I lost</p><p>c) Obviously, I have more difficulty with multiple-choice exams</p><p>d) The CKS exam is really challenging</p><h4>Problems I had during the exams [for Mac users]</h4><p>All four of the first exams went smoothly. There were no issues with the PSI Secure Browser or Internet Connection. <br>However, during the CKS exam, I encountered a problem that I think could be helpful to share to assist you on your own journey.</p><p>In the “close applications” step of the exam preparation, PSI asked me to close an application called <strong>SidecarRelay</strong>, which had also been flagged in the other exams, and I was able to close it without issues. <br>But, during my CKS exam, every time I tried to finish the <strong>SidecarRelay</strong> process, it kept respawning.</p><p>Obviously, I nearly panicked.</p><p>After several frustrated attempts to close the process, I searched Google and found <a href="https://www.reddit.com/r/MacOS/comments/1gfx52l/how_can_i_disable_the_sidecarrelay_service/?rdt=61230">this Reddit post</a> describing the same issue. <br>The last comment from user <strong>SeriousBattle8727</strong> (thanks, dude, you’re a hero!) said:</p><blockquote>“I experienced the same issue in the CKA exam. As a workaround, I created a new admin user in a clean state.”</blockquote><p>I did it, and it worked like a charm, and I was able to start the exam (just three minutes before I would have been disqualified).</p><h3>Overview of the journey</h3><p>Although I’ve been working with Kubernetes for a while, being on this journey taught me a lot of new things and really helped me improve my ability to guide my team in making decisions and going through everyday challenges.</p><p>Since I had never worked in-depth with security (only having basic to intermediate experience), the KCSA and CKS exams were incredibly important. They taught me a great deal not only about Kubernetes itself, but also about core OS and network concepts and practices. And that’s exactly what Kubernetes is all about, isn’t it?</p><p>Also, during this journey, I made a lot of networking with other exam takers, and had a very great support from my teammates, which are also finishing their own journey.</p><p>You guys made this journey way cooler than it would have been, thank you!</p><h3>Conclusion</h3><p>The <a href="https://www.cncf.io/training/kubestronaut/">Kubestronaut Program</a> is a <a href="https://www.cncf.io/">CNCF</a> initiative that recognizes individuals who have passed all of the CNCF’s Kubernetes certifications.</p><p>Working with Kubernetes on a daily basis is a huge advantage when it comes to acing the certification exams, but studying and preparing properly is what truly makes the difference in navigating the journey with ease.</p><p><a href="https://github.com/dumunari/my-kubestronaut-journey">After completing this journey, I created a repository</a> where I documented all the details, the courses I’ve taken, and my personal notes, to aid you on your own journey.</p><p>Please feel free to reach out to me for questions about the exams, improving the repo or anything else — I’ll be more than happy to help.</p><p>And last but not least, a <strong>HUGE</strong> thanks to:</p><ul><li><a href="https://www.linkedin.com/in/jamesspurin/">James Spurin</a>, for his amazing <a href="https://www.udemy.com/course/dive-into-cloud-native-containers-kubernetes-and-the-kcna">KCNA course</a>;<br>- <a href="https://www.linkedin.com/in/mmumshad/overlay/about-this-profile/">Mumshad Mannambeth</a> and the <a href="https://learn.kodekloud.com/">KodeKloud</a> Team, for CKA, CKAD, KCSA and CKS courses and mock exams;<br>- <a href="https://www.linkedin.com/in/thiago4go/overlay/about-this-profile/">Thiago Sinji Shimada Ramos</a>, for his incredible work on <a href="https://kubernetes-security-kcsa-mock.vercel.app/">Kubernetes Security KCSA Mock Exam</a> application;<br>- <a href="https://www.linkedin.com/in/yongkanghe/">Yongkang H.</a>, for his <a href="https://www.linkedin.com/in/kubestronaut/">kubestronaut he</a> profile, where he shares a lot of tips and discount vouchers for certifications.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/700/0*C9ZjEL_9EI9Kvong.png" /></figure><h4>👋 If you find this helpful, please click the clap 👏 button below a few times to show your support for the author 👇</h4><h4>🚀<a href="http://from.faun.to/r/8zxxd">Join FAUN Developer Community &amp; Get Similar Stories in your Inbox Each Week</a></h4><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=9b2546c81b97" width="1" height="1" alt=""><hr><p><a href="https://faun.pub/my-kubestronaut-journey-9b2546c81b97">My Kubestronaut journey</a> was originally published in <a href="https://faun.pub/">FAUN.dev() 🐾</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Minha jornada Kubestronaut]]></title>
            <link>https://medium.com/@dumunari/minha-jornada-kubestronaut-00b26d942527?source=rss-2c0a14d4779b------2</link>
            <guid isPermaLink="false">https://medium.com/p/00b26d942527</guid>
            <category><![CDATA[kubernetes]]></category>
            <category><![CDATA[cncf]]></category>
            <category><![CDATA[kubestronaut]]></category>
            <category><![CDATA[cloud-native]]></category>
            <category><![CDATA[certification]]></category>
            <dc:creator><![CDATA[Eduardo Munari]]></dc:creator>
            <pubDate>Fri, 31 Jan 2025 03:02:38 GMT</pubDate>
            <atom:updated>2026-01-25T20:06:15.412Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/720/1*SefoBYWXyiGMoALeWYr-WA.png" /></figure><blockquote>Também disponível <strong><em>@</em></strong> <a href="https://platformsessions.com.br/posts/kubestronaut-journey/kubestronaut-journey/">Platform Sessions</a></blockquote><h3><strong>Introdução</strong></h3><p>Para quem não conhece, o Programa Kubestronaut é uma iniciativa da <a href="https://www.cncf.io/">CNCF</a> que reconhece pessoas que tenham sido aprovadas nas 5 certificações disponíveis de Kubernetes.</p><p>Para informações completas sobre o programa, acesse o link: <a href="https://www.cncf.io/training/kubestronaut/">https://www.cncf.io/training/kubestronaut/</a>.</p><h3><strong>Minha jornada</strong></h3><p>Antes de falar sobre minha jornada Kubestronaut, gostaria de falar brevemente sobre minha jornada com Kubernetes.<br>Trabalho com Kubernetes há aproximadamente 6 anos, então tive uma base sólida para a maioria das certificações.</p><h4><strong>Minha jornada com Kubernetes</strong></h4><p>Trabalhei com Kubernetes em implementações baremetal, Azure, AWS e OpenShift, e nos mercados Bancário, Telecomunicações, E-commerce, Logística e Alimentação. <br>Construí e gerenciei uma variedade de aplicações, desde aplicativos convencionais de negócios e até serviços de dados. Além disso, liderei iniciativas de construção e evolução de IDPs, cuidando de clusters de aplicação e clusters de ferramentas.</p><h4>Minha jornada Kubestronaut</h4><p>Minha jornada Kubestronaut começou em 8 de outubro de 2024, quando obtive a certificação KCNA, e terminou em 23 de janeiro de 2025, quando recebi os resultados da CKS.</p><p><a href="https://github.com/dumunari/my-kubestronaut-journey">Após a conclusão, criei um repositório no GitHub</a> onde compartilhei todos os cursos que fiz, com dicas para cada certificação e minhas anotações pessoais (peço desculpas pela minha letra horrível).<br>Aqui está um resumo da minha jornada:</p><ul><li><strong>08/10/2024</strong> — [KCNA] Exame Kubernetes and Cloud Native Associate<br>Pontuação necessária: 75 🎯<br>Minha pontuação: 93 ✅</li><li><strong>11/11/2024</strong> — [CKA] Certified Kubernetes Administrator<br>Pontuação necessária: 66 🎯<br>Minha pontuação: 99 ✅</li><li><strong>29/12/2024</strong> — [KCSA] Kubernetes and Cloud Native Security Associate<br>Pontuação necessária: 75 🎯<br>Minha pontuação: 87 ✅</li><li><strong>30/12/2024</strong> — [CKAD] Certified Kubernetes Application Developer<br>Pontuação necessária: 66 🎯<br>Minha pontuação: 98 ✅</li><li><strong>22/01/2025</strong> — [CKS] Certified Kubernetes Security Specialist<br>Pontuação necessária: 67 🎯<br>Minha pontuação: 74 ✅ 😰</li></ul><h4><strong>Alguns pontos importantes</strong></h4><p>a) Inicialmente, eu planejava fazer a CKAD logo após a CKA, já que o conteúdo se sobrepõe em cerca de 70%, mas como eu estava me mudando de casa, meu cronograma não saiu como o esperado. Hehe.</p><p>b) Finalmente me mudei por volta de 16 de dezembro, enquanto revisava o conteúdo para a CKAD, corri com os estudos para a KCSA, o que me ajudou a recuperar um pouco do tempo perdido.</p><p>c) Obviamente, tenho mais dificuldade com exames de múltipla escolha.</p><p>d) A CKS é realmente desafiadora.</p><h4>Problemas que encontrei durante os exames [para usuários de Mac]</h4><p>Os quatro primeiros exames ocorreram sem problemas. Não houve problemas com o PSI Secure Browser ou com minha conexão com a internet. <br>No entanto, durante a CKS, encontrei um problema que acho que pode ser útil compartilhar para ajudar você na sua jornada.</p><p>Na etapa de “fechar aplicações” da preparação para o exame, o PSI me pediu para fechar uma aplicação chamada <strong>SidecarRelay</strong>, que também havia sido sinalizada nos outros exames, mas naqueles casos consegui fechá-la sem problemas.<br>Porém, durante a CKS, toda vez que tentava finalizar o processo do <strong>SidecarRelay</strong>, ele reiniciava sozinho.</p><p>Obviamente, eu fiquei em choque.</p><p>Depois de várias tentativas frustradas, pesquisei no Google e encontrei <a href="https://www.reddit.com/r/MacOS/comments/1gfx52l/how_can_i_disable_the_sidecarrelay_service/?rdt=61230">este post no Reddit</a> descrevendo o mesmo problema.<br>O último comentário do usuário <strong>SeriousBattle8727</strong> (valeu, cara, você é um herói!) dizia:</p><blockquote>“Eu passei pelo mesmo problema na CKA. Como solução alternativa, criei um novo usuário admin em um estado limpo.”</blockquote><p>Segui o conselho e funcionou perfeitamente, então consegui começar a prova (apenas três minutos antes de ser desqualificado).</p><h3><strong>Visão geral da jornada</strong></h3><p>Embora já trabalhasse com Kubernetes há algum tempo, estar nessa jornada me ensinou muitas coisas novas e realmente me ajudou a melhorar minha capacidade de orientar minha equipe em decisões e desafios do dia a dia.</p><p>Como nunca havia trabalhado profundamente com segurança (tinha apenas experiência básica a intermediária), as certificações KCSA e CKS foram incrivelmente importantes. <br>Elas me ensinaram muito sobre Kubernetes em si, mas também sobre conceitos e práticas fundamentais de sistemas operacionais e redes. E é exatamente disso que Kubernetes se trata, certo?</p><p>Além disso, durante essa jornada, fiz muitas conexões com outras pessoas que também estavam fazendo as provas e recebi muito apoio dos meus colegas de equipe, que também estão terminando sua própria jornada.</p><p>Vocês tornaram essa jornada muito mais legal do que teria sido, obrigado!</p><h3><strong>Conclusão</strong></h3><p>O <a href="https://www.cncf.io/training/kubestronaut/">Programa Kubestronaut</a> é uma iniciativa da <a href="https://www.cncf.io/">CNCF</a> que reconhece pessoas que tenham sido aprovadas nas 5 certificações disponíveis de Kubernetes.</p><p>Trabalhar com Kubernetes no dia a dia é uma enorme vantagem quando se trata de passar nas certificações, mas estudar e se preparar adequadamente é o que realmente faz a diferença para passar por essa jornada com mais facilidade.</p><p><a href="https://github.com/dumunari/my-kubestronaut-journey">Após a conclusão, criei um repositório</a> onde documentei todos os detalhes, os cursos que fiz e minhas anotações pessoais, para contribuir com quem quiser se aventurar nesse mesmo desafio.</p><p>Sintam-se à vontade para entrar em contato comigo se tiver alguma dúvida sobre os exames, sugestões de melhoria para o repo ou qualquer outro motivo — ficarei muito feliz em ajudar.</p><p>E, por último, mas não menos importante, um <strong>ENORME</strong> agradecimento a:</p><ul><li><a href="https://www.linkedin.com/in/jamesspurin/">James Spurin</a>, pelo incrível curso de <a href="https://www.udemy.com/course/dive-into-cloud-native-containers-kubernetes-and-the-kcna/">KCNA</a>;</li><li><a href="https://www.linkedin.com/in/mmumshad/">Mumshad Mannambeth</a> e a equipe <a href="https://learn.kodekloud.com/">KodeKloud</a>, pelos cursos de CKA, CKAD, KCSA e CKS, e pelos simulados;</li><li><a href="https://www.linkedin.com/in/thiago4go/">Thiago Sinji Shimada Ramos</a>, pelo trabalho incrível no app <a href="https://kubernetes-security-kcsa-mock.vercel.app/">Kubernetes Security KCSA Mock Exam</a>.</li><li><a href="https://www.linkedin.com/in/yongkanghe/">Yongkang H.</a>, pelo perfil <a href="https://www.linkedin.com/in/kubestronaut/">kubestronaut he</a>, onde compartilha dicas e cupons de desconto para as certificações.</li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=00b26d942527" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Crossplane: A brief introduction]]></title>
            <link>https://faun.pub/crossplane-a-brief-introduction-29fa660e0b23?source=rss-2c0a14d4779b------2</link>
            <guid isPermaLink="false">https://medium.com/p/29fa660e0b23</guid>
            <category><![CDATA[platform-engineering]]></category>
            <category><![CDATA[crossplane]]></category>
            <category><![CDATA[cncf]]></category>
            <category><![CDATA[cloud-native]]></category>
            <category><![CDATA[kubernetes]]></category>
            <dc:creator><![CDATA[Eduardo Munari]]></dc:creator>
            <pubDate>Fri, 21 Jul 2023 15:36:08 GMT</pubDate>
            <atom:updated>2026-01-25T20:07:32.042Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*c8jhmTqn9FGm7vFyZywWmA.png" /></figure><blockquote>Also available <strong><em>@</em></strong> <a href="https://platformsessions.com.br/en/posts/crossplane-intro/crossplane-intro/">Platform Sessions</a></blockquote><p><em>As we have seen lately, Crossplane took over the world of Platform Engineering providing an absolutely easy and powerful way to build cloud native control planes.<br>But how does it work? How can I use it? What are the gains?<br>This brief post, which is created to be the initial one for a Crossplane series, aims to answer some basic questions for those who are still eager to use it.</em></p><h3><strong>Overview</strong></h3><p>As stated by <a href="https://www.upbound.io/">Upbound</a>, Crossplane is a low-code framework for building cloud native control planes.</p><p>But what is a control plane, after all? Lets take a look.</p><h4>Explaining control planes</h4><p>A control plane/data plane architecture consists in having one component to organize, manage and observe everything and another component which is, in fact, the “things” the control plane observes and manages.</p><p>For better understanding, we can talk about an airport and aircrafts, where aircrafts are the data plane and the control tower for the airport is the control plane.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/592/1*S8tCm2PIrsoSqQrK5_Lrbw.png" /><figcaption>Airport and Crossplane comparison</figcaption></figure><p>So we might say the data plane is the business value, and the control plane is the brain for it to work properly.</p><p>When talking about the Platform Engineering world, there are two huge applications everyone is aware of that work on control plane/data plane architecture.</p><p>One is <a href="https://istio.io/">Istio Service Mesh</a>, which is hugely used on Kubernetes Clusters for traffic management, telemetry, security and everything that is network-related.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*iQn6raSu-ZKwNha2iYtNlw.png" /><figcaption>Isito Architecture</figcaption></figure><p>As we can see, Istio has a control plane that is responsible for managing and configuring proxies to route traffic.</p><p>The Istio data plane is composed of a set of (<a href="https://www.envoyproxy.io/"><em>Envoy</em></a><em>)</em> proxies which are deployed as sidecars, being able to mediate and control all network communication between microservices.</p><p>For detailed information, you can check <a href="https://istio.io/latest/docs/ops/deployment/architecture/#istiod">Istio Architecture</a>.</p><blockquote>Also, you can take a look at one of my blog posts <a href="https://medium.com/@dumunari/installing-istio-prometheus-kiali-jaeger-and-grafana-as-istio-addons-and-enabling-istio-rolling-384e4dbaacd">Installing Istio, Prometheus, Kiali, Jaeger and Grafana as Istio addons and enabling Istio Rolling Upgrades</a></blockquote><p>Another application that has a control plane/data plane architecture is our beloved Kubernetes.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*3lCzPixk4Z80pYG-2HeRPw.png" /><figcaption>Kubernetes Components</figcaption></figure><p>Kubernetes has a control plane composed of an API Server, cloud controller manager, controller manager, etcd and scheduler.</p><p>The control plane makes global decisions about the cluster and respond to events.</p><p>The Kubernetes data planes are commonly known as nodes, and their main work is maintaining and running pods, providing network reliability and ensuring pods are running as they should.</p><p>For detailed information, you can check <a href="https://kubernetes.io/docs/concepts/overview/components/">Kubernetes Components</a>.</p><h3>Why Crossplane?</h3><p>Now that we know the purpose of a control plane, you might be wondering: why Crossplane?</p><p>Let&#39;s start by imagining a scenario where we are the Platform Team of a huge company and we have to support lots of teams on infrastructure and architecture related issues.</p><p>When a team needs an AWS S3 Bucket or an Azure Storage Account, you must assure that it follows security compliances, like having public access disabled and connection details stored safely.</p><blockquote>I bet right now you are thinking: no problem, I can do it using Terraform!</blockquote><p>Yes, you can, and (please, don’t get me wrong) I’m also a Terraform lover, but we know that when it comes to scale, Terraform gets too complicated to manage and we also get ourselves on the critical path of our Product Engineers.</p><p>What Crossplane differs from Terraform is that now, using Crossplane, we can extend Kubernetes’ Control Plane and add new APIs for our Product Engineers to interact with, and they can create every resource they need, but we decide which properties will be exposed for them to choose, and which not.</p><p>You can achieve it by telling your Engineers they need to send a Crossplane Claim manifest that looks like this:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/8c439908b66f018a469513d93d41baa4/href">https://medium.com/media/8c439908b66f018a469513d93d41baa4/href</a></iframe><p>Product Engineer fills storage and instance size needs, sends it to Crossplane and then Crossplane connects to your Cloud Provider and creates the desired resource, based on the Product Engineers needs and respecting your predefined specifications.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/788/0*pX6-JrlkCeAsdgy_" /><figcaption>Exposing opinionated APIs for resources creation</figcaption></figure><h3>Ok, but how Crossplane works?</h3><p>To be able to create and observe its data plane, Crossplane works based on a closed-loop control, where it keeps checking the desired state (your engineers sent using a Manifest) and comparing it to the actual state (the resource on the cloud) to assure things are going as planned. Crossplane does it by using Controllers, but we won&#39;t cover it in this post (in the next one, of course we will).</p><p>As we said before, Crossplane extends Kubernetes&#39; control plane, creating and exposing new APIs in a declarative way, so you don&#39;t need to tell how Crossplane may achieve the desired state, you just tell what the desired state is, and then Crossplane Controllers do all the magic.</p><p>As per the last paragraph, some of you might be thinking: Oh, so we can just watch files and guarantee our desired state?<br>Yes! And that&#39;s much like we know these days by GitOps, right? :)</p><blockquote>Yes, we will leverage ArgoCD&#39;s GitOps soon, just wait for the next posts</blockquote><p>I believe we don&#39;t have to say that Crossplane also ensures security, right? Crossplane uses TLS on all its API calls and it can leverage Kubernetes&#39; RBAC.</p><p>Also, Controllers are a very nice way to make everything run in a isolated form, so there are specific Controllers for each specific resource types, and you can even rate limit the Control Plane/Data Plane interacting to avoid an innocent/unplanned but destructive self-DDoS :)</p><p>This is how Crossplane components we just talked about talk to each other:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/785/1*sCLlpdRhYgInP-WQd_vahQ.png" /><figcaption>Crossplane components</figcaption></figure><h3>Cool, but what can I build with Crossplane?</h3><p>Using Crossplane you are able to build an self-service Internal Developer Platform, where your Production Team can select every cloud resource they need, following your company&#39;s security compliance, and have it working in minutes, with no need to extend the DevOps/SRE/Infrastructure complexity to the team responsible for building the Product, so they can focus on: building the Product!</p><p>You can leverage on some Crossplane Providers like <a href="https://marketplace.upbound.io/providers/upbound/provider-aws/v0.37.0">provider-aws</a>, <a href="https://marketplace.upbound.io/providers/upbound/provider-azure/v0.34.0">provider-azure</a> and others you can find <a href="https://marketplace.upbound.io/">here</a> and <a href="https://github.com/crossplane-contrib">here</a>.</p><h3>Crossplane Concepts</h3><p>Before we move into a HandsOn section, it&#39;s important to briefly explain some Crossplane Concepts about Composite Resources, so everyone gets in the same page and understands what we will build next.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Ckw0vrstAXEK56mmizJNVw.png" /><figcaption>Crossplane Composite Resources</figcaption></figure><p>Composite Resources are here to let us build or Platform in a opinionated way, letting us customize our schemas and tell Crossplane what it should build.</p><p>Starting from the beginning, first of all we need a Claim manifest, where we actually claim for a specific kind and tell the API our needs. In the case of our simple postgres, we are telling Crossplane to create a postgres instance with 20 GB storage, micro instance size and a specific name.</p><p>A Claim is how the Product Team talk to the Platform Team (or Crossplane, if you prefer).</p><p>Whenever a Claim gets in the cluster, Crossplane finds it and look for a CompositeResourceDefinition (XRD) to handle this Claim. You can think of a XRD as an API Interface (cause it really is, it&#39;s even built using OpenAPIV3Schema), so your XRD defines your Claim schema.</p><p>When a XRD identifies its Claims, it starts to build the Composite Resource. The Composite Resource is configured by a manifest called Composition. A Composition may have a single or multiple resources abstractions, e.g: in a single composition you can create RDS Instance and write its connection details to AWS Secret Store.</p><blockquote>If you are used to Terraform way of working, you can bind things like this:<br>XRD — your variables.tf file<br>Composition — your modules.tf file<br>Claim — your tfvars files</blockquote><p>Also, there are the Managed Resources, which are in fact the Cloud Resources created from the Composite Resource.</p><p>With that all said, lets move on to the cool part of this post, the HandsOn!</p><h3>HandsOn: creating a RDSInstance from a Claim</h3><p>For the sake of brevity I will assume some things are already configured on your environment while following this post. <br>If not, I will let some links and some advices here:</p><ol><li>You are gonna need an AWS Account, so you can create your own following the <a href="https://docs.aws.amazon.com/accounts/latest/reference/manage-acct-creating.html">official docs</a>.</li><li>As we said earlier, Crossplane runs on top of Kubernetes API, so you are gonna need a Kubernetes Cluster. You can easily create a local Kubernetes Cluster using <a href="https://github.com/abiosoft/colima">colima</a>.</li><li>To install Crossplane and provider-aws, you can follow the <a href="https://docs.crossplane.io/v1.12/getting-started/provider-aws/">Official Crossplane Quickstart AWS Guide</a>.</li></ol><blockquote>As we are following the Official Crossplane Quickstart AWS Guide, I recommend you create your Cluster using at least 8 GB of memory.<br>You can follow this guide on <a href="https://www.sobyte.net/post/2023-06/colima/">quickly building a Kubernetes development environment with colima</a>.</blockquote><p>With everything properly set, lets have a look of how things work together.</p><p>Before we start, remember we are doing things this way just to explain some concepts and show how Crossplane works. In a production environment where we are building an IDP, we MUST leverage tools like Backstage, ArgoCD and Helm to automate everything we can, from Claim creations to deploys using GitOps.</p><blockquote>We will be configuring and talking about these tools in the next parts of this series, so stay tuned :)</blockquote><p>So, first of all, we have our initial Claim as we showed earlier on this post:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/8c439908b66f018a469513d93d41baa4/href">https://medium.com/media/8c439908b66f018a469513d93d41baa4/href</a></iframe><p>For this Claim to be accepted, we must build it based on a XRD, so we can create a XRD like this:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/fe16172e03bf1f343653bc65d043c5be/href">https://medium.com/media/fe16172e03bf1f343653bc65d043c5be/href</a></iframe><p>By convention, Crossplane tell us to create our XRDs with an x on the beginning of the name, so our XRD has a xrdsinstance kind.</p><p>Also, on the <em>claimNames</em> property, you must declare which Claims are tied to this XRD and Claim kinds are supposed to follow the convention and have the same name of the XRD, but without the x.</p><blockquote>We are not following the Claim name convention on this post because we are trying to make things in a clearest possible way for everyone to understand, but always remember to follow this convention when creating your resources.</blockquote><p>Before we create our Composition, we will create a secret to store our Instance password. Remember this is not secure and we are doing it just to ease our demonstrations. You can do it by running:</p><pre>kubectl create secret generic pg-secret -n crossplane-system --from-literal=password=postgrespass</pre><p>Now that we have our Secret, Claim and XRD properly created, we shall create a Composition like this one:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/77b5440886429a4974fcbaa016667d68/href">https://medium.com/media/77b5440886429a4974fcbaa016667d68/href</a></iframe><p>The Composition manifest is a bit more complex than the others ones, but lets try to explain the important parts.</p><blockquote>On the <em>metadata.labels</em>, there is an optional convention to label your Composition with which XRD it is bounded to.</blockquote><p>On the <em>resources</em> key, we can declare a single our multiple resources to be created when this Composition is invoked. You can check every field looking at the provider documentation. For this specific example, I got it from <a href="https://marketplace.upbound.io/providers/upbound/provider-aws/v0.37.0/resources/rds.aws.upbound.io/Instance/v1beta1">here</a>. Along with the API Documentation, you will find some examples of how to create your resource definition.</p><p>The cool part here is the <em>patches </em>section of your resource. Here we are able to retrieve data from our Claim and apply it to the resource creation. On line 42, we are using a CombineFromComposite patch type to retrieve the instanceName property from our Claim and then build an external-name using it.</p><blockquote>When we create a <em>crossplane.io/external-name </em>annotation in our Composition, we are telling Crossplane to create the Managed Resource with this specific name.</blockquote><p>One thing worth noting is that we can patch any field that is defined on the API Documentation, and we don&#39;t need to declare them on our Composition for it to work. <br>As you can see, we patched <em>spec.forProvider.allocatedStorage </em>using the <em>storageGB</em> property from our Claim and it&#39;s not declared on our Composition.</p><p>Now everything is set, let&#39;s apply our manifest.</p><p>First, lets save our manifest like this:<br>xrd/xrdsinstance.yml<br>composition/xrdsinstance.yml<br>claim/simplepostgres.yml</p><p>Before applying our Claim, we must apply our Composition and XRD first.</p><p>We can do it by running:</p><pre>kubectl apply -f composition/<br>kubectl apply -f xrd/</pre><p>You can check your Composition by running</p><pre>kubectl get composition</pre><p>and your XRD by running</p><pre>kubectl get compositeresourcedefinition</pre><p>If everything is ok, you will see the following outputs:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/420/1*SQDz3csjySufMFGDXZMbWQ.png" /><figcaption>Composition resource created</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/464/1*Low-KloD-WIaayy-16NocQ.png" /><figcaption>XRD resource created</figcaption></figure><blockquote>If somethings is different, check the events on the resources to see what happened.</blockquote><p>Now we can apply our Claim:</p><pre>kubectl apply -f claim/ -n crossplane-system</pre><blockquote>Just for the record, Claims are namespace scoped.</blockquote><p>After applying our Claim, we can see the resource being created on our Cloud Console:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*vmvyttQg-Et_ABZtll_DAg.png" /><figcaption>Resource creation</figcaption></figure><p>And we can see the resource was created based on what the user asked:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/999/1*OHFFlF18r8H4WbD3nVneKQ.png" /><figcaption>Resource information</figcaption></figure><p>But there are some things worth noting here:</p><p>The user only specified the <em>instanceSize</em> (micro), the <em>Instance Class</em> we defined on our Composition, using the patch starting on <em>line 53</em>.</p><p>The <em>Storage Type</em> right above the <em>Storage size</em> is also defined by the Platform Team.</p><p>The <em>Instance ID </em>also follows a pattern (<em>platform-%s-rds</em>) defined by the Platform Team, but merges the used-defined name (<em>product-team</em>) to it.</p><p>To see things changing, lets deploy another Claim:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/284080adeba40499690340288a6412bf/href">https://medium.com/media/284080adeba40499690340288a6412bf/href</a></iframe><p>Save the new Claim like claim/simplepostgres-medium.yml and run the following command:</p><pre>kubectl apply -f claim/simplepostgres-medium.yml</pre><p>After applying our new claim, our new resource is created and we can see its configs:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1007/1*8sDIXgWW8kXNhLSf629H1Q.png" /><figcaption>Resource created by simplepostgres-medium Claim</figcaption></figure><p>Now, using the same Composition and just changing some Claim values, we created a new Instance with another configuration. But you can notice the <em>Storage Class</em>, <em>Storage Type</em> and <em>Engine Version</em> are left intact, as we defined in our Composition.</p><p>Now, whenever you want to delete the Cloud Resources, you just have to delete your Claims like this:</p><pre>kubectl delete -f claim/</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*axe5rAKG54MVTw8lI3In_Q.png" /></figure><p>And <em>voilá</em> :)</p><h3>Conclusion</h3><p>Now that we got to know a little bit about Crossplane and see how it works, it&#39;s time to prepare for the part2 of this series.</p><p>Our goal with this series is to build an IDP together, going through everything that happens under the hood for a Platform that works at scale.</p><p>I hope this brief introduction helped you on understanding what Crossplane is and showing you the world of possibilities we can achieve using this tool. Also, feel free to contact me to talk about any problem you ran into while doing the HandsOn part, and also about Crossplane itself, other Platform tools or even to give me some tips about my writing skills :)</p><h3>Thank you!</h3><h3>References</h3><ul><li><a href="https://docs.crossplane.io/">Crossplane Docs · v1.19 · Overview</a></li><li><a href="https://www.oreilly.com/library/view/what-is-crossplane/9781098146306/">What Is Crossplane?</a></li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/700/0*042eK40pA0hJcGGX.png" /></figure><h4>👋 If you find this helpful, please click the clap 👏 button below a few times to show your support for the author 👇</h4><h4>🚀<a href="http://from.faun.to/r/8zxxd">Join FAUN Developer Community &amp; Get Similar Stories in your Inbox Each Week</a></h4><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=29fa660e0b23" width="1" height="1" alt=""><hr><p><a href="https://faun.pub/crossplane-a-brief-introduction-29fa660e0b23">Crossplane: A brief introduction</a> was originally published in <a href="https://faun.pub/">FAUN.dev() 🐾</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Fluent Bit: A brief introduction]]></title>
            <link>https://faun.pub/fluent-bit-a-brief-introduction-3a9044312fe3?source=rss-2c0a14d4779b------2</link>
            <guid isPermaLink="false">https://medium.com/p/3a9044312fe3</guid>
            <category><![CDATA[monitoring]]></category>
            <category><![CDATA[fluentbit]]></category>
            <category><![CDATA[cloud-native]]></category>
            <category><![CDATA[kubernetes]]></category>
            <category><![CDATA[cncf]]></category>
            <dc:creator><![CDATA[Eduardo Munari]]></dc:creator>
            <pubDate>Mon, 10 Apr 2023 15:44:36 GMT</pubDate>
            <atom:updated>2026-01-25T20:09:30.958Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*LGpgKAcvnTMJC1Kkqw1y4A.png" /></figure><blockquote>Also available <strong><em>@</em></strong> <a href="https://platformsessions.com.br/en/posts/fluent-bit-intro/fluent-bit-intro/">Platform Sessions</a></blockquote><p><em>This article was born from initial studies about Fluent Bit. It’s basically my understanding of the official documentation (</em><a href="https://docs.fluentbit.io/manual/"><em>https://docs.fluentbit.io/manual/</em></a><em>) with some examples of simple use cases.</em></p><h3>What is Fluent Bit?</h3><p>Fluent Bit is an open source and multi-platform Swiss knife for logs processing and distribution.<br>Nowadays data comes from various sources and Fluent Bit is here to help you aggregate and process all your data in a reliable, secure and flexible way.</p><h4>Fluentd vs Fluent Bit?</h4><p>If you ever heard about Fluentd you might be wondering the relation between Fluentd and Fluent Bit, and its not a versus!<br>Fluent Bit was born from Fluentd. Actually, it was built on top of Fluentd architecture and design.</p><p>Summarizing things up, there are four core differences between them, as shown in the table below</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/367bafb6d8c5627dfafd634bb22fdf87/href">https://medium.com/media/367bafb6d8c5627dfafd634bb22fdf87/href</a></iframe><ul><li>Fluent Bit is written in pure C, and has a support for embedded Linux, which is not present in Fluentd.</li><li>Also, memory consuming got a huge improvement on Fluent Bit, just like its dependencies are now none, which differs from Fluentd which is built as Ruby Gem.</li></ul><p>Even with those differences, Fluentd and FluentBit can complement each other, as both can work as aggregators or forwarders.</p><p>Now that we know the differences between Fluent Bit and its mentor Fluentd, let&#39;s talk about some important concepts about Fluent Bit functioning.</p><h3><strong>Key Concepts</strong></h3><p>Fluent Bit is built around some fundamental concepts that are very important to understand how it works.</p><h4>Event or Record</h4><p>Event and Records are interchangeable terms that refer to every piece of data that is retrieved by Fluent Bit.</p><p>Events are made of two components</p><p>[Timestamp, Message]</p><pre>Jan 18 12:52:16 flb systemd[2222]: Starting GNOME Terminal Server<br>Jan 18 12:52:16 flb dbus-daemon[2243]: [session uid=1000 pid=2243] Successfully activated service &#39;org.gnome.Terminal&#39;<br>Jan 18 12:52:16 flb systemd[2222]: Started GNOME Terminal Server.<br>Jan 18 12:52:16 flb gsd-media-keys[2640]: # watch_fast: &quot;/org/gnome/terminal/legacy/&quot; (establishing: 0, active: 0)</pre><p>In the above example, there are 4 independent Events.</p><h4>Filtering</h4><p>We will talk about Filtering more in-depth in the HandsOn part of this article, but now keep in mind that it is a form to modify the contents of our Events.</p><h4>Tag</h4><p>A Tag is specified manually (in most cases) on the Input Plugin configuration and is used by the Router to identify information and determine which Filter or Output the information must go through.</p><h4>Timestamp</h4><p>As we spoke about it on the Event/Record section, a timestamp represents the time when the Event is created and has the following format</p><p><strong>SECONDS</strong>.<strong>NANOSECONDS</strong></p><p>Where SECONDS is the number of seconds since <em>Unix</em> epoch and NANOSECONDS is a fraction of a second (which is one thousand-millionth of a second).</p><p>Remember that timestamps will always exist in a event, either set by the Input plugin or through a data parsing process.</p><h4>Match</h4><p>When talking about Tags, we said a Tag is used by the Router to identify information and to decide where to send it. <br>A Match is how the router knows who must receive the information.</p><p>Routers deliver the information to whoever has a Match that matches the specified configuration property Tag in the Input plugin.</p><p>Match is a configuration property present in Filters and Output Plugins configuration.</p><h4>Structured Messages</h4><p>Either structured or not, every Event that is handled by Fluent Bit gets converted into a structured message, by the <a href="https://msgpack.org/">MessagePack</a> data format.</p><p>Structured messages helps Fluent Bit to implement faster operations.</p><h3>Buffering</h3><p>Fluent Bit has some strategies and mechanisms to provide perfomance and data safety to logs processing.</p><p>As the main strategy used by Fluent Bit is to store processed data in the system memory, there is an optional strategy that can be used together with the main option, which is storing data in the file system.</p><p>That&#39;s because sometimes we are not able to deliver data fast enough, and this scenario is called <strong>backpressure</strong>.</p><blockquote>Imagine you are receiving tons of logs and your outputs are exhausted and taking too long to receive your data and you are not being able to free the heap space to accommodate the incoming new logs.</blockquote><p>For this scenario, Fluent Bit can store not-yet-ready data in the filesystem, to be dispatched as soon as possible. While this data is stored in the filesystem, already processed data ready to be delivered are always sent to memory.</p><h3>Data Pipeline</h3><p>Now that we know about Fluent Bit key concepts and the buffering mechanism, you must be wondering &#39;but how it all works internally?&#39;</p><p>Working as a log aggregator and forwarder, Fluent Bit has its own way to retrieve, organize, modify and forward all information it handles.</p><p>This process is called the Data Pipeline, which is a path all the information retrieved by Fluent Bit Input Plugins must go through.</p><p>We will be referring to each part of this pipeline as stages.</p><h4>Input stage</h4><p>As you may have figured out, Input is the first stage in the Data Pipeline, and it consists in retrieving information from sources using the Input Plugin configurations.</p><p>Some example of Input Plugins, such as Tail and Opentelemetry, can be found here</p><ul><li><a href="https://docs.fluentbit.io/manual/pipeline/inputs">https://docs.fluentbit.io/manual/pipeline/inputs</a></li></ul><p>When an Input Plugin is loaded, an internal instance is created. <br>Every instance has its own configuration properties.</p><p>As we spoke about the Data Pipeline and the Input as the main door, below is a figure to help us keep an eye on the data pipeline and the stages we are going through.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*JbfcasdIzKC-dDaYOA-EqA.png" /><figcaption>Source: <a href="https://docs.fluentbit.io/manual/concepts/data-pipeline/input">https://docs.fluentbit.io/manual/concepts/data-pipeline/input</a></figcaption></figure><h4>Parser stage</h4><p>Parsers are responsible of converting unstructured messages to structured ones, as we know that working with unstructured messages is a mess.</p><p>Using the proper parser configuration, we can transform unstructured messages to make it easier to be processed and analyzed later.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*z50aaeYQ84cZDB7xk2SmJw.png" /><figcaption>Source: <a href="https://docs.fluentbit.io/manual/concepts/data-pipeline/parser">https://docs.fluentbit.io/manual/concepts/data-pipeline/parser</a></figcaption></figure><h4>Filter stage</h4><p>As said before, filters are here to modify the events retrieved by Fluent Bit, by enriching the events context or even dropping some unwanted parts.</p><p>Filters are also Plugins, and they work very similar to the Input Plugins we talked about earlier, having its own independent configuration properties.</p><p>Filters use the Match property to match Tags previously set on the Input Plugins to know which events they must act on.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*PgnM94quDf9wvwQXxml2xQ.png" /><figcaption>Souce: <a href="https://docs.fluentbit.io/manual/concepts/data-pipeline/filter">https://docs.fluentbit.io/manual/concepts/data-pipeline/filter</a></figcaption></figure><h4>Buffer stage</h4><p>As we spoke before about Buffering, the Buffer Stage is where all the magic happens, and the data is processed with reliability.</p><p>In this stage, data is stored using the in-memory or the filesystem based mode, depending on the configuration you provided.</p><p>An important part of the Buffer Stage is that all the data here is already in an immutable state, so we can not perform any kind of modifications to it.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*DIIna5fDsCU_QPNL3fPVug.png" /><figcaption>Source: <a href="https://docs.fluentbit.io/manual/concepts/data-pipeline/buffer">https://docs.fluentbit.io/manual/concepts/data-pipeline/buffer</a></figcaption></figure><h4>Routing stage</h4><p>Here we are getting closer to the end of our Data Pipeline. <br>Routing is a core feature that allow us to route the data we retrieved through our Inputs and has been parsed, filtered and stored.</p><p>As Fluent Bit is an aggregator and a forwarder and works at scale, we are able to send our data to multiple Outputs thanks to the Routing Stage.</p><p>We can say that Routers binds all the previously processed data to their Outputs, as routers work on the previously said concept of Tags and Match.</p><p>As we are going to see in the Output stage, Routers bind the Input Plugin Tag configuration property to the Output Plugin Match configuration property.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*X97PKyC7IFGB4PIe-L7Z-A.png" /><figcaption>Source: <a href="https://docs.fluentbit.io/manual/concepts/data-pipeline/router">https://docs.fluentbit.io/manual/concepts/data-pipeline/router</a></figcaption></figure><h4>Output stage</h4><p>Here we finally reach the end of our Data Pipeline, and our data reaches its destinations!</p><p>The output plugin (as you probably have wondered) acts like the other mentioned plugins. An instance is created and it has its own configuration properties.</p><p>By configuring the Output Plugin, the Router knows where to send our data, then our log forwarding process is done.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*7mgakK_DZC_qex37yxGTAw.png" /><figcaption>Source: <a href="https://docs.fluentbit.io/manual/concepts/data-pipeline/output">https://docs.fluentbit.io/manual/concepts/data-pipeline/output</a></figcaption></figure><h3>HandsOn examples</h3><p>After some theory about the core functionalities of Fluent Bit, its time for some HandsOn experiments.</p><p>For the sake of simplicity and demonstration, I’m using Fluent Bit for MacOS, which can be easily installed using <a href="https://brew.sh/index_pt-br">Homebrew</a></p><blockquote>brew install fluent-bit</blockquote><p>To install Fluent Bit for your OS, you can check de documentation at <a href="https://docs.fluentbit.io/manual/installation/getting-started-with-fluent-bit">https://docs.fluentbit.io/manual/installation/getting-started-with-fluent-bit</a></p><p>Also, all files used in the following examples are stored in my GitHub repository</p><blockquote><a href="https://github.com/dumunari/fluent-bit-study">https://github.com/dumunari/fluent-bit-stud</a>y</blockquote><p>All plugins and configurations are in separate files, so we can include them in our configuration to leverage reutilization.</p><p>You can find more about configuration files here</p><blockquote><a href="https://docs.fluentbit.io/manual/administration/configuring-fluent-bit/classic-mode/configuration-file">https://docs.fluentbit.io/manual/administration/configuring-fluent-bit/classic-mode/configuration-file</a></blockquote><p>Now lets get our hands dirty!</p><p>There are four simple examples about Fluent Bit functionalities in the following subsections.</p><p>Lets take a look.</p><h4>#1 Info and Err logs to stdout</h4><p>For our first example, we are going to use the following config file</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/cf5d8bf57f4c59463cee90c2307fb242/href">https://medium.com/media/cf5d8bf57f4c59463cee90c2307fb242/href</a></iframe><p>This is the main configuration file.</p><p>Note that it has 2 INCLUDE sections, referencing our input and output plugins.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/a91dca3b919cba75a77ba50905daab91/href">https://medium.com/media/a91dca3b919cba75a77ba50905daab91/href</a></iframe><p>This is our Input configuration file, we are using the Dummy plugin to simulate info and error logs.</p><p>We are using Tags to group these logs, so we can handle them in the subsequent stages.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/303389afb04195bca7644574a9a4ddd4/href">https://medium.com/media/303389afb04195bca7644574a9a4ddd4/href</a></iframe><p>In the Output file we are using the stdout plugin with our wildcard at the Match property, meaning we will aggregate all inputs and forward their results to stdout</p><p>so, at the root directory of our repo, we can run</p><blockquote>fluent-bit — config=./conf/info-and-err-to-stdout.conf</blockquote><p>To get the following output</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/894/1*O9Ixtcd0vQabTsgzE5TIsw.png" /></figure><p>As simple as we wondered, all logs from our Inputs are being redirected to stdout 🙂</p><h4>#2 Info and Err to separate files</h4><p>Our configuration file for this example will be</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/c06fc3e8e8d5826085687ec0b81cb83a/href">https://medium.com/media/c06fc3e8e8d5826085687ec0b81cb83a/href</a></iframe><p>As we did on our first example, we are still including our info-and-err.conf file as Input configuration, to generate some logs for us.</p><p>But now, for Outputs, we are using a different file</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/2d62052b8258f3a4f2d4b51e6a34831b/href">https://medium.com/media/2d62052b8258f3a4f2d4b51e6a34831b/href</a></iframe><p>In this one, we are not using our stdout plugin anymore, but the Files plugin instead.</p><p>In this configuration, we are leveraging Tags and the Match configuration (remember the Routing stage?) to segregate our logs and send them to their specific files, inside our /tmp file.</p><p>Now, running</p><blockquote>fluent-bit — config=./conf/info-and-err-to-files.conf</blockquote><p>We get nothing on our stdout</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/880/1*OjJRPdZvAzA8jLjSFvuN4Q.png" /></figure><p>But if we check our log files inside ./tmp</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/729/1*em6yzCSzywH1-9MMvrtDyA.png" /></figure><p>We find our logs distributed to their specific destinations 🙂</p><h4>#3 Drop unnecessary key</h4><p>As an example of filtering, now we are going to use the following configuration file</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/a211da8e0b6d8cc634c43596fa66e19a/href">https://medium.com/media/a211da8e0b6d8cc634c43596fa66e19a/href</a></iframe><p>We are still using our Input and Output files from the last example, but now we are including a new file from our filters folder</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/a5e75e32d86e190ee712c1db9279633c/href">https://medium.com/media/a5e75e32d86e190ee712c1db9279633c/href</a></iframe><p>in this file we are going to use the modify Filter plugin to help us removing an unwanted key from the logs retrieved by our Input.</p><p>Once again, we are using our Match configuration to aggregate all inputs and put them through our specified filter.</p><p>To finish the configuration, the Remove configuration property receives the name of the key we want to remove from our logs.</p><p>With this in mind, we can run</p><blockquote>fluent-bit — config=./conf/info-and-err-drop-color.conf</blockquote><p>Once again, we got nothing on our stdout</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/891/1*A--CaaSBXHo2okypfBfBmg.png" /></figure><p>But checking our logs files at ./tmp</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/658/1*jH9UREIdHrohBsWbf9bo7w.png" /></figure><p>Now, almost like in our last example, all our logs went to their specific destinations, but this time we removed the color key from our events 🙂</p><h4>#4 Parsing a messy data</h4><p>For our last example, we are going to use the following config file</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/9f2059f82ba682df3b0b1c2b6c7dd33f/href">https://medium.com/media/9f2059f82ba682df3b0b1c2b6c7dd33f/href</a></iframe><p>This config file has a new section called SERVICE, which is used to define global properties for our Fluent Bit service</p><p>The Input configuration for this example will be</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/642402d74d1309637bfd072202c323fc/href">https://medium.com/media/642402d74d1309637bfd072202c323fc/href</a></iframe><p>We are still using our dummy plugin to generate some logs for us, but now we are generating some messy data with lots of information on the same key.</p><p>Our filter file this time will be</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/ff5ef807567a0b996e1c16f6f3fc5342/href">https://medium.com/media/ff5ef807567a0b996e1c16f6f3fc5342/href</a></iframe><p>In this config file we are using the parser plugin, which consists in using a parser to apply some needed modifications to our events.</p><p>The <em>Key_Name</em> property indicates the key that contains all the messy data we want to organize.</p><p>The <em>Parser</em> property receives the name of the parsers we want to use.</p><p>As defined in our SERVICE section, we are now using our parser file</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/c62c41d15021df04518f5d8022c6e7c2/href">https://medium.com/media/c62c41d15021df04518f5d8022c6e7c2/href</a></iframe><p>Which has the property <em>Name</em>, which must match the <em>Parser</em> property at our filter configuration.</p><p>The <em>Format</em> property expects the kind of format we want to use to apply our modification.</p><p>The <em>Regex</em> property must be used because we set or Parser format to be Regex, so we can create a regex expression to be applied at the value of the key data specified in the filter<br><em>note: The Fluent Bit documentation indicates the </em><a href="https://rubular.com/"><em>https://rubular.com/</em></a><em> to test the regular expression to be used here</em></p><p>Finally for the Output configuration, we will use</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/303389afb04195bca7644574a9a4ddd4/href">https://medium.com/media/303389afb04195bca7644574a9a4ddd4/href</a></iframe><p>Which is the same output config we used in our first example, so we are going to send all our data, after processed, to the stdout.</p><p>With all things explained, we can run</p><blockquote>fluent-bit — config=./conf/parse-messy-data.conf</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/891/1*zZFSDTf3mnRZ1Pk2LdNHeA.png" /></figure><p>Now, our initially messy data has become easier to understand and to use for future analysis 🙂</p><h3><strong>Conclusion</strong></h3><p>After this brief introduction, the real intention here is to elaborate more articles as I keep studying and start linking things up, like adding some real destination to connect with, like Loki, and adding more complex use cases like running things in a Kubernetes cluster, and writing some words about these integrations and specific tools.</p><p>But for now, I guess we got a nice introduction about Fluent Bit and how it can be used for log processing, aggregation and forwarding, along with its mechanisms and stages, providing performance and reliability for our logs.</p><p>See you in the next article!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/700/0*042eK40pA0hJcGGX.png" /></figure><h4>👋 If you find this helpful, please click the clap 👏 button below a few times to show your support for the author 👇</h4><h4>🚀<a href="http://from.faun.to/r/8zxxd">Join FAUN Developer Community &amp; Get Similar Stories in your Inbox Each Week</a></h4><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=3a9044312fe3" width="1" height="1" alt=""><hr><p><a href="https://faun.pub/fluent-bit-a-brief-introduction-3a9044312fe3">Fluent Bit: A brief introduction</a> was originally published in <a href="https://faun.pub/">FAUN.dev() 🐾</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Installing Istio, Prometheus, Kiali, Jaeger and Grafana as Istio addons and enabling Istio Rolling…]]></title>
            <link>https://faun.pub/installing-istio-prometheus-kiali-jaeger-and-grafana-as-istio-addons-and-enabling-istio-rolling-384e4dbaacd?source=rss-2c0a14d4779b------2</link>
            <guid isPermaLink="false">https://medium.com/p/384e4dbaacd</guid>
            <category><![CDATA[cncf]]></category>
            <category><![CDATA[prometheus]]></category>
            <category><![CDATA[kubernetes]]></category>
            <category><![CDATA[istio]]></category>
            <category><![CDATA[cloud-native]]></category>
            <dc:creator><![CDATA[Eduardo Munari]]></dc:creator>
            <pubDate>Wed, 09 Feb 2022 11:58:46 GMT</pubDate>
            <atom:updated>2026-01-25T20:11:11.390Z</atom:updated>
            <content:encoded><![CDATA[<h3>Installing Istio, Prometheus, Kiali, Jaeger and Grafana as Istio addons and enabling Istio Rolling Upgrades</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*8Dhz5w2XXTM1WGJySe9u2w.jpeg" /></figure><blockquote>Also available <strong><em>@</em></strong> <a href="https://platformsessions.com.br/en/posts/istio-rolling-upgrades/istio-rolling-upgrades/">Platform Sessions</a></blockquote><blockquote>Before we start this conversation, we assume you have knowledge on Kubernetes, Istio, Prometheus, Kiali, Jaeger and Grafana. <br>If you don&#39;t, you can check the official documentation by accessing the following links:<br>- <a href="https://kubernetes.io/">https://kubernetes.io</a><br>- <a href="https://istio.io/">https://istio.io</a><br>- <a href="https://prometheus.io/">https://prometheus.io</a><br>- <a href="https://kiali.io/">https://kiali.io</a><br>- <a href="https://www.jaegertracing.io/">https://www.jaegertracing.io</a><br>- <a href="https://grafana.com/">https://grafana.com</a></blockquote><p>By following this article, we are going to achieve such things:<br>- Install Istio (using revisions) to a Kubernetes Cluster<br>- Install Prometheus as an Istio addon so we can retrieve some service mesh custom metrics<br>- Install Kiali as an Istio addon so we can visualize our service mesh traffic and, if needed, manage and customize our traffic<br>- Install Jaeger as an Istio addon so we can monitor and inspect all our requests using tracing<br>- Install Grafana as an Istio addon so we can monitor everything that is going on through dashboards and charts<br>- Be able to perform Rolling Upgrades on Istio</p><h3>Starting our tasks!</h3><p>Let&#39;s break everything into tasks, so we can do things step by step.</p><p>We may break things into two main parts:</p><ol><li><strong>Installing Istio and addons</strong><br>Here, we are going to install Istio and then install the previously mentioned tools as addons, each tool is going to be installed in a task, and then we will give a brief introduction about Rolling Upgrades before moving to the next part.</li><li><strong>Installing Istio and demonstrating Rolling Updates</strong><br>Here, we are going to install Istio and demonstrate Rolling Upgrades in a HandsOn task.</li></ol><h3>Installing Istio and addons</h3><h4>First task: Installing Istio to our Cluster</h4><p>So, let&#39;s start by installing Istio to our Kubernetes Cluster.</p><p>To start this task, you may use <a href="https://kubernetes.io/pt-br/docs/tutorials/hello-minikube/">minikube</a> to create new local cluster.<br>To access the cluster in an easy way, a very nice to know tool is <a href="https://k9scli.io/">k9s</a>.</p><p>With our cluster running smoothly, checkout the guide to install istioctl <a href="https://istio.io/latest/docs/setup/getting-started/#download">here</a>.</p><p>To accomplish everything we want, we must have two Istio installations, I’m using Istio 1.11.6 and 1.12.1, and I named my binaries as istioctl11 and istioctl12.</p><p>We are keeping two Istio installations so we can demonstrate how to upgrade it from a 1.x version to 1.x+1 version and be prepared to easily rollback/purge our older installations, in cases of success, or remove the new installation in case somethings goes wrong.</p><p>To rename your binaries, go to the istiofolder, which varies depending on your Istio version, and rename the binary on the bin folder, just like this:</p><blockquote>cd istio-1.11.6/bin<br>mv istio-1.11.6 istioctl11<br><strong>ps</strong>: don&#39;t forget to add the binary to your path!</blockquote><p>Remember, you should install only istioctl, the Istio installation we will be performing as follows:</p><blockquote><em>istioctl12 manifest install --set revision=1–12</em></blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/954/1*thzQnd1a2bh9q7Rojiz3rA.png" /></figure><p>Right now you might be wondering: what&#39;s this revision attribute when installing Istio to my cluster?<br>That&#39;s the icing on the cake, wait for it!</p><p>To start injecting Istio sidecars on our Pods, now, we must label the namespace that we want to inject our sidecars, using the same revision used on install.</p><blockquote>kubectl label namespace your-namespace-name istio.io/rev=1–12</blockquote><p>Then check your namespace to assure it is properly labeled.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/413/1*YmT_3u_BS9G5MxLgNOvXwg.png" /></figure><p>If everything is ok, the next deployed Pod will have istio-proxy injected.</p><h4>Exploring istioctl folder</h4><p>When you downloaded istioctl binaries, you probably noticed some other folders in it, as below:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/821/1*PwOJzlQoxlHvT85BQFQQkQ.png" /><figcaption>istio installation folder</figcaption></figure><p>Taking a deeper look at these folders, you&#39;ll find some interesting things inside samples/addons.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/769/1*mYXIlAvGggADeHJaDoZUHg.png" /><figcaption>istio sample addons folder</figcaption></figure><p>Shipped with Istio, there are some prepared sample manifests to install some amazing tools as Istio addons.<br>In this article, we will install all these tools and (very) briefly talk about them.</p><h4>Second task: Installing Prometheus as Istio addon</h4><p>To start things up, we now must install Prometheus addon, as follows:</p><blockquote>kubectl apply -f prometheus.yaml</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/517/1*llsomkGWCRsKFqzKi41mWg.png" /></figure><p>Simple, right?<br>With Prometheus properly installed, you know have a huge horizon of custom metrics to observe.</p><h4>Third task: Installing Kiali as Istio addon</h4><p>As you might me wondering, installing Kiali is as simple and fast as installing Prometheus.<br>So lets cut the cheap talk and apply things up!</p><blockquote>kubectl apply -f kiali.yaml</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/531/1*PVqbggG97WMBZxzR2qMlXw.png" /></figure><p>After everything is up, you might be able to access Kiali by running the following command:<br><em>Ps: Run the following command on a new terminal instance cause its going to freeze your terminal</em></p><blockquote>istioctl12 dashboard kiali</blockquote><p>Then, the Kiali dashboard will be automatically opened in your browser</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*GfwMSqsJSY0iOyL5lWoWGQ.png" /></figure><p>With Kiali installed, now you have a powerful tool to understand and observe your service mesh traffic and even add some custom traffic configurations based on istio manifests.</p><h4>Fourth task: Installing Jaeger as Istio addon</h4><p>Now I know you are not wondering anymore, and you are pretty sure we will just apply another yaml, right? Right!</p><blockquote>kubectl apply -f jaeger.yaml</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/272/1*KUdVSpXpnDQbgE6jLW7KuQ.png" /></figure><p>Now, to start Jaeger UI, run:</p><blockquote>istioctl12 dashboard jaeger</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*a2DBl4H93WwIJLFXvICstA.png" /></figure><p>With Jaeger, you are now able to trace every request from your cluster.<br>A friendly reminder is, to Jaeger work as we wish, we must properly propagate headers inside our cluster and applications.</p><h4>Fifth task: Installing Grafana as Istio addon</h4><p>Right, I believe you already installed Grafana using the command:</p><blockquote>kubectl apply -f granafa.yaml</blockquote><p>And I&#39;m pretty sure you already started Grafana dashboard by running:</p><blockquote>istioctl12 dashboard grafana</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*HJp2T5lTjms85nyGuCLkHQ.png" /></figure><h4>Some friendly reminder</h4><p>In this article, we will not go deep about the addons we just installed, we installed them just to demonstrate how easy it is to have access to these tools in a sample way and to show that Istio gives those samples for us.</p><blockquote>I believe it leaves a nice path to write some new articles about them in the future :)</blockquote><p>Although everything seems pretty nice and easy, the examples above <strong>are not production recommended</strong>, these are just for demonstration purposes and to get you quickly into these tools.</p><p>To install these tools on a production environment (<strong>Istio included!!!</strong>), take a look at the documentations and follow the best practices, like creating new namespaces and configuring log leves, profiles, users, permissions and etc.</p><h4>Sixth task: Explaining our Istio installation and talking about Istio Rolling Upgrades</h4><p>As we mentioned earlier, we installed Istio using an attribute called revision.<br>But what is the point on doing that?</p><p>Usually, people tend to install Istio with no revision attribute, which may cause some problems.</p><p>In addition with installing Istio without setting a revision, usually Istio is activated on our namespaces by labelling it using the following command:</p><blockquote>kubectl label namespace namespace-name istio-injection=enabled</blockquote><p>When you do that, Istio will start injecting proxies as sidecars on every Pod you deploy on that namespace, which seems pretty ok, until you need to upgrade Istio to a newer version.</p><p>When you label your namespace this way, if you happen to install a new version of Istio in your cluster, every time a Pod restarts on this namespace it will automatically inject the newer version of Istio sidecar to it, which may be a problem if you are not confident about this new version.</p><p>In our case, we labeled our namespace using revision, like this:</p><blockquote>kubectl label namespace your-namespace-name istio.io/rev=1–12</blockquote><p>By doing this, even if new versions of Istio are deployed to our cluster, this namespace will keep attached to the version you installed using the revision attribute as 1–12</p><h3>Installing Istio and demonstrating Rolling Upgrades</h3><h4>Seventh task: Hands on!!!</h4><p>Let&#39;s make a Hands On demonstration about what we explained before.</p><p>Let&#39;s create a new local cluster, you may use <a href="https://kubernetes.io/pt-br/docs/tutorials/hello-minikube/">minikube</a>.</p><p>First of all, lets create two namespaces in our cluster:</p><blockquote>kubectl create namespace oldistio<br>kubectl create namespace newistio</blockquote><p>As mentioned before, we have two istioctl installations, so let&#39;s install Istio 1.11 using the istioctl11 and the revision attribute:</p><blockquote>istioctl11 manifest install — set revision=1–11</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/954/1*JxKLvKfKEMlzNOGOfFK4-g.png" /><figcaption>installing istio 1.11.6 using istioctl11</figcaption></figure><p>After Istio 1.11 is completely installed, lets deploy some sample application and check if everything is ok.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/957/1*63WGN4H9UFsj8uYc6g8Xiw.png" /><figcaption>sample application deployed and running</figcaption></figure><p>With our sample application running on the oldistio namespace, let&#39;s label it and then restart the Pod to see if everything is ok.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/949/1*WpLVmA5TVwz3j2X-8AF-Uw.png" /><figcaption>oldistio namespace labeled with istio.io/rev: 1–11</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/938/1*7tZBwVSJq6hw4WO4sNXDKg.png" /><figcaption>after label and pod restart, proxy is properly injected</figcaption></figure><p>Everything seems pretty ok, but lets make things clearer by running:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*W6CJjGQPL0L5wMyVE_ijxg.png" /><figcaption>istioctl11 proxy-status output</figcaption></figure><p>Here we can check which pods are using our Istio 1.11.6 installation.</p><p>Now, lets install Istio 1.12.1 to our cluster</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/829/1*P_v0QTR_AtdbVWTtGZDCJA.png" /><figcaption>installing istio 1.12.1 using istioctl12 on a cluster with istio 1.11.6 installed</figcaption></figure><p>Istio 1.12 is fully installed and we can pay attention to the first warning, telling us that Istio is being upgraded (<strong>remember this part</strong>).<br>First thing that comes to mind is &quot;oh my god, we destroyed our previous installation and the pods with old version will stop working.&quot;, but let&#39;s check it out.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*S7KmnB2rnnFbdy3bF5UlJQ.png" /><figcaption>pods on istio-system namespace</figcaption></figure><p>By checking istio-system namespace, we can see that there are two versions of Istio coexisting.</p><p>To do a double check, lets restart our pod on oldistio namespace to check if its still receiving istio-proxy for version 1.11.6</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*U8O8O9vpnQHI82l8A2OZeA.png" /><figcaption>restarting our pod on oldistio namespace</figcaption></figure><p>Everything seems pretty ok around here!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*bdHqVnZCKOIDPtfyvXGyZA.png" /><figcaption>oldistio namespace pod after restart</figcaption></figure><p>Now, lets label our newistio namespace, setting the revision to 1–12</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*UfXyQ9ZWfTKFKdeopS61wg.png" /><figcaption>oldistio namespace labeled with istio.io/rev: 1–12</figcaption></figure><p>After doing that, lets deploy our sample application to the newly labeled namespace and check which version of istio-proxy it will get</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Us0qQBONe5mUvXyJUJ525w.png" /><figcaption>application deployed to newistio namespace</figcaption></figure><p>Nice! The newistio namespace is running istio-proxy 1.12 while oldistio namespace is running istio-proxy 1.11</p><p>We can check this by running our proxy-status command</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*S5kLcke4Dg7ZR7qJjE_sCw.png" /><figcaption>isitoctl12 proxy-status output</figcaption></figure><p>Here, we can see the side proxies are kept, but the Istio <em>ingressgateeway (</em><strong><em>remember???</em></strong><em>) </em>is upgraded right away, as soon as we install the new version.</p><p>Another way to check those Istio versions, is to use a tool we just learned about, Grafana!</p><p>If you go into Grafana dashboards, there are two dashboard that we can find information about Istio versions.</p><p>In the Istio Control Plane Dashboard, we are able to see that there are 2 pilot versions in our cluster.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*VA84n4siQzTentgyddW9Bw.png" /><figcaption>deployed istio pilot versions</figcaption></figure><p>In the Istio Mesh Dashboard, we can see information about Istio Componentes (proxies and pilots) on the bottom of the dashboard panel.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*9w1mdig-u6t85n3nw1PIOw.png" /><figcaption>istio components by version</figcaption></figure><p>Assuming everything looks fine, we may know patch our oldistio namespace label, and point it to the new version of Istio.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/949/1*CbvCm4AHc4ZCatWLMC9BIw.png" /><figcaption>updating our oldistio namespace revision label to 1–12</figcaption></figure><p>With our label update done, lets check actual version of our sidecar proxy.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/950/1*H-m1dq-t6Qc0lL1DxaWaMQ.png" /><figcaption>checking pods before restart</figcaption></figure><p>Then, after a restart..</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/945/1*f0eT3wFh3R1YI1RhKZDngg.png" /><figcaption>restarting pods</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/947/1*iQPYiIBN7lKefxScK3aD5A.png" /><figcaption>after restart, pods are now using 1.12.1 istio proxy</figcaption></figure><p>We got new istio-proxy version for our Pods.</p><p>After the rollout is done, lets check our proxy status.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*9oNs9AiGhAjqXmG3SzrIag.png" /><figcaption>istioctl12 proxy-status output</figcaption></figure><p>As we have everything on the new version, lets uninstall our old version by running:</p><blockquote><em>istioctl11 x uninstall --revision=1–11</em></blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/969/1*sgv-j-RBkM_XWNHZPfHVPQ.png" /><figcaption>istioctl11 x uninstall — revision=1–11 output</figcaption></figure><p>Lets confirm by checking our dashes on Grafana.<br>Lets start checking our Istio Components by Version on Istio Mesh Dashboard</p><p>Pilots information</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*rqlmpI_PrPdzyy9lh3q-6g.png" /><figcaption>pilot: 1.11.6</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*r37Yc790f7d9zT5Ysl1NJg.png" /><figcaption>pilot: 1.12.1</figcaption></figure><p>Proxies information</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*XCoAF-49taEYSpVIFTU-PQ.png" /><figcaption>proxy: 1.11.6</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*UAoCtHmIcSFKS3CPSASFhA.png" /><figcaption>proxy: 1.12.1</figcaption></figure><p>Now, let&#39;s check our Pilot Versions on Istio Control Plane Dashboard.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ccsRaFx1RbbFkcpjXHjeJg.png" /><figcaption>deployed istio pilot versions</figcaption></figure><p>By checking our Dashes, we can see clearly that our version 1.11.6 components are no more alive as our 1.12.1 components have taken their place, and our upgrade was nice and smooth.</p><h3>Final conclusions</h3><p><strong>What’s so good about this?</strong></p><p>The cool thing here is, whenever you want to do a Istio upgrade on your cluster, you can create a new namespace to do things smoothly, kind of thinking in a Canary way, which is awesome.</p><p>Also, by having Grafana to aid you on this task, you can monitor everything that is going on during your upgrade.</p><p><strong>What’s the big difference against the <em>istio-injection=enabled</em> label method?</strong></p><p>If we had labeled our namespaces using <em>istio-injection</em>, in the exact moment we applied the new Istio version, every Pod on namespaces with such label would start to inject the new version sidecar after restart, and then we would lose control on our rolling updates.</p><p><strong>What are the downsides?</strong></p><p>The downside here is a general downside on Istio upgrades.<br>Whether using <em>istio.io/rev</em> label or <em>istio-injection</em>, we would get a slight downtime in our <em>istio-ingressgateway </em>during our upgrade (remember when we talked about it earlier? That&#39;s it), which may cause some serious problem if not made with proper attention and care.</p><p><strong>Saying again</strong></p><p>To run such tools on your production environment, don&#39;t forget to read the proper documentation and set everything as we discussed before.</p><p>For example, when installing Istio in your production cluster you can (and you should!!) use the revision attributes to enable smooth rolling upgrades, but you also have to be extremely careful when configuring <a href="https://istio.io/latest/docs/setup/additional-setup/config-profiles/">Istio profiles</a>, log levels and more.</p><h3>Thank you!</h3><p>Thanks for reading this article (which is my first article, btw) and I hope it helps you on your journey!</p><h4>References</h4><blockquote><a href="https://blog.chesterwood.io/2019/11/istio-now-released.html">- https://blog.chesterwood.io/2019/11/istio-now-released.html</a><em><br>- </em><a href="https://istio.io/latest/docs/setup/upgrade/canary/">https://istio.io/latest/docs/setup/upgrade/canary/</a></blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/700/0*042eK40pA0hJcGGX.png" /></figure><h4>👋 If you find this helpful, please click the clap 👏 button below a few times to show your support for the author 👇</h4><h4>🚀<a href="http://from.faun.to/r/8zxxd">Join FAUN Developer Community &amp; Get Similar Stories in your Inbox Each Week</a></h4><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=384e4dbaacd" width="1" height="1" alt=""><hr><p><a href="https://faun.pub/installing-istio-prometheus-kiali-jaeger-and-grafana-as-istio-addons-and-enabling-istio-rolling-384e4dbaacd">Installing Istio, Prometheus, Kiali, Jaeger and Grafana as Istio addons and enabling Istio Rolling…</a> was originally published in <a href="https://faun.pub/">FAUN.dev() 🐾</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>