<?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 Ilja Kirjanov on Medium]]></title>
        <description><![CDATA[Stories by Ilja Kirjanov on Medium]]></description>
        <link>https://medium.com/@kirjanovilja?source=rss-604c2508b8f5------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*ukPjM9hCkLWd6AFU</url>
            <title>Stories by Ilja Kirjanov on Medium</title>
            <link>https://medium.com/@kirjanovilja?source=rss-604c2508b8f5------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Fri, 04 Dec 2026 22:18:16 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@kirjanovilja/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[Introduction to Istio: Under the Hood of the Service Mesh. Envoy]]></title>
            <link>https://medium.com/@kirjanovilja/introduction-to-istio-under-the-hood-of-the-service-mesh-envoy-f7443815771d?source=rss-604c2508b8f5------2</link>
            <guid isPermaLink="false">https://medium.com/p/f7443815771d</guid>
            <category><![CDATA[envoy-proxy]]></category>
            <category><![CDATA[istio]]></category>
            <category><![CDATA[kubernetes]]></category>
            <category><![CDATA[kubernetes-security]]></category>
            <category><![CDATA[service-mesh]]></category>
            <dc:creator><![CDATA[Ilja Kirjanov]]></dc:creator>
            <pubDate>Thu, 17 Jul 2025 17:55:48 GMT</pubDate>
            <atom:updated>2025-07-17T17:55:48.738Z</atom:updated>
            <content:encoded><![CDATA[<h3>Introduction</h3><p><strong>Istio </strong>is a complete open-source implementation of<strong> Service Mesh.</strong></p><blockquote>But What Is Service Mesh? — an obvious but crucial question to ask.</blockquote><p><strong>Service Mesh </strong>is a technology that gives you complete, granular control over all TCP network traffic in your project. Service Mesh lets you implement advanced networking patterns without touching a single line of your application code. This includes:</p><ul><li><strong>Flexible Authorization:</strong> Control who can talk to whom.</li><li><strong>Advanced Routing &amp; Load Balancing:</strong> Intelligently direct traffic between your services.</li><li><strong>Fine-Grained Network Tuning:</strong> Tweak TCP parameters like timeouts and retries.</li><li><strong>Geo-distributed Cluster Management:</strong> Handle complex, multi-region setups.</li><li><strong>A/B Testing, Canary Deployments, Traffic Shifting</strong> and many more … look beneath…</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/481/1*-hkDIe33k3CTVoRzgo6Tww.png" /><figcaption>Service Mesh Abilities</figcaption></figure><p>And the best part? You configure all of this with the same declarative <strong>Kubernetes APIs</strong> you already use, and you get incredible <strong>observability</strong> into your system as a free bonus.</p><h3>But First, The Obvious Hurdles</h3><p>Let’s be honest. As soon as you seriously consider Istio, a few challenging questions immediately come to mind:</p><blockquote><strong>“Do I <em>really</em> need this in 2025?”</strong> My current setup seems to be working just fine without it.</blockquote><blockquote><strong>“Will this break my app?”</strong> How will this impact reliability, latency, and performance as my project grows?</blockquote><blockquote><strong>“Why is this so complicated?”</strong> The documentation feels like a maze, with a dozen different interfaces to learn.</blockquote><p>These are the very real concerns that stand in the way of using Istio effectively.</p><p>For the purpose of this guide, we’re going to skip the first question. We’ll assume you’ve already taken the plunge and decided that Istio is the right tool for you. My goal is to give you the knowledge to confidently answer the other two — to show you what to expect, how to prepare for the challenges, and most importantly, how to use Istio the <em>right</em> way.</p><h3>The Core Architecture: Control Plane &amp; Data Plane</h3><p>Let’s take a look into typical project frontend-backend-database. Each of the components is running in its own pod and the communicate directly with each other using exposed K8s Services.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/267/1*mxZx8Ni5_4Kp1gjZndjW_A.png" /><figcaption>Standart Pods relationship model</figcaption></figure><p>So, you’ve decided to use Istio. What actually happens to your cluster when you install it? Let’s break that down.</p><p>First, a new set of services appears: the <strong>Control Plane</strong>. Think of this as the brain of the operation. It’s the central command center that watches over your cluster, reads your configuration files, and figures out what rules to enforce.</p><p>Next, Istio makes a change to every application pod you choose to include in the mesh. It injects a <strong>sidecar</strong> container — a high-performance Envoy proxy — that runs right alongside your application. This entire fleet of sidecars, distributed across your cluster, forms the <strong>Data Plane</strong>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1013/1*mv2U0JpVL_g0E3X80w4O0w.png" /><figcaption>Network Patterns management with Istio ControlPlane and DataPlane</figcaption></figure><p>The two planes work in perfect harmony:</p><ul><li>The <strong>Data Plane (sidecars) — </strong>is the muscle, positioned to intercept and manage every request going into or out of your services.</li><li>The <strong>Control Plane</strong> (<strong>istiod</strong>) — is the brain, sending a constant stream of instructions to the Data Plane, telling it how to handle that traffic.</li></ul><p>It’s up to us, the operators, to provide the high-level goals to the Control Plane through the Kubernetes API. The Control Plane handles the complex work of translating our intent into concrete rules for every sidecar.</p><h3>What happens inside of a Pod</h3><p>Let’s zoom in inside on the application pods. Inside the pod obviously we see our application container, and newly created istio-proxy Sidecar container. As we can see Sidecar container extends Envoy proxy.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/381/1*2ELePowVY35gESvdnzHYdw.png" /><figcaption>Envoy proxy in istio-proxy container</figcaption></figure><h3>Inside the Sidecar: The Envoy Primitives</h3><p>You can’t master Istio without understanding the basics of Envoy. Envoy is a universal, high-performance proxy. At a basic level, it accepts any TCP or HTTP traffic, processes it according to a set of rules, and forwards it to its destination.</p><p>But here’s the key feature that makes Envoy so powerful: it provides a rich, dynamic API to control its entire decision-making process. This <strong>Envoy API</strong> is a flexible and well-documented structure that allows a control plane like Istio to tell each proxy <em>exactly</em> how to behave in real-time.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*IaYw_cAKm7AylPDCUnlghA.png" /><figcaption>Envoy API placement in Envoy proxy</figcaption></figure><p>It all starts with a primitive called a <strong>Listener</strong>. At first glance, it seems like a simple instruction that makes Envoy listen on a port, or maybe even several. But in reality, everything in Envoy is much more complex.</p><p>A Listener is an entire <strong>pipeline for processing an incoming request</strong>. It contains so-called “filters” for handling incoming traffic. Within this pipeline, we:</p><ul><li>Validate TLS certificates.</li><li>Calculate metrics for export to Prometheus.</li><li>Resolve authorization questions (is this request allowed to proceed or not?).</li></ul><p>This pipeline can consist of any number of these filters, and they can be arranged in any order. However, as a rule, the entire filter chain ends with a routing rule. That is, the whole process leads to a decision about the ultimate fate of the request: where will it go next?</p><p>This decision is based on another fundamental concept in Envoy, which is called a <strong>Cluster</strong>. I have to admit, I can’t stand this term — it causes a lot of confusion with Kubernetes Clusters, but it is what it is.</p><p>A “Cluster” in Envoy contains comprehensive information about the destination service where the request is headed. Inside, we have:</p><ul><li>A list of IP addresses for that service’s <strong>endpoints</strong>.</li><li>The <strong>load balancing policy</strong> between these IPs (the algorithm, etc.).</li><li>Rules for establishing <strong>TCP connections</strong>.</li><li>Rules for <strong>passive health checks</strong>.</li><li>The <strong>certificates</strong> needed to establish an encrypted outgoing connection.</li><li>And finally, the Cluster also contains rules for <strong>calculating metrics</strong>.</li></ul><p>And that, approximately, is the path a request takes through Envoy.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*UTF-_01VJbHcUOcg0AqOMw.png" /><figcaption>Detailed Listener and Cluster actions</figcaption></figure><p>This is where Istio comes in. Istio gives us human-friendly Kubernetes resources that directly control these Envoy primitives:</p><ul><li>To control the routing logic inside a <strong>Listener</strong>, you use a <strong>VirtualService</strong>.</li><li>To configure a destination <strong>Cluster</strong>, you use a <strong>DestinationRule</strong>.</li><li>To add security filters to the <strong>Listener’s</strong> pipeline, you use resources like <strong>AuthorizationPolicy</strong> and <strong>PeerAuthentication</strong>.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/822/1*2_KPeCBw1P1EI5jffASgCA.png" /><figcaption>Human-friendly K8s Istio resources that handle all complex rules/routes</figcaption></figure><h3>A Sneak Peek at the Code</h3><p>Here’s a small taste of what these resources look like. Think of it as a trailer for Part 2.</p><p><strong>DestinationRule:</strong> First, we define named subsets for our reviews service, which represent different versions of our application pods.</p><pre>apiVersion: networking.istio.io/v1beta1<br>kind: DestinationRule<br>metadata:<br>  name: reviews<br>spec:<br>  host: reviews<br>  subsets:<br>  - name: v1<br>    labels:<br>      version: v1<br>  - name: v2-canary<br>    labels:<br>      version: v2</pre><p><strong>VirtualService:</strong> Now, we can use those subsets to split traffic. Here, we send 90% of requests to v1 and 10% to our new v2-canary version.</p><pre>apiVersion: networking.istio.io/v1beta1<br>kind: VirtualService<br>metadata:<br>  name: reviews<br>spec:<br>  hosts:<br>  - reviews<br>  http:<br>  - route:<br>    - destination:<br>        host: reviews<br>        subset: v1<br>      weight: 90<br>    - destination:<br>        host: reviews<br>        subset: v2-canary<br>      weight: 10</pre><p><strong>AuthorizationPolicy:</strong> Finally, let&#39;s secure our service. This policy only allows requests from the productpage service to access the reviews service. All other requests will be denied.</p><pre>apiVersion: security.istio.io/v1beta1<br>kind: AuthorizationPolicy<br>metadata:<br>  name: reviews-viewer<br>  namespace: default<br>spec:<br>  selector:<br>    matchLabels:<br>      app: reviews<br>  action: ALLOW<br>  rules:<br>  - from:<br>    - source:<br>        principals: [&quot;cluster.local/ns/default/sa/bookinfo-productpage&quot;]</pre><h3>Conclusion: The Power of Abstraction</h3><p>Istio’s greatest strength is abstracting away the complexity of configuring hundreds of individual Envoy proxies. You provide the high-level intent through Istio’s simple resources, and the Control Plane does the hard work of translating it into precise Envoy API configurations for the entire data plane. Knowing what’s happening at that lower level is your secret weapon for debugging and unlocking advanced use cases.</p><h3>Next Up: Putting Theory into Practice</h3><p>We’ve built the foundation and looked at the blueprints. Now, it’s time to start building.</p><p>In the next part of this series, we will move from theory to practice. We’ll roll up our sleeves and get our hands dirty with code. Together, we will walk through:</p><ol><li><strong>Installing Istio</strong> on a live Kubernetes cluster.</li><li><strong>Deploying a sample multi-service application</strong> into our new service mesh.</li><li><strong>Applying </strong><strong>VirtualService and </strong><strong>DestinationRule resources</strong> to take control of our application&#39;s traffic, implementing a canary release right from the command line.</li></ol><p>Now that you understand <em>how</em> Istio works, seeing it in action will make everything click. Stay tuned!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f7443815771d" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[ArgoCD: Automated Deployments with ApplicationSets. Part 2]]></title>
            <link>https://medium.com/@kirjanovilja/argocd-automated-deployments-with-applicationsets-comprehensive-gitops-part-2-c79b8100d9c7?source=rss-604c2508b8f5------2</link>
            <guid isPermaLink="false">https://medium.com/p/c79b8100d9c7</guid>
            <category><![CDATA[kubernetes]]></category>
            <category><![CDATA[ci-cd-pipeline]]></category>
            <category><![CDATA[automation]]></category>
            <category><![CDATA[argo-cd]]></category>
            <category><![CDATA[jfrog-artifactory]]></category>
            <dc:creator><![CDATA[Ilja Kirjanov]]></dc:creator>
            <pubDate>Wed, 16 Jul 2025 15:19:58 GMT</pubDate>
            <atom:updated>2025-07-17T17:58:23.140Z</atom:updated>
            <content:encoded><![CDATA[<p>In <a href="https://medium.com/@kirjanovilja/argocd-helm-charts-ci-cd-with-jfrog-artifactory-and-azure-devops-coprehensive-gitops-part-1-ee33cb545096"><strong>Part 1</strong></a>, we laid the foundation for our GitOps workflow. We built a robust CI pipeline in Azure DevOps that lints, packages, and publishes our Helm charts to a versioned repository in JFrog Artifactory. Our Helm templates are now standardized and stored securely, but the final piece of the puzzle is missing: automated deployment to our Kubernetes cluster.</p><p>This article will close that loop. We’ll dive deep into the deployments-management repository, showing how ArgoCD uses the powerful ApplicationSet controller to automatically discover and deploy our services. I saw a great question from a reader, Dfernandez, on the last post asking to see the ApplicationSet definitions and how they pull the charts—we will address that in detail.</p><p>Let’s connect the dots and bring our applications to life.</p><figure><img alt="Sync workflow of ApplicationSets/Applications or values files." src="https://cdn-images-1.medium.com/max/734/1*0QlvskZdKHyRjkFymOIGGQ.jpeg" /></figure><h3>The ApplicationSet Controller: GitOps at Scale</h3><p>In ArgoCD, an Application resource defines a single application deployed to a single destination. This is fine for a few services, but what if you have dozens of microservices, each needing to be deployed to dev, staging, and prod environments? Creating and managing hundreds of Application manifests by hand is not scalable and is prone to error.</p><p>This is the problem the ApplicationSet controller solves. It acts as a factory for Application resources. You provide it with a <em>generator</em> that discovers deployment targets (like environments in a Git repo) and a <em>template</em> to create an Application for each target it finds.</p><p>Let’s look at the appset_streamlit-app-service.yaml file from our deployments-management repository. This single file is responsible for deploying our streamlit service to every defined environment.</p><pre># deployments-management/apps/appset_streamlit-app-service.yaml<br>apiVersion: argoproj.io/v1alpha1<br>kind: ApplicationSet<br>metadata:<br>  name: streamlit-app-service<br>  namespace: argocd # ApplicationSets must be in the same namespace as ArgoCD<br>spec:<br>  # The generator finds directories in our Git repo to create apps from<br>  generators:<br>  - git:<br>      repoURL: https://dev.azure.com/my-org/my-project/_git/deployments-management<br>      revision: HEAD<br>      # The generator looks for all Chart.yaml files under this path<br>      files:<br>      - path: &quot;charts/service-streamlit-app-service/*/Chart.yaml&quot;<br><br>  # The template is used to create an ArgoCD Application for each match from the generator<br>  template:<br>    metadata:<br>      # {{path.basename}} is a variable from the generator. It will be &#39;dev&#39;, &#39;staging&#39;, or &#39;prod&#39;<br>      name: &#39;streamlit-app-{{path.basename}}&#39;<br>    spec:<br>      project: &quot;default&quot; <br>      source:<br>        repoURL: https://dev.azure.com/my-org/my-project/_git/deployments-management<br>        targetRevision: HEAD<br>        # The source path is the directory found by the generator<br>        path: &#39;{{path}}&#39; # e.g., charts/service-streamlit-app-service/dev<br><br>        # Here we tell ArgoCD that this is a Helm chart<br>        helm:<br>          # We specify the values file to use for this environment<br>          valueFiles:<br>          - values.yaml<br>      destination:<br>        server: &quot;https://kubernetes.default.svc&quot;<br>        # We create a unique namespace for each environment<br>        namespace: &#39;streamlit-app-{{path.basename}}&#39;<br>      syncPolicy:<br>        automated:<br>          prune: true<br>          selfHeal: true<br>        syncOptions:<br>        - CreateNamespace=true</pre><p>Let’s break down the magic here:</p><ul><li><strong>spec.generators.git</strong>: This tells the ApplicationSet to scan our deployments-management repository. The files.path wildcard (*) is the key; it finds the dev, staging, and prod directories automatically by looking for a Chart.yaml inside them.</li><li><strong>spec.template</strong>: This is the blueprint for the Application resources. For each directory the generator finds, it stamps out an Application using this template.</li><li><strong>{{path.basename}}</strong>: This is a variable populated by the generator. If it finds charts/service-streamlit-app-service/dev/Chart.yaml, {{path.basename}} will be dev. This allows us to dynamically name our applications (streamlit-app-dev) and deploy them to corresponding namespaces (streamlit-app-dev).</li></ul><h3>The Environment “Umbrella” Chart</h3><p>So, what exactly is in the directories found by the generator? Are they copies of our Helm chart? No, that would violate our “single source of truth” principle.</p><p>Instead, they contain very lightweight “Umbrella” charts. Their sole purpose is to point to the real chart in Artifactory and provide environment-specific configurations.</p><p>Here is the Chart.yaml for our dev environment:</p><pre># deployments-management/charts/service-streamlit-app-service/dev/Chart.yaml<br><br>apiVersion: v2<br>name: streamlit-app-dev-wrapper<br>description: Wrapper chart to deploy streamlit-app-service to the dev environment.<br>version: 1.0.0 # This is the version of the wrapper chart itself<br><br>dependencies:<br>  - name: streamlit-app-service         # This MUST match the chart name in Artifactory<br>    version: 0.0.3                       # This is the version of the chart we want to deploy<br>    repository: &quot;@artifactory-helm-repo&quot; # This is the alias we configured in ArgoCD in Part 1</pre><p>And the corresponding values.yaml for dev:</p><pre># deployments-management/charts/service-streamlit-app-service/dev/values.yaml<br><br># These values will override the defaults in the source chart<br>replicaCount: 1<br><br>ingress:<br>  enabled: true<br>  host: dev.streamlit.my-company.com<br><br>resources:<br>  requests:<br>    cpu: 100m<br>    memory: 128Mi</pre><p>This is the crucial link. When ArgoCD syncs the streamlit-app-dev application, it reads this Chart.yaml, sees the dependency, and uses the @artifactory-helm-repo alias to fetch version 0.0.3 of the streamlit-app-service chart from JFrog Artifactory. It then applies the values.yaml overrides and deploys the result to the cluster.</p><h3>The Full End-to-End Workflow</h3><p>Now we can trace a change from start to finish:</p><ol><li>A developer wants to update the dev environment to use the newly published 0.0.4 version of the streamlit-app-service chart.</li><li>They create a pull request in the deployments-management repository.</li><li>The only change is in a single file: charts/service-streamlit-app-service/dev/Chart.yaml, where they bump the version field.</li><li>Once the PR is approved and merged, ArgoCD’s ApplicationSet controller detects the change in the Git repository within seconds.</li><li>It re-evaluates the streamlit-app-dev application, sees that the desired Helm chart version has changed, and marks the application as OutOfSync.</li><li>Because our syncPolicy is set to automated, ArgoCD immediately initiates a sync. It fetches version 0.0.4 from Artifactory, renders the templates with the dev values, and applies the updated manifests to the cluster.</li></ol><p>The deployment is complete, fully automated and traced in Git.</p><h3>Next Steps: Automating the Promotion</h3><p>Currently, promoting a new chart version requires a manual commit to the deployments-management repo. This is already a great GitOps practice, but we can go one step further. In a future article, we will explore how to create a &quot;CI for CD&quot; pipeline in Azure DevOps. This pipeline could be triggered upon a successful publish to Artifactory and would automatically create the pull request in deployments-management to promote the new chart version to the dev environment, creating a truly hands-off deployment flow.</p><h3>Conclusion</h3><p>In this part, we closed the GitOps loop. We’ve seen how ArgoCD’s ApplicationSet controller can use a Git repository as a source of truth for <em>what</em> to deploy, while JFrog Artifactory serves as the source of truth for the deployable <em>artifacts</em>. By combining these tools, we have built a scalable, automated, and auditable CI/CD system for our Helm charts.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c79b8100d9c7" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[ArgoCD: Helm Charts CI/CD with JFrog Artifactory and  Azure DevOps. Coprehensive GitOps. Part 1]]></title>
            <link>https://medium.com/@kirjanovilja/argocd-helm-charts-ci-cd-with-jfrog-artifactory-and-azure-devops-coprehensive-gitops-part-1-ee33cb545096?source=rss-604c2508b8f5------2</link>
            <guid isPermaLink="false">https://medium.com/p/ee33cb545096</guid>
            <category><![CDATA[devops]]></category>
            <category><![CDATA[argo-cd]]></category>
            <category><![CDATA[artifactory]]></category>
            <category><![CDATA[kubernetes]]></category>
            <category><![CDATA[helm]]></category>
            <dc:creator><![CDATA[Ilja Kirjanov]]></dc:creator>
            <pubDate>Mon, 17 Mar 2025 17:13:42 GMT</pubDate>
            <atom:updated>2025-03-17T17:13:42.293Z</atom:updated>
            <content:encoded><![CDATA[<h3>ArgoCD: Helm Charts CI/CD with JFrog Artifactory and Azure DevOps. Coprehensive GitOps. Part 1</h3><p>Recently, I got an opportunity to work on a CI/CD solution for Helm charts — built with Azure DevOps, stored in JFrog Artifactory, and deployed to Kubernetes using ArgoCD. This article walks through the setup and automation process while explaining the key technologies involved.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*zwNM0r0Fwn-7cYzwtaJNYw.png" /><figcaption>Helm chart lifecycle starting from template ending in the cluster</figcaption></figure><h3>A little background on technologies used</h3><p><strong>GitOps </strong>is a modern approach to continuous delivery that uses Git as a single source of truth for declarative infrastructure and applications. With GitOps, all changes to infrastructure and applications are made through <em>pull requests</em>, ensuring traceability and automation. This is the core paradigm of our solution.</p><p><strong>ArgoCD </strong>is a GitOps-based continuous deployment tool for Kubernetes. It watches a Git repository for changes and syncs them automatically to the cluster, ensuring that the deployed state matches the desired state. Argo is a great tool for ensuring straight-forward and easy deployments, and what’s is crucial — quick disaster-recovery.</p><p><strong>Helm </strong>is the package manager for Kubernetes, helping to define, install, template and upgrade applications using pre-configured templates called Helm <em>charts</em>. Ensures updates are easy, and repositories are lightweight.</p><p><strong>Azure DevOps</strong> provides a suite of services for CI/CD, including pipelines, repositories. It automates the building, testing, and deployment of applications.</p><p><strong>JFrog Artifactory </strong>is a universal artifact repository manager that provides storage for container images, Helm charts, and other dependencies. Allows managing both private and public repositories efficiently.</p><h3>Prerequisites</h3><p>Before diving into the implementation, ensure you have the following:</p><ul><li>Live K8s cluster</li><li>ArgoCD installed and configured</li><li>Azure DevOps project or any other version control tool</li><li>JFrog Artifactory for Helm chart storage</li><li>A Git repository for Helm charts (e.g., helm-templates repository)</li><li>A Git repository for ArgoCD Application Sets (e.g., deployment-management repository)</li></ul><h3>Introduction</h3><p>Below is presented the CI/CD pipeline of Helm chart and template in the solution:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*zwNM0r0Fwn-7cYzwtaJNYw.png" /><figcaption>Helm chart lifecycle starting from template ending in the cluster</figcaption></figure><p>As you can see all starts with a user updating/creating a new Helm chart and pushing changes to the corresponding Helm templates repository on Azure DevOps. One of the steps, described later in more details, is publishing the packaged template to JFrog Artifactory.</p><p>Artifactory part was a little bit tricky since in order to pull Helm charts from there we need to utilize intermediate Virtual repository for Helm.</p><p>As soon as the chart is properly stored in Artifactory we can easily use it with ArgoCD deployments updated from corresponding ArgoCD templates repository.</p><p><strong>BUT</strong> <br>One more important step is to configure ArgoCD repositories, using UI or CLI, e.g.:</p><pre>argocd repo add http://artifactory.my-company.com/artifactory/helm-repo \<br>  --type helm \<br>  --name artifactory-helm-repo \<br>  --username ADMIN \ <br>  --password PASSWORD_or_API_KEY</pre><h3>Repositories Structure</h3><p>Here’s how helm-templates repo may be structured:</p><pre>helm-templates                    # Root folder of repo<br>├── charts                        # Charts templates stored here<br>│   ├── streamlit-app-service     # Example of a chart<br>│   │   ├── templates             # Here specific parts of deployment defined<br>│   │   │   ├── _helpers.tpl<br>│   │   │   ├── deployment.yaml<br>│   │   │   ├── ingress.yaml<br>│   │   │   └── service.yaml<br>│   │   ├── Chart.yaml            # Definition of the chart<br>│   │   └── values.yaml           # Default values file<br>│   └── web-app-service           <br>├── CHANGELOG.md<br>├── README.md<br>├── azure-pipelines.yml            # CI/CD pipeline definition<br>├── chart_schema.yaml              # Required chart schema b<br>├── lintconfig.yaml                # Linter configuration<br>└── .yamllint                      # Linter configuration</pre><p>And here’s the example of deployments-management repo for ArgoCD:</p><pre>deployments-management<br>├── apps                          # Application Sets definintions<br>│   ├── appset_service-alpha.yaml           <br>│   ├── appset_service-beta.yaml<br>│   ├── appset_streamlit-app-service.yaml<br>│   └── appset_streamlit-web-app-service.yaml<br>├── charts                        # Applications initializations <br>│   ├── service-alpha<br>│   │    ...<br>│   ├── service-beta<br>│   │    ...<br>│   └── service-streamlit-app-service<br>│       ├── dev<br>│       │   ├── Chart.yaml         # Application initialization and reference to the source chart<br>│       │   └── values.yaml        # Setting values for the chart<br>│       ├── prod<br>│       │   ├── Chart.yaml<br>│       │   └── values.yaml<br>│       └── staging<br>│           ├── Chart.yaml<br>│           └── values.yaml<br>├── CHANGELOG.md<br>├── README.md<br>└── azure-pipelines.yml</pre><h3>Detailed look into each step</h3><p>So, first of all let’s review the CI/CD part of building and publishing of Helm charts.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*c8iO7JgwKo_JV_uzO_6e6w.png" /><figcaption>Detailed look into CI/CD pipeline of Helm package</figcaption></figure><p>The Azure DevOps pipeline consists of multiple stages:</p><ol><li><strong>Linting</strong>: Ensures Helm chart syntax correctness. This stage is executed during build validation for every PR and as a part of full pipeline as well. For example using following tools for linting:</li></ol><ul><li><em>ct lint (</em><a href="https://github.com/helm/chart-testing">https://github.com/helm/chart-testing</a><em>)</em></li><li><em>yamale (</em><a href="https://pypi.org/project/yamale/">https://pypi.org/project/yamale/</a><em>)</em></li><li><em>yamllint (</em><a href="https://pypi.org/project/yamllint/">https://pypi.org/project/yamllint/</a><em>)</em></li><li><em>helm template . (to verify that the template is correct)</em></li></ul><ol><li><strong>Change Detection</strong>: Detects modified charts and processes only those. Since this stage is executed only when the PR is merged, we can detect changes with <em>git diff</em>.</li><li><strong>Publishing</strong>: Pushes Helm charts to JFrog Artifactory.</li></ol><ul><li><em>helm package .</em></li><li>generate hashsums — <em>sha256</em>, <em>sha1</em>, <em>md5</em>. These are required to push alongside with a package to Artifactory.</li></ul><p>Example of <em>Chart.yaml </em>for the source chart:</p><pre>apiVersion: v2<br>name: streamlit-app-service<br>description: A sample Helm chart with template for some Streamlit deployments<br><br>type: application<br>version: 0.0.3<br>appVersion: &quot;1.0.0&quot;</pre><p>And using the source chart in destination: <br>The important step is to create a repo reference in ArgoCD to <em>artifactory-helm-repo. </em>NOTE: @artifactory-helm-repo should be used with “@”.</p><pre>apiVersion: v2<br>name: streamlit<br>version: 1.0.0<br>dependencies:<br>  - name: streamlit-app-service<br>    version: 0.0.3<br>    repository: &quot;@artifactory-helm-repo&quot; # Here should be the name you gave to repo in ArgoCD</pre><h3>Conclusion</h3><p>This article provided an overview of setting up a GitOps-driven CI/CD pipeline for Helm charts using Azure DevOps, JFrog Artifactory, and ArgoCD. We covered the repository structure, CI/CD pipeline, and how ArgoCD integrates with Artifactory. In the next part, we’ll dive deeper into advanced automation techniques and troubleshooting common issues.</p><p>Stay tuned for Part 2!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ee33cb545096" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>