<?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 Elias Baya on Medium]]></title>
        <description><![CDATA[Stories by Elias Baya on Medium]]></description>
        <link>https://medium.com/@eliasbaya1223?source=rss-53b4f5dc2712------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*2WoGV2_nEqxni7JbgGXJ1Q.jpeg</url>
            <title>Stories by Elias Baya on Medium</title>
            <link>https://medium.com/@eliasbaya1223?source=rss-53b4f5dc2712------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sun, 06 Dec 2026 18:13:01 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@eliasbaya1223/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[Say Goodbye to Flutter Version Conflicts with FVM]]></title>
            <link>https://medium.com/@eliasbaya1223/say-goodbye-to-flutter-version-conflicts-with-fvm-30c7fa2c0e9f?source=rss-53b4f5dc2712------2</link>
            <guid isPermaLink="false">https://medium.com/p/30c7fa2c0e9f</guid>
            <dc:creator><![CDATA[Elias Baya]]></dc:creator>
            <pubDate>Wed, 19 Feb 2025 07:30:37 GMT</pubDate>
            <atom:updated>2025-02-19T07:30:37.750Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/686/1*q-nON6ZoK9NaWvrDAuG_Yg.jpeg" /></figure><p>If you’ve been working with Flutter long enough, you’ve probably experienced the nightmare of dependency conflicts when switching between projects. Flutter’s rapid evolution means new versions roll out frequently, and what worked fine in an old project might break completely when opened in a new environment with the latest Flutter version.</p><p>I’ve been there — spending hours upgrading dependencies, dealing with breaking changes, and sometimes even having to replace entire packages because they no longer worked. It’s frustrating, time-consuming, and not always a smooth ride.</p><p>Then I discovered <strong>FVM (Flutter Version Manager)</strong>, and everything changed.</p><h3>What is FVM?</h3><p>FVM is a tool that allows you to manage multiple Flutter versions effortlessly. Instead of relying on a single globally installed Flutter version, you can specify the exact version needed for each project. This means no more breaking dependencies, no more frustrating upgrades, and no more wasted hours debugging compatibility issues.</p><h3>Why Use FVM?</h3><p>Here are a few reasons why FVM is a game changer for Flutter developers:</p><ol><li><strong>Project-Specific Versions</strong> — Each Flutter project can run on its designated version, preventing unexpected conflicts.</li><li><strong>Seamless Switching</strong> — Switch between Flutter versions instantly without reinstalling anything.</li><li><strong>Team Consistency</strong> — Ensures all team members work with the same Flutter version, avoiding the infamous “It works on my machine” problem.</li><li><strong>Quick Setup on New Machines</strong> — No need to manually install an old Flutter version when revisiting a project.</li><li><strong>Global &amp; Local Versions</strong> — Set a default global Flutter version or a specific one per project.</li></ol><h3>How to Get Started with FVM</h3><p>If you’re ready to simplify your Flutter workflow, here’s how to set up FVM:</p><h4>1. Install FVM</h4><p>FVM can be installed via <strong>Homebrew</strong> (Mac/Linux) or <strong>Chocolatey</strong> (Windows):</p><pre>brew install fvm  # For Mac/Linux<br>choco install fvm  # For Windows</pre><p>Alternatively, you can install it using Dart:</p><pre>dart pub global activate fvm</pre><h4>2. Install a Specific Flutter Version</h4><p>Let’s say your project requires Flutter 3.7. You can install it with:</p><pre>fvm install 3.7.0</pre><h4>3. Set the Version for a Project</h4><p>Navigate to your Flutter project and run:</p><pre>fvm use 3.7.0</pre><p>This creates an .fvm/fvm_config.json file inside your project, ensuring the correct version is used.</p><h4>4. Running Flutter Commands with FVM</h4><p>Once FVM is set up, prefix your Flutter commands with fvm:</p><pre>fvm flutter doctor<br>fvm flutter run<br>fvm flutter build apk</pre><p>Or, you can set up your terminal to use the project’s FVM version automatically by adding this alias to your shell profile:</p><pre>alias flutter=&#39;fvm flutter&#39;</pre><h3>My Experience with FVM</h3><p>Since switching to FVM, I’ve had zero issues with dependency conflicts due to Flutter versions. I no longer fear opening an old project, and setting up a new environment is as simple as running fvm install for the required version.</p><p>If you’re working on multiple Flutter projects or collaborating with a team, I highly recommend integrating FVM into your workflow. It’s a simple tool that saves time, reduces frustration, and makes managing Flutter versions a breeze.</p><p>Are you using FVM already, or are you still manually managing Flutter versions? Let’s discuss in the comments!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=30c7fa2c0e9f" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[DevOps Project Transformation: From Code to Cloud-Native Deployment]]></title>
            <link>https://medium.com/@eliasbaya1223/devops-project-transformation-from-code-to-cloud-native-deployment-9d5386f39b08?source=rss-53b4f5dc2712------2</link>
            <guid isPermaLink="false">https://medium.com/p/9d5386f39b08</guid>
            <category><![CDATA[kubernetes]]></category>
            <category><![CDATA[helm]]></category>
            <category><![CDATA[ci-cd-pipeline]]></category>
            <category><![CDATA[devops]]></category>
            <dc:creator><![CDATA[Elias Baya]]></dc:creator>
            <pubDate>Thu, 06 Feb 2025 14:55:29 GMT</pubDate>
            <atom:updated>2025-02-06T14:55:29.272Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*UeXGW3oO4LKmBvpHpzQx-A.jpeg" /></figure><h3>Introduction</h3><p>In today’s rapidly evolving software landscape, transforming a traditional application into a cloud-native, DevOps-ready project is crucial for scalability, reliability, and efficient deployment. This guide walks through a comprehensive DevOps transformation process, leveraging modern tools and best practices.</p><h3>1. Containerization: Building a Secure and Efficient Docker Image</h3><h3>Project Preparation</h3><ul><li>Build and understand the project locally</li><li>Identify dependencies and runtime requirements</li><li>Create a multi-stage Dockerfile for optimization</li></ul><h4>Example Multi-Stage Dockerfile</h4><pre># This is the Dockerfile that we will use to build the image<br># and run the container<br><br># Start with a base image<br>FROM golang:1.21 as base<br><br># Set the working directory inside the container<br>WORKDIR /app<br><br># Copy the go.mod and go.sum files to the working directory<br>COPY go.mod ./<br><br># Download all the dependencies<br>RUN go mod download<br><br># Copy the source code to the working directory<br>COPY . .<br><br># Build the application<br>RUN go build -o main .<br><br>#######################################################<br># Reduce the image size using multi-stage builds<br># We will use a distroless image to run the application<br>FROM gcr.io/distroless/base<br><br># Copy the binary from the previous stage<br>COPY --from=base /app/main .<br><br># Copy the static files from the previous stage<br>COPY --from=base /app/static ./static<br><br># Expose the port on which the application will run<br>EXPOSE 8080<br><br># Command to run the application<br>CMD [&quot;./main&quot;]</pre><h3>Docker Image Workflow</h3><ul><li>Build the Docker image: docker build -t myproject:v1 .</li><li>Run locally: docker run -p 8080:8080 myproject:v1</li><li>Push to Docker Hub:</li></ul><pre>docker login<br>docker tag myproject:v1 yourusername/myproject:v1<br>docker push yourusername/myproject:v1</pre><h3>2. Kubernetes Manifests: Deployment Strategy</h3><h3>Key Kubernetes Resources</h3><ul><li>Deployment</li><li>Service</li><li>Ingress</li><li>ConfigMaps</li><li>Secrets</li></ul><h4>Example Deployment Manifest</h4><pre># This is a sample deployment manifest file for a simple web application.<br>apiVersion: apps/v1<br>kind: Deployment<br>metadata:<br>  name: go-web-app<br>  labels:<br>    app: go-web-app<br>spec:<br>  replicas: 1<br>  selector:<br>    matchLabels:<br>      app: go-web-app<br>  template:<br>    metadata:<br>      labels:<br>        app: go-web-app<br>    spec:<br>      containers:<br>      - name: go-web-app<br>        image: &lt;docker-user-name&gt;/go-web-app<br>        ports:<br>        - containerPort: 8080</pre><h3>3. Creating an EKS Cluster</h3><h3>Prerequisites</h3><ul><li>AWS CLI</li><li>eksctl</li><li>kubectl</li></ul><h3>Cluster Creation</h3><pre># Create EKS Cluster<br>eksctl create cluster \<br>  --name myproject-cluster \<br>  --region us-west-2 \<br>  --nodegroup-name standard-workers \<br>  --nodes 3 \<br>  --nodes-min 1 \<br>  --nodes-max 4</pre><h3>4. Helm Chart: Simplified Deployment</h3><h3>Create Helm Chart</h3><pre>helm create myproject-chart</pre><p>Customize values.yaml</p><pre>image:<br>  repository: yourusername/myproject<br>  tag: v1<br>  pullPolicy: IfNotPresent<br><br>replicaCount: 3<br><br>service:<br>  type: NodePort</pre><h3>5. CI/CD with GitHub Actions and ArgoCD</h3><h3>GitHub Actions Workflow</h3><pre># CICD using GitHub actions<br><br>name: CI/CD<br><br># Exclude the workflow to run on changes to the helm chart<br>on:<br>  push:<br>    branches:<br>      - main<br>    paths-ignore:<br>      - &#39;helm/**&#39;<br>      - &#39;k8s/**&#39;<br>      - &#39;README.md&#39;<br><br>jobs:<br><br>  build:<br>    runs-on: ubuntu-latest<br><br>    steps:<br>    - name: Checkout repository<br>      uses: actions/checkout@v4<br><br>    - name: Set up Go 1.22<br>      uses: actions/setup-go@v2<br>      with:<br>        go-version: 1.22<br><br>    - name: Build<br>      run: go build -o go-web-app<br><br>    - name: Test<br>      run: go test ./...<br>  <br>  code-quality:<br>    runs-on: ubuntu-latest<br><br>    steps:<br>    - name: Checkout repository<br>      uses: actions/checkout@v4<br><br>    - name: Run golangci-lint<br>      uses: golangci/golangci-lint-action@v6<br>      with:<br>        version: v1.56.2<br>  <br>  push:<br>    runs-on: ubuntu-latest<br><br>    needs: build<br><br>    steps:<br>    - name: Checkout repository<br>      uses: actions/checkout@v4<br><br>    - name: Set up Docker Buildx<br>      uses: docker/setup-buildx-action@v1<br><br>    - name: Login to DockerHub<br>      uses: docker/login-action@v3<br>      with:<br>        username: ${{ secrets.DOCKERHUB_USERNAME }}<br>        password: ${{ secrets.DOCKERHUB_TOKEN }}<br><br>    - name: Build and Push action<br>      uses: docker/build-push-action@v6<br>      with:<br>        context: .<br>        file: ./Dockerfile<br>        push: true<br>        tags: ${{ secrets.DOCKERHUB_USERNAME }}/go-web-app:${{github.run_id}}<br><br>  update-newtag-in-helm-chart:<br>    runs-on: ubuntu-latest<br><br>    needs: push<br><br>    steps:<br>    - name: Checkout repository<br>      uses: actions/checkout@v4<br>      with:<br>        token: ${{ secrets.TOKEN }}<br><br>    - name: Update tag in Helm chart<br>      run: |<br>        sed -i &#39;s/tag: .*/tag: &quot;${{github.run_id}}&quot;/&#39; helm/go-web-app-chart/values.yaml<br><br>    - name: Commit and push changes<br>      run: |<br>        git config --global user.email &quot;elias@gmail.com&quot;<br>        git config --global user.name &quot;Elias Baya&quot;<br>        git add helm/go-web-app-chart/values.yaml<br>        git commit -m &quot;Update tag in Helm chart&quot;<br>        git push<br><br></pre><h3>ArgoCD Configuration</h3><ul><li>Install ArgoCD in Kubernetes</li></ul><pre>kubectl create namespace argocd<br>kubectl apply -n argocd -f https://raw.githubusercontent.com/argoproj/argo-cd/stable/manifests/install.yaml</pre><ul><li>Create an Application resource pointing to your Helm chart repository</li></ul><h3>Conclusion</h3><p>By following these steps, you’ve transformed a traditional application into a cloud-native, DevOps-ready project with automated deployment, scalability, and management.</p><p><strong>Pro Tips:</strong></p><ul><li>Always use multi-stage builds</li><li>Implement robust monitoring and logging</li><li>Continuously optimize your CI/CD pipeline</li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=9d5386f39b08" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Streamlining Kubernetes Deployments with ArgoCD]]></title>
            <link>https://medium.com/@eliasbaya1223/streamlining-kubernetes-deployments-with-argocd-f608a0b694eb?source=rss-53b4f5dc2712------2</link>
            <guid isPermaLink="false">https://medium.com/p/f608a0b694eb</guid>
            <category><![CDATA[kubernetes]]></category>
            <category><![CDATA[gitops]]></category>
            <category><![CDATA[argo-cd]]></category>
            <dc:creator><![CDATA[Elias Baya]]></dc:creator>
            <pubDate>Wed, 29 Jan 2025 14:07:55 GMT</pubDate>
            <atom:updated>2025-01-29T14:07:55.653Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1002/1*4nMq5qwUgtZZ3dyYqFQC0Q.png" /></figure><p>As Kubernetes becomes the standard for containerized application orchestration, managing deployments efficiently is more important than ever. ArgoCD, a powerful GitOps continuous delivery tool, offers a seamless way to automate and streamline Kubernetes deployments. In this article, we will explore how to use ArgoCD to deploy applications to a Kubernetes cluster running on Minikube, a tool for running Kubernetes clusters locally.</p><h3>What is GitOps and Why is ArgoCD Important?</h3><p>GitOps is an operational framework that uses Git repositories as the source of truth for managing Kubernetes configurations and deployments. With GitOps, any change to the application or environment is made by pushing code changes to a Git repository, which triggers ArgoCD to apply those changes to the Kubernetes cluster.</p><p>ArgoCD simplifies the deployment process by providing:</p><ul><li><strong>Declarative configuration management</strong>: All application state and environment settings are described in Git, ensuring consistency across environments.</li><li><strong>Automated synchronization</strong>: ArgoCD automatically syncs the Kubernetes cluster with the desired state in the Git repository.</li><li><strong>Rollback capabilities</strong>: In case of issues, ArgoCD makes it easy to roll back to a previous application state.</li></ul><h3>Setting Up Minikube and Installing ArgoCD</h3><p>In this tutorial, we will use Minikube to simulate a real Kubernetes environment locally. This setup is ideal for developers who want to test ArgoCD in a controlled, low-cost environment.</p><h4>Step 1: Setting Up Minikube</h4><p>First, ensure you have Minikube installed on your machine. If you don’t have it yet, follow the Minikube installation guide for your OS.</p><p>Once installed, start your Minikube cluster with the following command:</p><pre>minikube start</pre><p>This will set up a Kubernetes cluster locally, which you can interact with using kubectl.</p><h4>Step 2: Installing ArgoCD on Minikube</h4><p>Now, we’ll install ArgoCD in the Minikube cluster. First, download the ArgoCD installation YAML file:</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>Wait a few moments for the ArgoCD components to be deployed.</p><p>To access the ArgoCD API server, port-forward to the ArgoCD server:</p><pre>kubectl port-forward svc/argocd-server -n argocd 8080:443</pre><p>Now, you can access the ArgoCD web UI by navigating to http://localhost:8080 in your browser. The default login credentials are:</p><ul><li><strong>Username</strong>: admin</li><li><strong>Password</strong>: Retrieve it with this command:</li></ul><pre>kubectl get secret argocd-initial-admin-secret -n argocd -o jsonpath=&#39;{.data.password}&#39; | base64 -d; echo</pre><h3>Deploying an Application with ArgoCD</h3><p>ArgoCD works by syncing Kubernetes applications from a Git repository to your cluster. Here, we’ll walk through the process of setting up ArgoCD to deploy a sample application.</p><h4>Step 3: Manual Deployment of application.yaml</h4><p>The first step is to manually apply the application.yaml file, which defines the application configuration in ArgoCD. This is the only manual deployment step required. In the application.yaml, we define the Git repository where ArgoCD will look for Kubernetes manifests.</p><p>Here’s an example of how to deploy the application.yaml: <a href="https://github.com/ekbaya/argocd/blob/main/application.yaml">https://github.com/ekbaya/argocd/blob/main/application.yaml</a></p><pre>kubectl apply -f application.yaml</pre><p>This will create an ArgoCD Application object that links your Git repository to the Minikube Kubernetes cluster.</p><h4>Step 4: Syncing the Application with Git Repository</h4><p>Once the application.yaml is applied, go to the ArgoCD web UI (http://localhost:8080). You’ll see your application listed there.</p><p>ArgoCD will automatically begin syncing the application based on the manifests in your Git repository. The synchronization status will be updated in the UI, and you can monitor the deployment in real-time.</p><h4>Step 5: Viewing &amp; Managing the Application</h4><p>With your application now deployed, you can manage it directly from the ArgoCD UI. Here are some key features:</p><ul><li><strong>Sync Status</strong>: View whether the application is in sync with the Git repository.</li><li><strong>Logs</strong>: View application logs and troubleshoot issues directly from the UI.</li><li><strong>Rollback</strong>: In case of issues, you can easily rollback to a previous version of your application.</li></ul><p>ArgoCD will continuously monitor your Git repository for changes, automatically syncing the Kubernetes cluster to reflect any updates.</p><h3>GitOps Benefits with ArgoCD</h3><p>By using ArgoCD for Kubernetes deployments, you’re adopting the GitOps methodology, which provides several advantages:</p><ul><li><strong>Automation</strong>: Application changes are automatically deployed when you push them to Git, eliminating manual steps.</li><li><strong>Version Control</strong>: Your entire application deployment history is tracked in Git, allowing you to easily review changes and roll back when necessary.</li><li><strong>Declarative Configuration</strong>: The desired state of your application is always stored in Git, ensuring consistency across environments.</li><li><strong>Reduced Errors</strong>: With ArgoCD automating the deployment process, you reduce human error and improve deployment consistency.</li></ul><h3>Conclusion</h3><p>ArgoCD simplifies Kubernetes deployments by automating the sync process between your Git repository and Kubernetes cluster. Using Minikube in this tutorial, we showed how easy it is to set up ArgoCD and deploy applications using GitOps. With ArgoCD, you can manage your Kubernetes applications more efficiently, securely, and with less manual intervention.</p><p>For the full set of deployment manifests and resources, visit my GitHub repository at <a href="https://github.com/ekbaya/argocd">github.com/ekbaya/argocd</a>.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f608a0b694eb" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Supercharging Kubernetes Management with k9s ]]></title>
            <link>https://medium.com/@eliasbaya1223/supercharging-kubernetes-management-with-k9s-f9961771e979?source=rss-53b4f5dc2712------2</link>
            <guid isPermaLink="false">https://medium.com/p/f9961771e979</guid>
            <dc:creator><![CDATA[Elias Baya]]></dc:creator>
            <pubDate>Wed, 29 Jan 2025 11:58:16 GMT</pubDate>
            <atom:updated>2025-01-29T11:58:16.731Z</atom:updated>
            <content:encoded><![CDATA[<p>Managing Kubernetes clusters from the command line can be overwhelming, but k9s simplifies the experience by providing a powerful terminal-based UI. If you&#39;re working with Kubernetes, k9s is a game-changer!</p><h3>🔥 What is k9s?</h3><p>k9s is a command-line interface (CLI) that provides real-time visibility and interaction with your Kubernetes clusters. It streamlines everyday tasks such as inspecting pods, editing resources, port-forwarding, and running commands inside containers—all without leaving the terminal.</p><h3>📌 Installation</h3><p>To get started with k9s, install it by following the official documentation: 👉 <a href="https://k9scli.io/">k9s Installation Guide</a></p><p>For Kubernetes, I’m using <strong>Minikube</strong>, which you can install from: 👉 <a href="https://minikube.sigs.k8s.io/docs/start/">Minikube Installation Guide</a></p><p>Once installed, simply run:</p><pre>k9s</pre><p>and you’re ready to explore!</p><h3>🎯 Key Features</h3><h3>1️⃣ Navigating Your Clusters</h3><p>When you launch k9s, it automatically connects to your current Kubernetes context. You can switch between contexts using:</p><pre>:context</pre><p>Or list all contexts with :contexts and select the one you need.</p><h3>2️⃣ Searching and Filtering Resources</h3><p>Quickly find what you need using:</p><ul><li>/ to <strong>search</strong> resources</li><li>: to <strong>select</strong> a specific resource type, e.g., :pods</li></ul><h3>3️⃣ Managing Services and Namespaces</h3><ul><li>List services with :svc</li><li>Navigate between namespaces by pressing the <strong>number key</strong> assigned to each (e.g., 2 for the database namespace)</li></ul><h3>4️⃣ Editing and Inspecting Resources</h3><ul><li>e - Edit a resource</li><li>y - View the YAML definition</li><li>l - View logs for a pod</li><li>&lt;Shift+F&gt; - <strong>Port-forward a service or pod</strong></li></ul><h3>5️⃣ Shell Access to Pods</h3><p>Need to debug a running container? Simply select a pod and press:</p><pre>s</pre><p>This opens an interactive shell inside the pod!</p><h3>📂 Example Deployments</h3><p>I have prepared Kubernetes manifests for deploying services, which you can find on my GitHub: 👉 <a href="https://github.com/ekbaya/k9s">GitHub Repo: k9s Resources</a></p><h3>🚀 Why You Should Use k9s</h3><p>✅ <strong>Faster navigation</strong> through Kubernetes resources ✅ <strong>One-stop solution</strong> for logs, YAML editing, and pod management ✅ <strong>Improves efficiency</strong> with built-in shortcuts and real-time updates</p><h3>💡 Conclusion</h3><p>If you’re managing Kubernetes clusters, k9s is a must-have tool. It drastically improves workflow efficiency and makes Kubernetes more accessible from the terminal. Try it out and let me know your experience in the comments!</p><p>#Kubernetes #k9s #DevOps #CloudComputing #K8s #Automation</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f9961771e979" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>