<?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 Osakpolor Courage Ihensekhien on Medium]]></title>
        <description><![CDATA[Stories by Osakpolor Courage Ihensekhien on Medium]]></description>
        <link>https://medium.com/@osascourage27?source=rss-9030a9a8dcc7------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*ZzQa4U27t8iYesMGA92Chg.png</url>
            <title>Stories by Osakpolor Courage Ihensekhien on Medium</title>
            <link>https://medium.com/@osascourage27?source=rss-9030a9a8dcc7------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Mon, 30 Nov 2026 12:35:18 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@osascourage27/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[New Approach: Integrating Rollouts Extension into ArgoCD UI for Advanced Kubernetes Deployments…]]></title>
            <link>https://medium.com/@osascourage27/new-approach-integrating-rollouts-extension-into-argocd-ui-for-advanced-kubernetes-deployments-61de89cd6a24?source=rss-9030a9a8dcc7------2</link>
            <guid isPermaLink="false">https://medium.com/p/61de89cd6a24</guid>
            <category><![CDATA[kubernetes]]></category>
            <category><![CDATA[gitops]]></category>
            <category><![CDATA[canary-deployments]]></category>
            <category><![CDATA[kubernetes-argocd]]></category>
            <dc:creator><![CDATA[Osakpolor Courage Ihensekhien]]></dc:creator>
            <pubDate>Thu, 23 May 2024 17:11:26 GMT</pubDate>
            <atom:updated>2024-05-23T17:11:26.583Z</atom:updated>
            <content:encoded><![CDATA[<h3>New Approach: Integrating Rollouts Extension into ArgoCD UI for Advanced Kubernetes Deployments Strategies</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/458/1*KvjtTTnTf_tvo_sLTvIKLA.png" /></figure><p>Kubernetes has revolutionized the way we manage containerized applications, enabling dynamic scaling and rapid deployment. However, as deployments become more complex, managing them efficiently can become challenging. ArgoCD and Argo Rollouts are two powerful tools designed to address these complexities, offering sophisticated deployment strategies and continuous delivery (CD) capabilities. By integrating Argo Rollouts UI into ArgoCD UI, we can streamline the deployment process, providing a unified interface for managing and visualizing advanced deployment strategies.</p><h3>Argo Rollouts:</h3><p>Argo Rollouts is a Kubernetes controller and CRD (Custom Resource Definition) that automates the deployment strategies for Kubernetes resources. It builds upon the standard Kubernetes Deployment controller but adds additional features and deployment strategies, such as Blue-Green, A/B testing as well as Canary deployments.</p><h4>Key Features of Argo Rollouts:</h4><ol><li>Canary Deployments: Argo Rollouts simplifies the implementation of Canary deployments within Kubernetes clusters, allowing for fine-grained control over rollout strategies.</li><li>Progressive Delivery: Beyond Canary deployments, Argo Rollouts supports other progressive delivery strategies like Blue-Green and A/B testing.</li><li>Traffic Shifting: Automated traffic shifting mechanisms enable smooth transitions between different versions of an application, minimizing downtime and user impact.</li></ol><h3>ArgoCD UI:</h3><p>ArgoCD is a declarative, GitOps continuous delivery tool for Kubernetes. ArgoCD UI is its web-based user interface that provides visibility and management capabilities for Kubernetes applications and their deployments.</p><h4>Features of ArgoCD UI:</h4><ol><li>Application Management: ArgoCD UI allows users to define, manage, and synchronize applications and their configurations stored in Git repositories.</li><li>Deployment Automation: It automates the deployment process by continuously monitoring the desired state of applications in Git and reconciling them with the actual state in the Kubernetes cluster.</li><li>Rollout Visualization: ArgoCD UI without the Argo-Rollout UI provides visualizations of deployment status, including the progress of Canary deployments managed by Argo Rollouts.</li></ol><h3>Integrating Argo Rollouts UI into ArgoCD UI as an extension</h3><p>Even though there are some visualization of Argo Rollout resources on the argocd UI, this is not really as it will be in a native Argo Rollout web UI, To have a more unified interface with enhanced visibility and control and enhanced collaboration, there is a need to find a way to integrate it into ArgoCD UI. One way to do this is using ArgoCD UI extensions, before now, we use the ArgoCDExtension CR from argoproj-labs which is now <a href="https://github.com/argoproj-labs/argocd-extensions">deprecated</a>. According to recent version of ArgoCD, There is a new way to integrate a UI extension, you can look up the documentation <a href="https://argo-cd.readthedocs.io/en/stable/developer-guide/extensions/ui-extensions/#:~:text=Flyout%20widget-,UI%20Extensions,-%C2%B6">here</a> for more details.</p><p><a href="https://github.com/argoproj-labs/rollout-extension">Argo Rollout extension</a> is one of the argoproj-labs project, and due to the recent change in the way a UI extension is added to ArgoCD, there is also a new project in argoproj-lab called Argo CD Extension Installer, you can look at it to create your own docker image of the installer extension or just used the already create image. This extension installer can be used to add any other extension to Argo CD UI.</p><p><strong>Below are the steps to add the rollout extension to ArgoCD UI</strong></p><ol><li>Ensure that Argo CD is already running in the cluster:<br>You can look at the documentation <a href="https://argo-cd.readthedocs.io/en/stable/getting_started/">here</a> to setup Argo CD in your cluster</li><li>Using kubectl command, edit the argocd-server deployment resource running in your cluster</li></ol><pre>kubectl edit deployment argocd-server -n argocd</pre><p>Edit the argocd-server deployment adding the initContainer, volumeMount and volume parts as below. as below as indincated in the Argo CD UI extension <a href="https://argo-cd.readthedocs.io/en/stable/developer-guide/extensions/ui-extensions/#:~:text=Flyout%20widget-,UI%20Extensions,-%C2%B6">documenation</a></p><pre>apiVersion: apps/v1<br>kind: Deployment<br>metadata:<br>  name: argocd-server<br>spec:<br>  template:<br>    spec:<br>      initContainers:<br>        - name: rollout-extension<br>          image: quay.io/argoprojlabs/argocd-extension-installer:v0.0.1<br>          env:<br>          - name: EXTENSION_URL<br>            value: https://github.com/argoproj-labs/rollout-extension/releases/download/v0.3.5/extension.tar<br>          volumeMounts:<br>            - name: extensions<br>              mountPath: /tmp/extensions/<br>          securityContext:<br>            runAsUser: 1000<br>            allowPrivilegeEscalation: false<br>      containers:<br>        - name: argocd-server<br>          volumeMounts:<br>            - name: extensions<br>              mountPath: /tmp/extensions/<br>      volumes:<br>        - name: extensions<br>          emptyDir: {}</pre><p>After the update has been applied successfully, logon on to the ArgoCD UI if you don’t have an ingress or loadbalancer url yet you can quickly do kubectl portforward to access the UI</p><pre>kubectl port-forward svc/argocd-server -n argocd 8080:443</pre><p><strong>Canay Deployment example</strong></p><p>In the Argo CD UI create a new application referencing the repository with the canary deployment configurations. The result is as below</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*oimWLB1aII9W-SUlJi2BMg.png" /></figure><p>Click on the rollout resource and you will see this, then click on the ROLLOUT tab to access the rollout UI for the application</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*TyORD7OVja5g6wTeIAJJaw.png" /></figure><p>Rollout UI <br>Below is the rollout UI for the application and we are able to view the details the deployment strategy and the clicking on three vertical dots icon in the top right, you can access all the various rollout options.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*2Y2TYegdVXz268kfj5Jwmw.png" /></figure><p>Rollout options</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Jx0K_P97gIbk7XRyYeV7dQ.png" /></figure><h3>Conclussion</h3><p>Integrating Argo Rollouts UI into ArgoCD UI streamlines the management of advanced Kubernetes deployments. It offers a unified interface, enhanced visibility, and simplified operations, empowering teams to deliver applications more efficiently and reliably. By following the steps outlined above, you can harness the full potential of both ArgoCD and Argo Rollouts, optimizing your deployment workflows and achieving continuous delivery excellence in your Kubernetes environment.<br>You can check out the rollout deployment repository <a href="https://github.com/CourageOI/tpss-api/tree/dev/rollout-test/argocd-canary"><strong>here</strong></a></p><p>You can reach out to me if you have any question and also follow me for more DevOps and SRE posts.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=61de89cd6a24" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Shift Left Security: Building a Secure DevOps Fortress]]></title>
            <link>https://medium.com/@osascourage27/shift-left-security-building-a-secure-devops-fortress-20fa584075da?source=rss-9030a9a8dcc7------2</link>
            <guid isPermaLink="false">https://medium.com/p/20fa584075da</guid>
            <category><![CDATA[continuous-security]]></category>
            <category><![CDATA[devops]]></category>
            <category><![CDATA[devsecops]]></category>
            <category><![CDATA[security]]></category>
            <dc:creator><![CDATA[Osakpolor Courage Ihensekhien]]></dc:creator>
            <pubDate>Mon, 01 Apr 2024 14:43:05 GMT</pubDate>
            <atom:updated>2024-04-01T14:54:26.542Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*MXkON_omOAO18RtBKIz8hA.png" /></figure><p>In the fast-paced world of DevOps, where speed and agility are paramount, security can often feel like an afterthought. But with the ever-evolving threat landscape, relegating security to the final stages of development is a recipe for disaster. The answer? <strong>Shift Left Security</strong>, a proactive approach that embeds security considerations throughout the entire DevOps lifecycle.</p><h3>Why Shift Left? The Traditional Pitfalls</h3><p>Imagine a world where a critical vulnerability discovered just before release throws your entire deployment schedule into chaos. This is the harsh reality of traditional security testing, often performed as a separate phase late in the game. This waterfall approach leads to:</p><p><strong>Vulnerability blind spots: </strong>Issues linger undetected until late, leading to expensive rework and delays.<br><strong>Security bottlenecks:</strong> Security teams become overburdened with fixing issues identified close to release.<br><strong>Disjointed ownership:</strong> Developers and security operate in silos, fostering a culture of blame rather than collaboration.</p><h3>Shift Left: A Holistic Security Approach</h3><p>Shift Left Security flips the script by integrating security practices seamlessly into the DevOps workflow. This means:</p><p><strong>Security by Design:</strong> Security becomes a core principle from the get-go, influencing architecture decisions and code implementation. Think threat modeling, secure coding practices, and leveraging secure libraries.<br><strong>Shifting Right with Automated Checks:</strong> Security doesn’t stop at development. Automated vulnerability scanners and SAST (Static Application Security Testing) tools like Fortify on Demand, Checkmarx, or CodeScan become an integral part of the CI/CD pipeline, providing continuous feedback and catching issues early.<br><strong>Empowering Developers, Not Hampering Them:</strong> Shift Left isn’t about adding security overhead. It’s about equipping developers with the tools and training they need to write secure code from the start. Think developer-friendly security scanners, secure coding training, and fostering a culture of security ownership.</p><h3>The Benefits for Discerning DevOps Engineers</h3><p>For those constantly striving for a more efficient and secure development pipeline, Shift Left Security offers a multitude of advantages:</p><p><strong>Reduced Mean Time to Repair (MTTR):</strong> Finding and fixing vulnerabilities early translates to faster resolution times and lower overall costs.<br><strong>Improved Software Quality: </strong>Early detection and mitigation of security issues leads to a more robust codebase, reducing the risk of post-release exploits.<br><strong>Enhanced Developer Productivity:</strong> Automated security checks streamline the development process, freeing developers to focus on core coding tasks.<br><strong>Continuous Feedback Loop:</strong> Shift Left fosters a culture of continuous improvement, with security considerations feeding back into the design and development phases.</p><h3>Beyond the Basics: Advanced Shift Left Techniques</h3><p>For true DevOps champions, there’s a treasure trove of tools to explore when it comes to Shift Left Security:</p><p><strong>SAST (Static Application Security Testing):</strong> This powerful tool analyzes your codebase early in the development lifecycle, identifying patterns and code constructs known to be exploitable. Integrate SAST tools like Fortify on Demand, Checkmarx, or CodeScan into your CI/CD pipeline for automated security checks as code is committed. SAST excels at finding common coding errors that can lead to security weaknesses.<br><strong>SCA (Software Composition Analysis):</strong> Don’t forget about third-party components! Integrate SCA tools like Snyk, WhiteSource, or Black Duck into your CI pipeline to identify and manage vulnerabilities within libraries used in your code. These tools can also suggest safe alternatives to vulnerable libraries.<br><strong>DAST (Dynamic Application Security Testing):</strong> While SAST focuses on static code analysis, complement it with DAST tools like Acunetix or Burp Suite that simulate real-world attacks to uncover runtime vulnerabilities that might be missed by SAST.<br><strong>Container Scanning:</strong> Since containers are rapidly becoming the de facto standard for application deployment, incorporate container scanning tools like Aqua Trivy, Clair, or Amazon Inspector into your CI/CD pipeline. These tools scan container images for vulnerabilities within the container itself, including the application code, libraries, and operating system.</p><p>By incorporating this combination of techniques and leveraging the recommended tools, you can achieve a multi-layered approach to security throughout your development process. This empowers your DevOps team to identify and address security issues early and often, leading to more secure and reliable applications.</p><h3>Building a Successful Shift Left Strategy</h3><p>Implementing Shift Left Security requires a multi-pronged approach:</p><p><strong>DevSecOps Adoption:</strong> Break down silos between development, security, and operations teams. Foster a collaborative environment where security is everyone’s responsibility.<br><strong>Culture of Continuous Learning:</strong> Invest in ongoing security training for developers, keeping them updated on the latest threats and secure coding practices. <br><strong>Metric-Driven Approach:</strong> Track key security metrics like the number of vulnerabilities identified and resolved to measure the effectiveness of your Shift Left initiatives. This data can be used to identify areas for improvement and demonstrate the value of security to stakeholders.</p><h3><strong>Shift Left Security: A Continuous Journey</strong></h3><p>Shift Left Security is not a destination, but rather a continuous journey. By integrating security considerations throughout the DevOps lifecycle, you can build a culture of security ownership, deliver robust applications faster, and ultimately achieve a more secure development environment. So, embrace the Shift Left approach, and watch your DevOps practice evolve into a well-oiled security machine!</p><p><strong>Want to learn more about DevOps SRE and Security? </strong><a href="https://medium.com/@osascourage27"><strong>Follow me</strong></a> on Medium for further insights and discussions</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=20fa584075da" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Argo CD vs. Flux CD: Choosing the Right GitOps Tool for Your Kubernetes Deployments]]></title>
            <link>https://medium.com/@osascourage27/argo-cd-vs-flux-cd-choosing-the-right-gitops-tool-for-your-kubernetes-deployments-dbe93b598c69?source=rss-9030a9a8dcc7------2</link>
            <guid isPermaLink="false">https://medium.com/p/dbe93b598c69</guid>
            <category><![CDATA[flux-cd]]></category>
            <category><![CDATA[kubernetes]]></category>
            <category><![CDATA[devops]]></category>
            <category><![CDATA[argo-cd]]></category>
            <category><![CDATA[gitops]]></category>
            <dc:creator><![CDATA[Osakpolor Courage Ihensekhien]]></dc:creator>
            <pubDate>Sun, 03 Mar 2024 14:32:43 GMT</pubDate>
            <atom:updated>2024-03-03T14:32:43.341Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*gp0pW6ZUrFQNho0yteaemw.png" /></figure><p><strong>Introduction</strong></p><p>Argo CD and Flux CD are two prominent open-source tools that empower you to implement GitOps principles for managing deployments in Kubernetes environments. Both tools share the core objective of enabling a declarative, Git-driven approach to managing your infrastructure and applications, but they differ in their feature sets, user interfaces, and ideal use cases. This comprehensive guide delves into the key aspects of Argo CD and Flux CD, equipping you to make an informed decision when selecting the right tool for your specific requirements.</p><p><strong>Key Considerations</strong></p><p><strong>Deployment Model:</strong></p><ul><li><strong>Argo CD:</strong> Employs a declarative, user-driven deployment model. Users explicitly define the desired state of their applications in Git repositories, and Argo CD continuously reconciles the actual state of the cluster with the desired state, applying necessary changes.</li><li><strong>Flux CD:</strong> Adopts a continuous reconciliation approach, automatically synchronizing the cluster state with the desired state defined in Git. This continuous approach streamlines deployments and simplifies management.</li></ul><p><strong>User Interface:</strong></p><ul><li><strong>Argo CD:</strong> Provides a feature-rich web UI that facilitates intuitive management of deployments, rollbacks, and application health. The UI offers visual representations of application resources, historical deployment details, and integration with popular CI/CD pipelines.</li><li><strong>Flux CD:</strong> Primarily relies on a command-line interface (CLI) for configuration and interaction. While it offers a basic UI, most interactions are conducted through commands. This can be advantageous for experienced users who prefer a more direct and scriptable approach.</li></ul><p><strong>Extensibility:</strong></p><ul><li><strong>Argo CD:</strong> Excels in extensibility, seamlessly integrating with various tools like Helm (for package management) and Kustomize (for overlaying configuration). This integration empowers you to leverage existing workflows and tools within your GitOps environment.</li><li><strong>Flux CD:</strong> Extends its capabilities through controllers and custom resources, providing a flexible framework for tailoring the tool to your specific needs. It also integrates with Helm. However, this approach might require more development effort compared to Argo CD’s out-of-the-box integrations.</li></ul><p><strong>Advanced Features:</strong></p><ul><li><strong>Argo CD:</strong> Offers Blue/Green and Canary deployments through Argo Rollouts, enabling you to safely introduce new application versions while minimizing risk and downtime.</li><li><strong>Flux CD:</strong> Integrates seamlessly with Flagger, a progressive delivery tool that empowers you to implement advanced deployment strategies like canary analysis and blue/green deployments.</li></ul><p><strong>Choosing the Right Tool</strong></p><p>The optimal choice between Argo CD and Flux CD hinges on your specific requirements and preferences. Here’s a concise decision-making framework:</p><ul><li><strong>Select Argo CD if:</strong></li><li>You prioritize a user-friendly UI for managing deployments.</li><li>You extensively leverage existing tools like Helm and Kustomize.</li><li>You require granular control over deployments and rollbacks.</li><li><strong>Opt for Flux CD if:</strong></li><li>You’re comfortable with a CLI-driven approach.</li><li>You seek a highly automated and flexible solution.</li><li>You have the development resources to customize Flux CD using controllers and resources.</li></ul><p><strong>Conclusion</strong></p><p>Both Argo CD and Flux CD are powerful GitOps tools that can streamline your Kubernetes deployments. By carefully considering the factors outlined above, you can make an informed decision that aligns with your team’s needs and preferences, paving the way for efficient and scalable infrastructure management.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=dbe93b598c69" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Multiple Clusters Bootstrapping Using ArgoCD ApplicationSet and Helm]]></title>
            <link>https://awstip.com/multiple-cluster-bootstrapping-using-argocd-applicationset-edf5d4be9667?source=rss-9030a9a8dcc7------2</link>
            <guid isPermaLink="false">https://medium.com/p/edf5d4be9667</guid>
            <category><![CDATA[devops]]></category>
            <category><![CDATA[site-reliability-engineer]]></category>
            <category><![CDATA[aws]]></category>
            <category><![CDATA[kubernetes-cluster]]></category>
            <category><![CDATA[kubernetes]]></category>
            <dc:creator><![CDATA[Osakpolor Courage Ihensekhien]]></dc:creator>
            <pubDate>Tue, 16 May 2023 11:11:29 GMT</pubDate>
            <atom:updated>2025-10-12T05:37:08.457Z</atom:updated>
            <content:encoded><![CDATA[<p><strong>Multiple Clusters Bootstrapping Using ArgoCD ApplicationSet and Helm</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/835/0*6Ell-SdqSXjuUU37.png" /></figure><p>To optimize and prepare a cluster for use, essential tools like Prometheus, Grafana, metric server, and ingress nginx controller need to be installed. This process is known as cluster bootstrapping. Installing these applications manually can be time-consuming and repetitive, especially when dealing with multiple Kubernetes clusters in production environments or when setting up new clusters. However, using a GitOps tool called ArgoCD can streamline this process, saving you time and effort.</p><p>ArgoCD is a popular continuous delivery tool for Kubernetes applications that automates deployment management. While it is designed for managing applications on a single cluster, it can also be used to bootstrap multiple clusters using the ApplicationSet feature. This feature allows you to define a set of applications in a YAML file and apply them to multiple clusters simultaneously. It’s particularly useful when you have multiple clusters requiring the same applications during bootstrapping. In summary, the ApplicationSet controller in ArgoCD enhances application automation and facilitates efficient management of multiple Kubernetes clusters. It supports consistent and scalable deployments across various cluster environments by utilizing templates from different sources and enabling cluster multitenancy. For more details, refer to the documentation link <a href="https://argo-cd.readthedocs.io/en/stable/operator-manual/applicationset/"><strong><em>here</em></strong></a></p><p>To implement this effectively, we utilize ArgoCD generators. These generators play a vital role in producing parameters that are then used to fill in the template fields of the ApplicationSet resource. In the context of the ApplicationSet resource, generators are employed to populate the template fields with specific parameter values for each instance of an application. By evaluating the input data (such as the list of clusters), the generator generates a set of parameter values that are inserted into the template fields. This allows users to define a single template for a group of applications and automatically generate and apply unique parameter values for each application instance based on the input data. There are eight types of generators available, including list, git, cluster, matrix, merge, SCM provider, pull request, and cluster decision resource generator. For more detailed information, please refer to the official documentation <a href="https://argo-cd.readthedocs.io/en/stable/operator-manual/applicationset/Generators/"><strong><em>link</em></strong></a></p><p>For this post, we will be using the matrix generator which is used to combine the generated parameters of two different generators. In this exhibition, I will be combining two child generators; the git generator, and the cluster generator. The git generator will be used to watch the git repository and will scan and discover the directories under the specified path, and will deploy any specified application in the specified path, while the cluster generator will scan for all clusters added to and managed by argoCD. Both generators work together to deploy the applications in the specified path to all the clusters added to argoCD as indicated by the cluster generator.</p><p><strong>The practicals steps</strong></p><ol><li>Make sure you have ArgoCD installed in one of your clusters and the other clusters are also added to it and also make sure you have also install argoCD CLI on your PC.</li><li>Create the <em>applicationSet</em> manifest YAML file for the deployment as shown below</li></ol><pre>## DevOps K8 admin should apply this directly to the argocd namespace in the devops EKS cluster<br>apiVersion: argoproj.io/v1alpha1<br>kind: ApplicationSet<br>metadata:<br>  name: infra-addons<br>  namespace: argocd<br>spec:<br>  generators:<br>    # matrix &#39;parent&#39; generator<br>    - matrix:<br>        generators:<br>          # git generator, &#39;child&#39; #1<br>          - git:<br>              repoURL: https://github.com/my-username/example.git<br>              revision: master<br>              files:<br>                - path: &quot;cluster-addons-chart/infra-addons/&quot;<br>          # cluster generator, &#39;child&#39; #2<br>          - clusters:<br>              selector:<br>                matchLabels:<br>                  argocd.argoproj.io/secret-type: cluster<br>  template:<br>    metadata:<br>      name: &#39;{{component}}&#39;<br>    spec:<br>      project: &#39;{{project}}&#39;<br>      source:<br>        chart: &#39;{{component}}&#39;<br>        repoURL: &#39;{{repoURL}}&#39;<br>        targetRevision: &#39;{{version}}&#39;<br>        helm:<br>          values: |-<br>            {{values}}<br>      destination:<br>        server: &#39;{{server}}&#39;<br>        namespace: &#39;{{namespace}}&#39;<br><br>      syncPolicy:<br>        automated: <br>          prune: true <br>          selfHeal: true <br>          allowEmpty: false <br>        syncOptions: <br>          - Validate=false <br>          - CreateNamespace=true <br>          - PrunePropagationPolicy=foreground <br>          - PruneLast=true </pre><p>3. create a git directory as presented below</p><pre>.<br>├── addon-appset.yaml<br>├── cluster-addons-chart<br>    └── infra-addons<br>       ├── cluster-autoscaler.yaml<br>       ├── external-secrets.yaml<br>       ├── k8s-dashboard.yaml<br>       ├── metrics-server.yaml<br>       └── reloader.yaml</pre><p>Structure the repo according to the above tree or however you want it. just make sure that the specified path is accurately referenced in the applicationSet config above and also all the applications you want to deploy are located in the same path. To deploy the various applications I am using their helm chart if there are changes to be made to the values file this can be done as shown in the <em>cluster-autoscaler.yaml </em>below</p><pre>component: cluster-autoscaler<br>project: default<br>repoURL:  https://kubernetes.github.io/autoscaler<br>version: 9.15.0<br>namespace: kube-system<br>values: |-<br>  rbac:<br>    serviceAccount:<br>      annotations: <br>          eks.amazonaws.com/role-arn: arn:aws:iam::34343434343:role/AmazonEKSClusterAutoscalerRole<br>  extraArgs:<br>    skip-nodes-with-local-storage: false<br>    balance-similar-node-groups: true<br>    stderrthreshold: info</pre><p>To access the configurations for the other applications you can check it out <a href="https://github.com/CourageOI/cluster-bootstrapping"><strong><em>here</em></strong></a><strong><em>.</em></strong></p><p>4. When the above configurations have been done, log into argoCD with your admin username and password:</p><pre>argocd login argoserver.com --username admin --password $password</pre><p>5. Make sure your Kubernetes context is set to the cluster where the argoCD is installed. Then run the kubectl command below to apply this to the clusters.</p><pre>kubectl apply -f addon-appset.yaml -n argocd</pre><p>or if you are using the current version of argocd, you can use the argocd appset command as stated below</p><pre>argocd appset create addon-appset.yaml</pre><p>And that is it! this will initiate the deployment of the specified applications in the clusters added to argocd.<br>Whenever a new application is an application configuration is added to the specified git repository path i.e. <em>cluster-addons-chart/infra-addons </em>folder, the application will be automatically deployed to all clusters simultaneously.</p><p>Thanks for reading watch out for more on DevOps on this page</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=edf5d4be9667" width="1" height="1" alt=""><hr><p><a href="https://awstip.com/multiple-cluster-bootstrapping-using-argocd-applicationset-edf5d4be9667">Multiple Clusters Bootstrapping Using ArgoCD ApplicationSet and Helm</a> was originally published in <a href="https://awstip.com/">AWS Tip</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>