<?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 Andrés Cabrera on Medium]]></title>
        <description><![CDATA[Stories by Andrés Cabrera on Medium]]></description>
        <link>https://medium.com/@imacq?source=rss-380e9819d0dc------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*6yKfaU_cgRdDNJGnyPYQcA.png</url>
            <title>Stories by Andrés Cabrera on Medium</title>
            <link>https://medium.com/@imacq?source=rss-380e9819d0dc------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Fri, 04 Dec 2026 22:16:26 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@imacq/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[The Kernel Whispers #0: Finding Where Your Latency Actually Goes]]></title>
            <description><![CDATA[<div class="medium-feed-item"><p class="medium-feed-image"><a href="https://imacq.medium.com/the-kernel-whispers-0-finding-where-your-latency-actually-goes-35d1c83fcfa6?source=rss-380e9819d0dc------2"><img src="https://cdn-images-1.medium.com/max/1774/1*naS_SlhUJ5rgQk90Zr2TLg.png" width="1774"></a></p><p class="medium-feed-snippet">An hands-on journey into eBPF/BPF &#x2014; learning to hear what Linux never tells you.</p><p class="medium-feed-link"><a href="https://imacq.medium.com/the-kernel-whispers-0-finding-where-your-latency-actually-goes-35d1c83fcfa6?source=rss-380e9819d0dc------2">Continue reading on Medium »</a></p></div>]]></description>
            <link>https://imacq.medium.com/the-kernel-whispers-0-finding-where-your-latency-actually-goes-35d1c83fcfa6?source=rss-380e9819d0dc------2</link>
            <guid isPermaLink="false">https://medium.com/p/35d1c83fcfa6</guid>
            <dc:creator><![CDATA[Andrés Cabrera]]></dc:creator>
            <pubDate>Sat, 05 Sep 2026 15:07:29 GMT</pubDate>
            <atom:updated>2026-09-05T15:07:29.311Z</atom:updated>
        </item>
        <item>
            <title><![CDATA[⚙️ Architecture: GitOps with GitHub and FluxCD — Part 2]]></title>
            <description><![CDATA[<div class="medium-feed-item"><p class="medium-feed-image"><a href="https://imacq.medium.com/%EF%B8%8F-architecture-gitops-with-github-and-fluxcd-part-2-f9e459b641ed?source=rss-380e9819d0dc------2"><img src="https://cdn-images-1.medium.com/max/600/1*ttBuCNdJXYCO7jgrkjc5Eg.png" width="600"></a></p><p class="medium-feed-snippet">Welcome back! In Part 1, we explored the repository structure and theory behind our GitOps approach. Now it&#x2019;s time to continue with a&#x2026;</p><p class="medium-feed-link"><a href="https://imacq.medium.com/%EF%B8%8F-architecture-gitops-with-github-and-fluxcd-part-2-f9e459b641ed?source=rss-380e9819d0dc------2">Continue reading on Medium »</a></p></div>]]></description>
            <link>https://imacq.medium.com/%EF%B8%8F-architecture-gitops-with-github-and-fluxcd-part-2-f9e459b641ed?source=rss-380e9819d0dc------2</link>
            <guid isPermaLink="false">https://medium.com/p/f9e459b641ed</guid>
            <dc:creator><![CDATA[Andrés Cabrera]]></dc:creator>
            <pubDate>Sat, 12 Jul 2025 21:46:24 GMT</pubDate>
            <atom:updated>2025-07-12T21:49:27.397Z</atom:updated>
        </item>
        <item>
            <title><![CDATA[⚙️ Architecture: GitOps with GitHub and FluxCD part 1]]></title>
            <description><![CDATA[<div class="medium-feed-item"><p class="medium-feed-image"><a href="https://imacq.medium.com/architecture-gitops-with-github-and-fluxcd-part-1-40dd028e2597?source=rss-380e9819d0dc------2"><img src="https://cdn-images-1.medium.com/max/1781/1*iT7dF0JpwkIeURbz8jypAQ.png" width="1781"></a></p><p class="medium-feed-snippet">I&#x2019;ve been working a lot all the eight months. I&#x2019;ve learned a lot, I failed a lot and the most importantly I&#x2019;m applying my ideas to&#x2026;</p><p class="medium-feed-link"><a href="https://imacq.medium.com/architecture-gitops-with-github-and-fluxcd-part-1-40dd028e2597?source=rss-380e9819d0dc------2">Continue reading on Medium »</a></p></div>]]></description>
            <link>https://imacq.medium.com/architecture-gitops-with-github-and-fluxcd-part-1-40dd028e2597?source=rss-380e9819d0dc------2</link>
            <guid isPermaLink="false">https://medium.com/p/40dd028e2597</guid>
            <category><![CDATA[kubernetes]]></category>
            <category><![CDATA[gitops-practice]]></category>
            <category><![CDATA[flux]]></category>
            <category><![CDATA[flux-cd]]></category>
            <category><![CDATA[gitops]]></category>
            <dc:creator><![CDATA[Andrés Cabrera]]></dc:creator>
            <pubDate>Wed, 28 May 2025 23:36:05 GMT</pubDate>
            <atom:updated>2025-05-30T23:56:12.477Z</atom:updated>
        </item>
        <item>
            <title><![CDATA[Sunday thoughts: What is living for you?]]></title>
            <description><![CDATA[<div class="medium-feed-item"><p class="medium-feed-image"><a href="https://imacq.medium.com/sunday-thoughts-what-is-living-for-you-02509cbe90f2?source=rss-380e9819d0dc------2"><img src="https://cdn-images-1.medium.com/max/1024/1*9zX5e_fQ6DwN1bQYIEVYxA.png" width="1024"></a></p><p class="medium-feed-snippet">This is of-topic post</p><p class="medium-feed-link"><a href="https://imacq.medium.com/sunday-thoughts-what-is-living-for-you-02509cbe90f2?source=rss-380e9819d0dc------2">Continue reading on Medium »</a></p></div>]]></description>
            <link>https://imacq.medium.com/sunday-thoughts-what-is-living-for-you-02509cbe90f2?source=rss-380e9819d0dc------2</link>
            <guid isPermaLink="false">https://medium.com/p/02509cbe90f2</guid>
            <category><![CDATA[thoughts-and-feelings]]></category>
            <category><![CDATA[life]]></category>
            <category><![CDATA[life-lessons]]></category>
            <dc:creator><![CDATA[Andrés Cabrera]]></dc:creator>
            <pubDate>Sun, 18 May 2025 17:06:44 GMT</pubDate>
            <atom:updated>2025-05-25T13:23:20.137Z</atom:updated>
        </item>
        <item>
            <title><![CDATA[Learning with Feynman method: creating a simple Fortune Cookie Generator in Python]]></title>
            <description><![CDATA[<div class="medium-feed-item"><p class="medium-feed-image"><a href="https://imacq.medium.com/learning-with-feynman-method-creating-a-simple-fortune-cookie-generator-in-python-54573463886a?source=rss-380e9819d0dc------2"><img src="https://cdn-images-1.medium.com/max/1200/1*sbauYibzt45yBKaDFdvw-A.png" width="1200"></a></p><p class="medium-feed-snippet">Well, as I continue my journey of learning programming and improving my English using this method.</p><p class="medium-feed-link"><a href="https://imacq.medium.com/learning-with-feynman-method-creating-a-simple-fortune-cookie-generator-in-python-54573463886a?source=rss-380e9819d0dc------2">Continue reading on Medium »</a></p></div>]]></description>
            <link>https://imacq.medium.com/learning-with-feynman-method-creating-a-simple-fortune-cookie-generator-in-python-54573463886a?source=rss-380e9819d0dc------2</link>
            <guid isPermaLink="false">https://medium.com/p/54573463886a</guid>
            <category><![CDATA[python]]></category>
            <category><![CDATA[learning]]></category>
            <category><![CDATA[learning-to-code]]></category>
            <dc:creator><![CDATA[Andrés Cabrera]]></dc:creator>
            <pubDate>Thu, 15 May 2025 15:58:33 GMT</pubDate>
            <atom:updated>2025-05-16T08:48:22.385Z</atom:updated>
        </item>
        <item>
            <title><![CDATA[Starting programming from scratch and improving my English]]></title>
            <link>https://imacq.medium.com/starting-programming-from-scratch-and-improving-my-english-21b37f8405ad?source=rss-380e9819d0dc------2</link>
            <guid isPermaLink="false">https://medium.com/p/21b37f8405ad</guid>
            <category><![CDATA[lerning]]></category>
            <dc:creator><![CDATA[Andrés Cabrera]]></dc:creator>
            <pubDate>Tue, 13 May 2025 11:27:37 GMT</pubDate>
            <atom:updated>2025-05-13T11:33:50.764Z</atom:updated>
            <content:encoded><![CDATA[<p>Well I always I try to improve something in my life. Now, I want to improve two things: my programming skills and my English. I will use a Feynman method. I’m going to teach basic to advance programming concepts and learn a new programming language while simultaneously trying to improve my second language English.</p><p>With this approach, I aim to improve these fields. In some post I’ll record myself explaining small sections of my programs or parts of my code. This process will help me build confidence in teaching concepts on something I have just learned.</p><p>Why I will try this ? why not ? I mean, l love to try new things but this one is a big deal I’ll to learn an interesting skills and improve a language.</p><h4><strong>What is the Feynman method?</strong></h4><p>Richard Feynman was a great author, teacher and physicist and is know like a “<strong>The great explainer</strong>”.</p><p>I’ve always been fascinated by his work and I admire how his teaching. I’ve watched some of his old lectures, and it’s amazing how he transforms complex topics into simple, understandable concepts.”</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*IqGFn9l2Y1eFN1YZ.png" /><figcaption>Faynman method concept</figcaption></figure><h4>How I will handle this?</h4><ol><li>Gather and identify this information.</li><li>Explain these new concepts.</li><li>Simplify these concepts and explain them in the simplest way</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*8gsmsk6raOr4HqM2.png" /><figcaption>Complexity and Density</figcaption></figure><p>Embracing the Faynman method, I’m setting myself up for success in both areas. As I document my journey what I learn. I’ll help me getting better. I’m going to try my best for this to share this with you, breaking down complex concepts into simple ones.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=21b37f8405ad" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Ignoring Differences in Argocd]]></title>
            <description><![CDATA[<div class="medium-feed-item"><p class="medium-feed-image"><a href="https://imacq.medium.com/ignoring-differences-in-argocd-e531807bfea0?source=rss-380e9819d0dc------2"><img src="https://cdn-images-1.medium.com/max/1024/1*6LxqDBSudnpcIcAOD6ynqQ.jpeg" width="1024"></a></p><p class="medium-feed-link"><a href="https://imacq.medium.com/ignoring-differences-in-argocd-e531807bfea0?source=rss-380e9819d0dc------2">Continue reading on Medium »</a></p></div>]]></description>
            <link>https://imacq.medium.com/ignoring-differences-in-argocd-e531807bfea0?source=rss-380e9819d0dc------2</link>
            <guid isPermaLink="false">https://medium.com/p/e531807bfea0</guid>
            <category><![CDATA[argo-cd]]></category>
            <category><![CDATA[kubernetes]]></category>
            <category><![CDATA[k8s]]></category>
            <dc:creator><![CDATA[Andrés Cabrera]]></dc:creator>
            <pubDate>Mon, 16 Sep 2024 11:05:28 GMT</pubDate>
            <atom:updated>2025-05-16T06:02:34.977Z</atom:updated>
        </item>
        <item>
            <title><![CDATA[Argo Rollouts Quick Guide: Canary Deployments]]></title>
            <description><![CDATA[<div class="medium-feed-item"><p class="medium-feed-image"><a href="https://imacq.medium.com/argo-rollouts-quick-guide-canary-deployments-3973db254b37?source=rss-380e9819d0dc------2"><img src="https://cdn-images-1.medium.com/max/1200/1*IMd8ULVUpGn07AX6Z7yOkA.png" width="1200"></a></p><p class="medium-feed-link"><a href="https://imacq.medium.com/argo-rollouts-quick-guide-canary-deployments-3973db254b37?source=rss-380e9819d0dc------2">Continue reading on Medium »</a></p></div>]]></description>
            <link>https://imacq.medium.com/argo-rollouts-quick-guide-canary-deployments-3973db254b37?source=rss-380e9819d0dc------2</link>
            <guid isPermaLink="false">https://medium.com/p/3973db254b37</guid>
            <category><![CDATA[argo-rollouts]]></category>
            <category><![CDATA[argo-cd]]></category>
            <category><![CDATA[kubernetes]]></category>
            <dc:creator><![CDATA[Andrés Cabrera]]></dc:creator>
            <pubDate>Tue, 09 May 2023 18:54:49 GMT</pubDate>
            <atom:updated>2025-05-16T06:03:03.797Z</atom:updated>
        </item>
        <item>
            <title><![CDATA[Getting Started with Deploying Applications to Argocd: A Beginner’s Guide (Part 3)]]></title>
            <link>https://imacq.medium.com/getting-started-with-deploying-applications-to-argocd-a-beginners-guide-part-3-b25728e4cfe6?source=rss-380e9819d0dc------2</link>
            <guid isPermaLink="false">https://medium.com/p/b25728e4cfe6</guid>
            <category><![CDATA[argo-cd]]></category>
            <category><![CDATA[deployment]]></category>
            <category><![CDATA[applicationset]]></category>
            <category><![CDATA[ingress]]></category>
            <dc:creator><![CDATA[Andrés Cabrera]]></dc:creator>
            <pubDate>Thu, 04 May 2023 10:42:55 GMT</pubDate>
            <atom:updated>2023-05-04T13:49:20.753Z</atom:updated>
            <content:encoded><![CDATA[<p>Are you tired of spending hours creating and managing similar applications? Well, have no fear because ApplicationSet is here! This amazing feature of ArgoCD can save you a lot of time and effort.</p><p>In a nutshell, ApplicationSet allows you to create multiple applications at once from a single manifest or template file. You define what your applications should look like in a manifest file or template, and then use ApplicationSet to generate multiple versions of that file with different parameters or values. ArgoCD uses those versions to create and manage all the applications you need.</p><p>To apply ApplicationSet, first, follow the steps from my previous post where I explain how to configure a local environment for ArgoCD. That post covers details on installing and configuring Kubernetes and ArgoCD on a local machine or cluster, authentication, and authorization, repository setup, and application creatio</p><p><a href="https://medium.com/@imacq/getting-started-with-deploying-applications-to-argocd-a-beginners-guide-part-2-9b29ead9a4bd">Getting Started with Deploying Applications to Argocd: A Beginner’s Guide (Part 2)</a></p><h3>Applying applicationset</h3><p>Now, let’s take a look at an example of an ApplicationSet resource and explore its component parts.</p><pre>apiVersion: argoproj.io/v1alpha1<br>kind: ApplicationSet<br>metadata:<br>  name: gitops-app<br>spec:<br>  generators:<br>  - git:<br>      repoURL: https://github.com/AndreCbrera/argocd-labs.git<br>      revision: main<br>      files:<br>      - path: &quot;lab-3/applicationset/config/**/conf.json&quot;<br>  template:<br>    metadata:<br>      name: &#39;{{app.name}}-devops&#39;<br>    spec:<br>      project: default<br>      syncPolicy:<br>        automated:<br>          prune: true<br>          selfHeal: true<br>        syncOptions:<br>        - CreateNamespace=true<br>      sources:<br>      - repoURL: http://chartmuseum.chartmuseum.svc.cluster.local<br>        chart: devops-app-chart<br>        targetRevision:  0.5.0<br>        helm:<br>          valueFiles:<br>          - $values/lab-3/applicationset/overlays/{{app.name}}/{{app.overlay}}<br>      - repoURL: https://github.com/AndreCbrera/argocd-labs.git<br>        targetRevision: main<br>        ref: values<br>      destination:<br>        server: https://kubernetes.default.svc</pre><p>The ApplicationSet resource is structured as follows:</p><ul><li><strong>generators</strong>: This section specifies how the applications in the set should be generated. In this example, the generator is a Git repository located at <strong>https://github.com/AndreCbrera/argocd-labs.git</strong>. It searches for configuration files matching the pattern <strong>&quot;lab-3/applicationset/config/**/conf.json&quot;</strong> to generate the applications. These files contain the application-specific configuration data.</li><li><strong>{{ }}</strong>: In the <strong>template</strong> section, curly braces are used to reference variables in the manifest file. In this case, the <strong>app.name</strong> and <strong>app.overlay</strong> variables are dynamically set based on the generated configuration data. The metadata name is set to <strong>{{app.name}}-devops</strong>.</li><li><strong>sources</strong>: This section specifies the sources of the applications to be generated. In this example, there are two sources. The first source is a Helm chart located at <strong>http://chartmuseum.chartmuseum.svc.cluster.local</strong> with the chart name <strong>devops-app-chart</strong> and version <strong>0.5.0</strong>. The second source is a Git repository located at <strong>https://github.com/AndreCbrera/argocd-labs.git</strong> with a target revision of <strong>main</strong> and a ref of <strong>values</strong>. The <strong>helm</strong> section specifies additional configuration data for the Helm chart, such as the location of the value files.</li><li><strong>destination</strong>: This section specifies where the applications will be deployed. In this example, they will be deployed to the Kubernetes cluster located at <a href="https://kubernetes.default.svc./"><strong>https://kubernetes.default.svc</strong>.</a></li></ul><p>The <strong>syncPolicy</strong> section defines how the applications should be synchronized. In this example, an automated sync policy is used, which automatically prunes resources that are not in the ApplicationSet and self-heals any resources that are out of sync. The <strong>syncOptions</strong> parameter is set to <strong>CreateNamespace=true</strong>, which creates a new namespace for each application.</p><h3>Chart Structure and Base Configuration</h3><p>So here’s how we organized the chart structure for our app:</p><pre>./<br>├── Chart.yaml<br>├── templates<br>│   ├── deployment.yaml<br>│   ├── _helpers.tpl<br>│   ├── ingress.yaml<br>│   ├── namespace.yaml<br>│   └── service.yaml<br>└── values.yaml</pre><p>Basically, we’ve got the <strong>Chart.yaml</strong> file that has some metadata, a <strong>templates</strong> directory where we keep the Kubernetes manifests for deploying the app, and a <strong>values.yaml</strong> file with the base configuration values.</p><p>Speaking of the base config, here’s what we’ve got in <strong>values.yaml</strong>:</p><pre>replicaCount: 2<br>image:<br>  repository: hashicorp/http-echo<br>  tag: 0.2.3<br>  pullPolicy: IfNotPresent<br><br>namespace: devops<br><br>service:<br>  type: ClusterIP<br>  port: 5678<br><br>ingress:<br>  enabled: true<br>  annotations: {}<br>  path: /<br>  pathType: Prefix<br>  hosts:<br>    - echo.kind.cluster</pre><p>No big deal, just a few settings that specify things like the number of replicas, the Docker image repository and tag to be used, and the namespace where the app will be deployed. The <strong>service</strong> and <strong>ingress</strong> fields define the type of service and ingress to be created for the app, along with some other details.</p><p>By the way, this base configuration is what we use by default for our deployments.</p><h3>The structure of the overlay</h3><p>To demonstrate the powerful capabilities of the ApplicationSet resource to apply overlays, let’s examine a configuration that highlights its usage. The directory structure is a crucial aspect of using overlays to ensure that they are applied correctly.</p><p>The following directory structure shows the configuration files for each application and the overlay files used to customize the application configurations. The <strong>config</strong> directory contains the configuration files, while the <strong>overlays</strong> directory contains the overlay files. By using these JSON files in conjunction with an ApplicationSet resource, it is easy to generate and manage multiple applications with customized values.</p><pre>./<br>├── config<br>│   ├── app1<br>│   │   └── conf.json<br>│   └── app2<br>│       └── conf.json<br>└── overlays<br>    ├── app1<br>    │   └── values-app1.yaml<br>    └── app2<br>        └── values-app2.yaml</pre><p>The JSON files contain the name of the application to be deployed, as well as the values-app1.yaml and values-app2.yaml files that overwrite the base values that come from the chart. The following snippets show the JSON files for the two applications:</p><pre>{<br>    &quot;app&quot;: {<br>      &quot;name&quot;: &quot;app1&quot;,<br>      &quot;overlay&quot;: &quot;values-app1.yaml&quot;<br>    }<br>  }</pre><pre>{<br>    &quot;app&quot;: {<br>      &quot;name&quot;: &quot;app2&quot;,<br>      &quot;overlay&quot;: &quot;values-app2.yaml&quot;<br>    }<br>  }</pre><p>By leveraging overlays in an ApplicationSet resource, we can modify the host in the ingress configuration to provide each application with its own DNS and namespace. This customization can be achieved without modifying the base YAML files, resulting in a streamlined and efficient deployment process.</p><p>Here are examples of the customized YAML files for each application:</p><pre>namespace: app1<br><br>ingress:<br>  hosts:<br>    - app1.kind.cluster</pre><pre>namespace: app2<br><br>ingress:<br>  hosts:<br>    - app2.kind.cluster</pre><h3>Building applications</h3><p>To build our applications, we need to apply our ApplicationSet resource file. We can apply this to our ArgoCD server by executing the following command in the argocd namespace:</p><pre>kubectl apply -f applicationset.yaml -n argocd</pre><p>This will create two applications in our ArgoCD server, which we can verify by checking the ingress hosts and validating that the overlays have changed the base configuration from our chart.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/669/1*OR0qLDRVHJ-xXSWfY-A4lg.png" /><figcaption>applying applicationset</figcaption></figure><p>With the ApplicationSet resource and the use of overlays, we can easily generate and manage multiple applications with customized values. By modifying only the overlay files, we can deploy applications with specific configurations without modifying the base YAML files, resulting in a streamlined and efficient deployment process.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/781/1*6GM3LLKuaxl9d9N3SXvU0A.png" /><figcaption>UI argocd apps</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*IHxhDcUHhaQE8dr4BhLa4Q.png" /><figcaption>Deploy app1 application</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*D_Z8hFcA1au8ky1kq4zPkg.png" /><figcaption>Deploy app2 application</figcaption></figure><p>To access the applications, we can check the DNS hosts defined in the ingress configuration, as shown in the following screenshots:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/612/1*mXDnE3GU3yj7xqISdnxv0g.png" /><figcaption>app1 ingress</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/613/1*GbuEzj7-R-sYygj-iCJGiw.png" /><figcaption>app2 ingress</figcaption></figure><p>We can see that the overlays have customized the configurations for each application without modifying the base YAML files, resulting in a streamlined and efficient deployment process.</p><p>To access the DNS hosts, you can use a web browser or a command line tool like <strong>curl</strong> to make a request to the host. For example, if the host is <strong>app1.kind.cluster or </strong><strong>app1.kind.cluster</strong> you can use the following command to make a request:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/730/1*mOJe32Ndd-ugsSLArVCyOw.png" /><figcaption>Browser access</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/446/1*QF7aRCByChzDkG-MyFjxYA.png" /><figcaption>Curl request</figcaption></figure><p>So there you have it! In this post, we explored the cool stuff that you can do with ApplicationSet resources and overlays. We saw how overlays can be used to customize application configurations without messing around with the base from helm charts. And we also checked out an example of an ApplicationSet resource, with its generators, templates, sources, and destinations. Finally, we applied it to our ArgoCD server and checked out the apps.</p><p>By using ApplicationSet resources and overlays, we can easily deploy multiple applications with customized values. It’s a great way to reduce complexity, improve consistency, and make life easier for developers. So next time you’re deploying apps, give it a try!</p><p>Code <a href="https://github.com/AndreCbrera/argocd-labs/tree/main/lab-3">source</a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/400/0*y2-eIwT44duA_D2A.png" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b25728e4cfe6" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Getting Started with Deploying Applications to Argocd: A Beginner’s Guide (Part 2)]]></title>
            <link>https://imacq.medium.com/getting-started-with-deploying-applications-to-argocd-a-beginners-guide-part-2-9b29ead9a4bd?source=rss-380e9819d0dc------2</link>
            <guid isPermaLink="false">https://medium.com/p/9b29ead9a4bd</guid>
            <category><![CDATA[application]]></category>
            <category><![CDATA[kubernetes]]></category>
            <category><![CDATA[dnsmasq]]></category>
            <category><![CDATA[argo-cd]]></category>
            <dc:creator><![CDATA[Andrés Cabrera]]></dc:creator>
            <pubDate>Fri, 28 Apr 2023 19:51:08 GMT</pubDate>
            <atom:updated>2023-04-29T16:11:21.429Z</atom:updated>
            <content:encoded><![CDATA[<p>Let’s talk about using the Application resource in Kubernetes. It’s a powerful way to manage applications and deployment to ArgoCD.</p><p>Remember that post we talked about earlier at:</p><p><a href="https://medium.com/@imacq/getting-started-with-deploying-applications-to-argocd-a-beginners-guide-9054ac23e5f9">Getting Started with Deploying Applications to Kubernetes: A Beginner’s Guide for Local…</a></p><p>Well, now we’re going to create some apps using <strong>Application</strong> in ArgoCD.</p><p>But before we get into that, we need to set up our <strong>kind</strong> cluster. Don&#39;t sweat it though, it&#39;s easy, just check out this post at:</p><p><a href="https://medium.com/@imacq/configuring-local-ingress-domains-for-your-kind-cluster-with-metallb-dnsmasq-and-ingress-nginx-78745f11bd9a">Configuring Local Ingress Domains for your Kind Cluster with MetalLB, Dnsmasq and Ingress-Nginx</a></p><p>Now, to install ArgoCD from the Helm chart, we need to make some changes. By default, ArgoCD has SSL autoredirection enabled, but we gotta disable that. Just keep in mind that I haven’t set up an ingress with SSL in this tutorial, so if you’re looking for a solution with SSL, you’re in the wrong place. We’re just in a local test environment without certificates.</p><p>Here are the steps you need to follow to configure it:</p><p>First, we’ll edit the deployment of argocd-server and add <strong>--insecure:</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/796/1*KqTQz4f5UylDwYuLecp1Yw.png" /></figure><p>And when we install the Ingress Controller, we need to edit this part of the YAML file:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/785/1*OO2yWk3EKCtuhAsy10hDaw.png" /></figure><p>Going back to the argocd installation, we will use helm to perform the installation:</p><pre>kubectl create namespace argocd<br>kubectl apply -n argocd -f https://raw.githubusercontent.com/argoproj/argo-cd/stable/manifests/install.yaml</pre><p>Next, create the ingress with the following DNS:</p><pre>apiVersion: extensions/v1beta1<br>kind: Ingress<br>metadata:<br>  name: argocd-server-ingress<br>  namespace: argocd<br>  annotations:<br>    kubernetes.io/ingress.class: nginx<br>    nginx.ingress.kubernetes.io/force-ssl-redirect: &quot;true&quot;<br>    nginx.ingress.kubernetes.io/ssl-passthrough: &quot;true&quot;<br>spec:<br>  rules:<br>  - host: argo.kind.cluster<br>    http:<br>      paths:<br>      - backend:<br>          serviceName: argocd-server<br>          servicePort: http</pre><p>To get the initial password from ArgoCD, run this command:</p><pre><br>kubectl -n argocd get secret argocd-initial-admin-secret -o jsonpath=&quot;{.data.password}&quot; | base64 -d; echo</pre><p>Then, access the ArgoCD dashboard and update the password:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/962/1*xP2JrGh1SVfVsU_X5zqVfg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/739/1*6q_1tGKvZVx22ZE6m5P5Tg.png" /></figure><p>We can now deploy our applications in argocd !</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*B-cNUooqOhO6h0bielx3JQ.png" /></figure><h4>Visualizing the Relationships Between Argo CD, ChartMuseum, and DNSMasq Services.</h4><p>In this brief explanation, we will outline our plan for implementing the services Argo CD, ChartMuseum, and Dnsmasq. For more detailed information, please refer to the second post that we have provided for your convenience.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*G_Z4ddKJtkuWbjLFLB8YUA.png" /></figure><p>As we can observe, we have deployed our ChartMuseum in the same cluster and in order to access the charts saved in it, we will need to specify the DNS entry of the service that points to the ChartMuseum pod. (chartmuseum.chartmuseum.svc.cluster.local)</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/892/1*VmHXcH0f_ZOM7-5l5xyqAw.png" /></figure><p>We need to select an HTTPS method and connect:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/861/1*8-T9NulMzhbi-WOqyzUh0g.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*82PsDQtutSbnTNsPZkLj4A.png" /></figure><h4>Uploading our chart</h4><p>To get started, we’ve set up an Ingress that points to our ChartMuseum service. Here’s the configuration for <a href="https://github.com/AndreCbrera/argocd-labs/tree/main/chartmuseum"><strong>ChartMuseum</strong></a>.</p><p>To upload a Helm package to ChartMuseum, you’ll need to configure your local Helm client to point to the ChartMuseum repository. This can be done by adding the repository URL as a Helm repository using the <strong>helm repo add</strong> command. For example:</p><pre>helm repo add chartmusem chartmuseum.kind.cluster</pre><p>Next, build the Helm package by running the helm package command on the root directory of your chart. This will create a .tgz file that contains the chart.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*XSE76vU3PrIRmXohOTd1_g.png" /></figure><p>Finally, upload the Helm package to ChartMuseum by running the curl command with the — data-binary flag to send the .tgz file to the ChartMuseum API endpoint. For example:</p><pre>curl --data-binary &quot;@mychart-1.0.0.tgz&quot; http://chartmuseum.kind.cluster/api/charts</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Sq2tlTwt51N7RqTv-SKfMg.png" /></figure><p>To verify that your chart has been uploaded successfully, you can either use the ChartMuseum UI or API, or you can run the helm search command to search for the chart in the repository. Additionally, you can access ChartMuseum from your browser by navigating to the repository URL.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/735/1*b99dQvMpdnJw_Lt5NXWYgQ.png" /></figure><h4>Preparing a Application(CRD) to use it in ArgoCD.</h4><p>To deploy an application using ArgoCD, you’ll need to prepare a configuration file that tells ArgoCD how to deploy the app. In this example, we’re deploying an app called <strong>devops-app</strong>, and we&#39;re using a chart from ChartMuseum to define its configuration.</p><pre>apiVersion: argoproj.io/v1alpha1<br>kind: Application<br>metadata:<br>  name: devops-app<br>spec:<br>  destination:<br>    namespace: default<br>    server: https://kubernetes.default.svc<br>  project: default<br>  source:<br>    repoURL: http://chartmuseum.chartmuseum.svc.cluster.local<br>    chart: devops-app-chart<br>    targetRevision: 0.4.0<br>  syncPolicy:<br>    automated:<br>      prune: true<br>      selfHeal: true</pre><p>It’s important to note that before deploying the application, you need to switch your namespace to the one where ArgoCD is installed. This is because ArgoCD manages applications within its own namespace, and it needs access to Kubernetes resources to deploy and manage the application.</p><p>Once you’ve switched to the ArgoCD namespace, you can apply the configuration file using the <strong>kubectl apply</strong> command. This will create an ArgoCD Application resource and trigger the deployment of the application.</p><p>Here’s an example command to apply the configuration file:</p><pre>kubectl apply -n argocd -f application.yaml</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/696/1*HKPix_DpJn4pO4FBBu_otA.png" /></figure><p>After applying the ArgoCD Application resource for <strong>devops-app</strong>, ArgoCD will begin deploying the application according to the configuration specified in the manifest.</p><p>You can monitor the deployment progress using the ArgoCD web UI, which will show you the status of the application and any errors that may occur during deployment. Here’s an example screenshot of the UI:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/727/1*6jQIQdT-CRLwTzjiaL4E5g.png" /></figure><p>Once the deployment is complete, you can access your application and verify that it’s running correctly. You can do this by accessing the URL or IP address specified in your Ingress resource, which will route traffic to the application.</p><p>Here’s an example screenshot of accessing the deployed application:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*X5md4898ZvUaBSdhLymkNA.png" /></figure><p>If everything is working correctly, you should be able to see your application’s UI and interact with it as expected.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/516/1*8BqlesRzDlBCwy-w1OZMuA.png" /></figure><p>In the next post, we will dive into the advanced features of ArgoCD and explore how to use ApplicationSet to manage multiple applications at scale. Stay tuned for more!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/400/1*DJ1YRcAaSzylWgeCE430pA.png" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=9b29ead9a4bd" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>