<?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 Berkan Osmanli on Medium]]></title>
        <description><![CDATA[Stories by Berkan Osmanli on Medium]]></description>
        <link>https://medium.com/@berkanosmanli?source=rss-11df90dcdbd------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*AgGgU1lPaAW_Q1tg5Eq-6Q.jpeg</url>
            <title>Stories by Berkan Osmanli on Medium</title>
            <link>https://medium.com/@berkanosmanli?source=rss-11df90dcdbd------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Mon, 23 Nov 2026 21:49:25 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@berkanosmanli/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[How I Passed the KCNA Exam: From 73 to 83 on My Second Attempt]]></title>
            <link>https://medium.com/@berkanosmanli/how-i-passed-the-kcna-exam-from-73-to-83-on-my-second-attempt-d073c24500d5?source=rss-11df90dcdbd------2</link>
            <guid isPermaLink="false">https://medium.com/p/d073c24500d5</guid>
            <category><![CDATA[kubernetes]]></category>
            <category><![CDATA[linux]]></category>
            <category><![CDATA[cncf]]></category>
            <dc:creator><![CDATA[Berkan Osmanli]]></dc:creator>
            <pubDate>Sun, 15 Nov 2026 14:59:09 GMT</pubDate>
            <atom:updated>2026-11-15T14:59:09.082Z</atom:updated>
            <content:encoded><![CDATA[<p><em>My personal KCNA certification journey, the resources I used, 700+ practice questions, and what I learned from failing my first attempt.</em></p><p>In November 2026, I passed the <strong>Kubernetes and Cloud Native Associate (KCNA)</strong> certification exam with a score of <strong>83/100</strong>.</p><p>But there is a story behind that result.</p><p>On my first attempt, I scored <strong>73/100</strong>, just below the required passing score of 75.</p><p>It was frustrating, especially because I was already working as a DevOps Engineer and had hands-on experience with Kubernetes, cloud infrastructure, and containerized applications.</p><p>After the first attempt, I realized something important:</p><p><strong>Knowing Kubernetes and passing a Kubernetes certification exam are not exactly the same thing.</strong></p><p>In this article, I want to share the resources I used, how I prepared, what I struggled with, and what I changed between my first and second attempts.</p><p>Hopefully, my experience will help anyone preparing for the KCNA exam.</p><h3>1. What Is the KCNA Exam?</h3><p>The Kubernetes and Cloud Native Associate (KCNA) is an entry-level, vendor-neutral certification offered by the Linux Foundation and the Cloud Native Computing Foundation (CNCF).</p><p>Unlike the Certified Kubernetes Administrator (CKA), which is a hands-on, performance-based exam, KCNA focuses on conceptual knowledge.</p><p>The exam consists of:</p><ul><li><strong>60 multiple-choice questions</strong></li><li><strong>90 minutes</strong></li><li><strong>75% passing score</strong></li><li><strong>Online, proctored examination</strong></li><li><strong>No hands-on terminal tasks</strong></li></ul><p>The current exam curriculum covers four main domains:</p><p>Kubernetes Fundamentals 44%</p><p>Container Orchestration 28%</p><p>Cloud Native Application Delivery 16%</p><p>Cloud Native Architecture 12%</p><p>You can find the official exam details here:</p><p><a href="https://training.linuxfoundation.org/certification/kubernetes-cloud-native-associate/">KCNA — Linux Foundation</a></p><p>Although KCNA is considered a foundational certification, don’t underestimate it.</p><p>Some questions are straightforward, but others require a clear understanding of the differences between closely related Kubernetes concepts.</p><p>And that was exactly where I struggled.</p><h3>2. My Background Before Taking KCNA</h3><p>I work in DevOps and cloud engineering, primarily with technologies such as:</p><ul><li>Kubernetes (AKS, EKS)</li><li>Docker and containerized applications</li><li>AWS and Microsoft Azure</li><li>CI/CD pipelines</li><li>Helm and Kubernetes deployments</li><li>Monitoring and observability tools</li><li>Infrastructure as Code</li></ul><p>Because of this experience, I was already familiar with Pods, Deployments, Services, Ingress, and many other Kubernetes components.</p><p>However, KCNA covers more than daily Kubernetes operations.</p><p>It also tests knowledge of the broader cloud-native ecosystem, including CNCF governance, container runtimes, GitOps, security principles, scheduling, and observability.</p><p>I discovered that working with Kubernetes does not automatically mean you remember every theoretical detail.</p><p>So I decided to combine structured learning with extensive practice exams.</p><h3>3. The Resources I Used to Prepare</h3><p>I used several resources during my preparation. Some helped me understand the concepts, while others helped me get comfortable with exam-style questions.</p><h3>Resource #1: GoldenKube — My Most-Used Practice Platform</h3><p><strong>Website:</strong> <a href="https://goldenkube.dev/app/exams/kcna">GoldenKube KCNA Practice Exams</a></p><p>GoldenKube became one of the most important parts of my preparation.</p><p>I completed approximately <strong>600–700 practice question attempts</strong> on the platform, including repeated questions and mock exams.</p><p>One of my best mock exam results was:</p><p><strong>59 correct answers out of 60 questions.</strong></p><p>What I liked about GoldenKube was the opportunity to repeatedly test my knowledge and identify topics that needed more attention.</p><p>The questions helped me become familiar with concepts such as:</p><ul><li>Kubernetes components and architecture</li><li>Container runtimes</li><li>Kubernetes RBAC</li><li>Scheduling and node selection</li><li>Networking and storage</li><li>Observability</li><li>CNCF projects and cloud-native principles</li></ul><p>Personally, I found many of the practice questions relevant to the concepts tested in the real exam.</p><p>However, one important warning:</p><p><strong>Don’t just memorize the correct answers. Understand why the other options are incorrect.</strong></p><p>After solving hundreds of questions, it becomes easy to recognize familiar answer patterns.</p><p>That can create a false sense of confidence.</p><p>The actual exam may ask about the same concept using a different scenario or different wording.</p><p>I learned that lesson during my first attempt.</p><h3>Resource #2: Kubernetes Certified (KCNA) + Hands On Labs + Quizzes</h3><p><strong>Instructor:</strong> James Spurin / DiveInto Training</p><p><a href="https://www.udemy.com/course/dive-into-cloud-native-containers-kubernetes-and-the-kcna/">Udemy — Kubernetes Certified (KCNA) + Hands On Labs + Quizzes</a></p><p>This course was one of my learning resources for building and reviewing Kubernetes and cloud-native knowledge.</p><p>It covers a broad range of topics, including:</p><ul><li>Containers and Docker</li><li>Kubernetes fundamentals</li><li>Cloud-native architecture</li><li>CI/CD and GitOps</li><li>Observability</li><li>Kubernetes security concepts</li></ul><p>The course also includes hands-on labs and quizzes, which can be useful for reinforcing the material.</p><p>For someone completely new to Kubernetes, I believe having a structured course is a good starting point.</p><p>However, my own study preference changed as I progressed.</p><p>After spending time watching educational videos, I realized I was learning more efficiently through <strong>short technical explanations followed by practice questions</strong>.</p><p>Instead of repeatedly watching long videos, I started focusing on the concepts I didn’t fully understand.</p><h3>Resource #3: Kubernetes and Cloud Native Certified (KCNA) Practice Exams</h3><p><strong>Instructor:</strong> James Spurin</p><p><a href="https://www.udemy.com/course/dive-into-kubernetes-and-cloud-native-associate-kcna-practice-exams/">Udemy — KCNA Practice Exams</a></p><p>This course provides dedicated KCNA practice exams.</p><p>I included practice exams in my preparation because I wanted to get used to answering technical questions in English under exam-like conditions.</p><p>One of the biggest advantages of practice exams is that they reveal weaknesses you might not notice while watching videos.</p><p>For example, you may understand how Kubernetes scheduling works but still confuse:</p><ul><li>nodeSelector and node affinity</li><li>Role and ClusterRole</li><li>RoleBinding and ClusterRoleBinding</li><li>Container runtimes and Kubernetes components</li></ul><p>Practice exams are a useful way to discover these gaps before the real examination.</p><h3>Resource #4: Kubernetes and Cloud Native Associate Practice Exams</h3><p><strong>Instructor:</strong> Bryan Krausen</p><p><a href="https://www.udemy.com/course/kcna-exams/">Udemy — KCNA Practice Exams</a></p><p>I also used this collection of practice exams as part of my preparation.</p><p>Solving questions from different sources was valuable because I didn’t want to become dependent on the wording of a single question bank.</p><p>Different practice materials can explain the same topic from different perspectives.</p><p>My advice is to avoid depending entirely on one platform.</p><p>Use multiple sources and compare how they test similar concepts.</p><h3>4. The Topics I Struggled With the Most</h3><p>Although I had professional Kubernetes experience, several topics required additional revision.</p><h3>RBAC: Role vs. ClusterRole</h3><p>This was one of the areas I spent extra time reviewing.</p><p>The most important distinction is understanding the scope of permissions.</p><ul><li><strong>Role:</strong> Defines permissions within a namespace.</li><li><strong>ClusterRole:</strong> Defines permissions that can apply cluster-wide and can also be used for namespaced resources.</li><li><strong>RoleBinding:</strong> Grants permissions within a specific namespace.</li><li><strong>ClusterRoleBinding:</strong> Grants permissions across the cluster.</li></ul><p>An important detail is that a RoleBinding can reference a ClusterRole while granting its permissions only within the RoleBinding’s namespace.</p><p>Understanding details like this is much more useful than simply memorizing definitions.</p><h3>Kubernetes Scheduling: nodeSelector, Affinity, and Taints</h3><p>Another topic I reviewed repeatedly was Kubernetes scheduling.</p><p>For example:</p><pre>spec:<br>  nodeSelector:<br>    disk: ssd</pre><p>This configuration tells Kubernetes to schedule the Pod onto a node with the matching disk=ssd label.</p><p>But what about node affinity?</p><p>What about taints and tolerations?</p><p>These concepts are related but solve different problems.</p><ul><li><strong>nodeSelector:</strong> Simple node label matching.</li><li><strong>Node affinity:</strong> More expressive node selection rules.</li><li><strong>Pod affinity/anti-affinity:</strong> Scheduling based on other Pods.</li><li><strong>Taints and tolerations:</strong> Controlling which Pods are allowed onto particular nodes.</li></ul><p>Knowing when to use each mechanism is essential.</p><h3>Container Runtimes: containerd, CRI-O, and runc</h3><p>I also spent time distinguishing the responsibilities of different components.</p><p>For example:</p><ul><li><strong>kubelet</strong> is the node agent responsible for ensuring containers run as expected.</li><li><strong>containerd</strong> and <strong>CRI-O</strong> are container runtimes used with Kubernetes.</li><li><strong>runc</strong> is a low-level OCI container runtime.</li><li><strong>CRI</strong> defines the interface between Kubernetes and compatible container runtimes.</li></ul><p>These names can be confusing when they appear together in multiple-choice questions.</p><h3>Networking, Storage, and CNCF Concepts</h3><p>Some of my other revision topics included:</p><ul><li>Ingress vs. NetworkPolicy</li><li>PersistentVolumeClaim vs. StorageClass</li><li>CNI vs. CSI vs. CRI</li><li>GitOps and CI/CD</li><li>Prometheus and observability</li><li>CNCF community and governance</li><li>Kubernetes API extensions and CRDs</li></ul><p>These distinctions may seem small, but understanding them can make a real difference when choosing between two plausible answers.</p><h3>5. My First KCNA Attempt: 73/100</h3><p>My first official KCNA exam was on <strong>November 9, 2026</strong>.</p><p>I felt relatively prepared.</p><p>I had already solved hundreds of practice questions, reviewed the important topics, and achieved good scores in mock exams.</p><p>However, the actual exam felt different.</p><p>My biggest problem wasn’t that I had never seen the concepts before.</p><p>It was that <strong>I frequently found myself choosing between two answers that both seemed reasonable.</strong></p><p>Some questions were easy.</p><p>Others required more careful interpretation of the question and its wording.</p><p>Since English isn’t my native language, I also had to pay extra attention to the way certain questions were phrased.</p><p>Words like:</p><ul><li>MOST appropriate</li><li>BEST solution</li><li>NOT</li><li>EXCEPT</li></ul><p>can completely change what a question is asking.</p><p>When I received my result, I had scored 73.</p><p>The passing threshold was 75.</p><p>I was extremely close, but I hadn’t passed.</p><p>It was disappointing.</p><p>Still, the result also showed me that I didn’t need to start learning Kubernetes from scratch.</p><p>I needed to improve my decision-making on ambiguous questions and strengthen a few specific areas.</p><h3>6. What I Changed Before My Second Attempt</h3><p>After my first attempt, I changed my preparation strategy.</p><p>Instead of trying to cover everything again, I focused on the topics that caused confusion.</p><p><strong>First, I reviewed my weakest concepts.</strong></p><p>I returned to RBAC, Kubernetes scheduling, container runtimes, networking, and CNCF concepts.</p><p><strong>Second, I practiced more targeted questions.</strong></p><p>I also used ChatGPT to generate additional KCNA-style questions based on the topics I struggled with.</p><p>Rather than asking for random questions, I requested questions targeting specific distinctions, such as Role vs. ClusterRole or nodeSelector vs. affinity.</p><p>In one series of additional practice sessions, I scored <strong>72 out of 80 questions (90%)</strong>.</p><p>That helped me evaluate my understanding beyond repeatedly answering the same questions.</p><p><strong>Third, I focused more on eliminating incorrect answers.</strong></p><p>On the real exam, recognizing the correct concept is only part of the challenge.</p><p>Sometimes you need to understand why the other options do not fit the scenario.</p><p>I made this a central part of my revision.</p><p>Finally, I stopped trying to consume endless learning materials.</p><p>At that point, more videos weren’t necessarily going to help me.</p><p>I needed focused revision, active recall, and confidence in the concepts I already knew.</p><h3>7. My Second KCNA Attempt: 83/100 — Passed!</h3><p>On my second attempt, I passed the KCNA exam with a score of <strong>83/100</strong>.</p><p>My results were:</p><p>AttemptScoreResultFirst attempt73/100FailedSecond attempt83/100Passed</p><p>I improved by <strong>10 points</strong>.</p><p>The biggest difference wasn’t learning hundreds of new Kubernetes concepts.</p><p>It was improving my understanding of the topics I already knew and becoming more comfortable with the exam format.</p><p>Passing the exam was a great feeling, especially after coming so close on my first attempt.</p><p>It also reminded me that professional experience, theory, and examination skills are three different things that need to work together.</p><h3>8. My Advice for Anyone Preparing for KCNA</h3><p>If I were starting my KCNA preparation again, these would be my recommendations.</p><p><strong>1. Start with the official curriculum.</strong></p><p>Understand the exam domains and their weights before choosing your study materials.</p><p><strong>2. Learn the fundamentals, not just the answers.</strong></p><p>Don’t rely entirely on memorizing practice exam questions.</p><p>Make sure you understand the underlying Kubernetes concepts.</p><p><strong>3. Solve plenty of practice questions.</strong></p><p>GoldenKube and the Udemy practice exams were valuable parts of my preparation.</p><p>But quality matters more than simply reaching a high question count.</p><p><strong>4. Review the explanations for incorrect answers.</strong></p><p>Understanding why an answer is wrong can be just as important as knowing why another answer is correct.</p><p><strong>5. Focus on similar Kubernetes concepts.</strong></p><p>Spend additional time on topics such as RBAC, scheduling, container runtimes, networking, and storage.</p><p>Many mistakes come from confusing technologies that appear to solve similar problems.</p><p><strong>6. Pay attention to English question wording.</strong></p><p>Don’t rush through a question simply because you recognize the technical keywords.</p><p>Read what the question is actually asking.</p><p><strong>7. Don’t underestimate the exam.</strong></p><p>KCNA is foundational, but that doesn’t mean every question is obvious.</p><p>And finally:</p><p><strong>8. If you fail, use the experience to improve.</strong></p><p>My first score was 73.</p><p>My second score was 83.</p><p>The first attempt was disappointing, but it helped me identify exactly what I needed to work on.</p><h3>9. Final Thoughts</h3><p>My KCNA journey taught me that preparation isn’t just about watching courses or completing hundreds of practice questions.</p><p>It’s about understanding the concepts, recognizing your weaknesses, and continuously improving.</p><p>For me, the combination of structured learning, GoldenKube practice exams, Udemy question banks, targeted revision, and additional ChatGPT-generated quizzes worked well.</p><p>If you’re preparing for the KCNA exam, my biggest recommendation is simple:</p><p><strong>Practice consistently, understand the reasoning behind each answer, and don’t let a failed attempt define your abilities.</strong></p><p>I started with 73.</p><p>I finished with 83.</p><p>And now, I’m officially KCNA certified!</p><p>My next certification goal is <strong>Kubernetes and Cloud Native Security Associate (KCSA)</strong>, followed by further Kubernetes certifications.</p><p>Thanks for reading, and good luck with your KCNA preparation!</p><p><em>Note: This article reflects my personal preparation experience. The resources mentioned are independent study materials, not official exam questions. Always verify the latest curriculum and exam policies through the Linux Foundation.</em></p><p><strong>Tags:</strong> Kubernetes · KCNA · DevOps · Cloud Native · Certification</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d073c24500d5" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Building a SLA Monitoring System with Uptime Kuma, Prometheus and Grafana]]></title>
            <link>https://medium.com/@berkanosmanli/building-a-sla-monitoring-system-with-uptime-kuma-prometheus-and-grafana-d4ddec901ef2?source=rss-11df90dcdbd------2</link>
            <guid isPermaLink="false">https://medium.com/p/d4ddec901ef2</guid>
            <category><![CDATA[grafana]]></category>
            <category><![CDATA[monitoring]]></category>
            <category><![CDATA[prometheus]]></category>
            <category><![CDATA[sla]]></category>
            <category><![CDATA[uptime-kuma]]></category>
            <dc:creator><![CDATA[Berkan Osmanli]]></dc:creator>
            <pubDate>Tue, 03 Mar 2026 00:17:02 GMT</pubDate>
            <atom:updated>2026-03-03T00:17:02.907Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*FBsyybLI8DqiXXftBwgUgA.png" /></figure><h3>Introduction</h3><p>When you promise your customers a 99.5% annual SLA, you need more than a simple uptime check.</p><p>You need:</p><ul><li>Continuous monitoring</li><li>Historical metric storage</li><li>Accurate SLA calculation</li><li>Transparent visualization</li></ul><p>In this article, I’ll show how I built a <strong>fully open-source SLA monitoring stack</strong> using:</p><ul><li><strong>Uptime Kuma</strong> (Active monitoring)</li><li><strong>Prometheus</strong> (Metrics collection)</li><li><strong>Grafana</strong> (SLA visualization)</li></ul><p>No SaaS. No vendor lock-in. Fully self-hosted.</p><h3>🏗 Architecture</h3><p>The architecture is simple but powerful:</p><blockquote>Uptime Kuma → Prometheus → Grafana → Public SLA Dashboard</blockquote><ul><li><strong>Uptime Kuma</strong> checks services (HTTP, TCP, Ping, SSL, etc.)</li><li><strong>Prometheus</strong> scrapes metrics from Kuma</li><li><strong>Grafana</strong> calculates and visualizes SLA</li></ul><h3>Step 1 — Install Uptime Kuma</h3><p>I deployed Uptime Kuma using Docker:</p><pre>docker run -d \<br>  --name uptime-kuma \<br>  -p 3001:3001 \<br>  louislam/uptime-kuma</pre><p>After installation, I configured monitors for:</p><ul><li>Backend APIs</li><li>Frontend apps</li><li>Gateways</li><li>Internal services</li></ul><p>Each monitor continuously tracks availability and response time.</p><h3>Step 2— Generate an API Key in Uptime Kuma</h3><p>Before Prometheus can scrape metrics, we must authenticate.</p><p>Uptime Kuma exposes metrics at:</p><pre>http://your-server:3001/metrics</pre><p>To generate it:</p><p>Settings → API Keys → Create API Key</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*__4t1blE3mG6FYa8JRihig.png" /><figcaption>Uptime Kuma API Key</figcaption></figure><p>Copy the generated key.<br> We’ll use it inside Prometheus configuration.</p><p>You can test access by opening:</p><pre>http://your-server:3001/metrics</pre><p>Leave:</p><ul><li>Username → empty</li><li>Password → paste your API key</li></ul><p>If correct, you’ll see raw Prometheus metrics output.</p><p>Now metrics are ready to be scraped.</p><h3>Step 3 — Deploy and Configure Prometheus</h3><p>First, I created a dedicated monitoring network:</p><pre>docker network create monitoring<br>docker network connect monitoring uptime-kuma</pre><p>Then I created the Prometheus configuration:</p><pre>global:<br>  scrape_interval: 15s<br><br>scrape_configs:<br>  - job_name: &#39;uptime-kuma&#39;<br>    metrics_path: /metrics<br>    basic_auth:<br>      username: &#39;api&#39;<br>      password: &#39;YOUR_API_KEY&#39;<br>    static_configs:<br>      - targets: [&#39;uptime-kuma:3001&#39;]</pre><p>Then I started Prometheus:</p><pre>docker run -d \<br>  --name prometheus \<br>  --network monitoring \<br>  -p 9090:9090 \<br>  -v /opt/prometheus/prometheus.yml:/etc/prometheus/prometheus.yml \<br>  prom/prometheus</pre><p>Verification:</p><pre>http://SERVER_IP:9090/targets</pre><p>If everything is correct, uptime-kuma should show UP.</p><h3>Step 4 — Connect Grafana to Prometheus</h3><p>Once Prometheus is successfully scraping metrics from Uptime Kuma, the next step is visualization.</p><p>Make sure Grafana is connected to the same network:</p><pre>docker network connect monitoring grafana</pre><p>Inside Grafana:</p><pre>Connections → Data Sources → Add data source → Prometheus</pre><p>Set URL:</p><p><a href="http://prometheus:9090/">http://prometheus:9090</a></p><h3>Step 5 — Import the Official Uptime Kuma Dashboard</h3><p>Instead of building panels manually, use the official community dashboard.</p><p>Dashboard ID: <strong>18667</strong></p><p>Inside Grafana:</p><pre>Dashboards → New → Import</pre><p>Enter:</p><pre>18667</pre><p>Click <strong>Load</strong>, select your Prometheus data source, then click <strong>Import</strong>.</p><p><em>You now get:</em></p><ul><li><em>Uptime per monitor</em></li><li><em>SLA percentage</em></li><li><em>Response time trends</em></li><li><em>Certificate expiry metrics</em></li></ul><p><em>Instantly.</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*JaA5KL4MHdDSS7-huWyHLw.png" /></figure><h3>Final Result</h3><p>You now have:</p><ul><li><em>Active monitoring via Uptime Kuma</em></li><li><em>Long-term metric storage via Prometheus</em></li><li><em>SLA visualization via Grafana</em></li></ul><p><em>Fully open-source.<br> Fully self-hosted.<br> Production-ready.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d4ddec901ef2" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Velero: Backup and Restore in AKS for Kubernetes Resources]]></title>
            <link>https://medium.com/@berkanosmanli/velero-backup-and-restore-in-aks-for-kubernetes-resources-a0933ec5f72d?source=rss-11df90dcdbd------2</link>
            <guid isPermaLink="false">https://medium.com/p/a0933ec5f72d</guid>
            <category><![CDATA[ak]]></category>
            <category><![CDATA[kubernetes]]></category>
            <category><![CDATA[backup]]></category>
            <category><![CDATA[azure]]></category>
            <category><![CDATA[velero]]></category>
            <dc:creator><![CDATA[Berkan Osmanli]]></dc:creator>
            <pubDate>Mon, 22 Jul 2024 11:24:28 GMT</pubDate>
            <atom:updated>2024-07-22T11:24:28.829Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/763/1*4pzCbuqsCXYmXUEcXygM6w.png" /></figure><p>In today’s dynamic cloud-native environment, ensuring the safety and integrity of your data is crucial. If you’re using Azure Kubernetes Service (AKS) for your container orchestration, having a robust backup and recovery solution is essential. Velero, a powerful open-source tool, is designed to protect your AKS workloads, safeguard your data, and streamline disaster recovery. In this article, i’ll explore how Velero can help you achieve these goals and enhance the resilience of your applications.</p><h3>Connect to AKS cluster</h3><p>Open the powershell terminal and run the below commands</p><pre>az login <br><br>az account set --subscription &lt;subscription ID &gt;<br><br>az aks get-credentials --resource-group &lt;resource-group-name &gt; --name &lt;cluster-nane&gt;</pre><pre>$AZURE_BACKUP_SUBSCRIPTION_ID=&quot;Your Subscription ID&quot;<br>$AZURE_SUBSCRIPTION_ID=&quot;Your Subscription ID&quot;</pre><h3>Create Resource Group</h3><pre>$AZURE_BACKUP_RESOURCE_GROUP=&quot;Velero_Backup&quot;<br><br>az group create -n $AZURE_BACKUP_RESOURCE_GROUP --location northeurope</pre><h3>Create Storage Account &amp; Blob</h3><pre>$AZURE_STORAGE_ACCOUNT_ID=&quot;aksvelerobackup&quot;<br><br>az storage account create --name $AZURE_STORAGE_ACCOUNT_ID --resource-group $AZURE_BACKUP_RESOURCE_GROUP --sku Standard_GRS --encryption-services blob --https-only true --min-tls-version TLS1_2 --kind BlobStorage --access-tier Hot<br><br>$BLOB_CONTAINER=&quot;velero&quot;<br><br>az storage container create -n $BLOB_CONTAINER --public-access off --account-name $AZURE_STORAGE_ACCOUNT_ID</pre><h3>Create Principal Account</h3><pre>$AZURE_ROLE=&quot;Contributor&quot;<br><br>$AZURE_CLIENT_SECRET = az ad sp create-for-rbac --name &quot;velero&quot; --role $AZURE_ROLE --query &#39;password&#39; -o tsv --scopes &quot;/subscriptions/$AZURE_SUBSCRIPTION_ID&quot;,&quot;/subscriptions/$AZURE_BACKUP_SUBSCRIPTION_ID&quot;<br><br>// Get the client id<br><br>$AZURE_CLIENT_ID= az ad sp list --display-name &quot;velero&quot; --query &#39;[0].appId&#39; -o tsv<br><br>// Give the access Storage Blob Data Contributor to principal account<br><br>az role assignment create --assignee $AZURE_CLIENT_ID --role &quot;Storage Blob Data Contributor&quot; --scope /subscriptions/$AZURE_SUBSCRIPTION_ID</pre><h3>Set the all environments</h3><pre>$AZURE_BACKUP_SUBSCRIPTION_ID=&quot;Your Subscription ID&quot;<br>$AZURE_SUBSCRIPTION_ID=&quot;Your Subscription ID&quot;<br>$AZURE_TENANT_ID=&quot;Your Tenant ID&quot;<br>$AZURE_CLIENT_ID=&quot;Your Application Client ID&quot;<br>$AZURE_CLIENT_SECRET=&quot;Your Application Client Secret&quot;<br>$AZURE_RESOURCE_GROUP=&quot;Azure Portal -&gt; Kubernetes -&gt; Properties -&gt; Infrastructure resource group&quot;<br>$AZURE_CLOUD_NAME=&quot;AzurePublicCloud&quot;</pre><h3>Create Credentials File</h3><pre>@&quot;<br>AZURE_SUBSCRIPTION_ID=$AZURE_SUBSCRIPTION_ID<br>AZURE_TENANT_ID=$AZURE_TENANT_ID<br>AZURE_CLIENT_ID=$AZURE_CLIENT_ID<br>AZURE_CLIENT_SECRET=$AZURE_CLIENT_SECRET<br>AZURE_RESOURCE_GROUP=$AZURE_RESOURCE_GROUP<br>AZURE_CLOUD_NAME=AzurePublicCloud<br>&quot;@ | Out-File -FilePath &quot;./credentials-velero&quot; -Encoding utf8</pre><h3>Install Velero</h3><pre>velero install `<br>    --provider azure `<br>    --plugins velero/velero-plugin-for-microsoft-azure:v1.10.0 `<br>    --bucket $BLOB_CONTAINER `<br>    --secret-file ./credentials-velero `<br>    --backup-location-config useAAD=&quot;true&quot;,resourceGroup=$AZURE_BACKUP_RESOURCE_GROUP,storageAccount=$AZURE_STORAGE_ACCOUNT_ID,subscriptionId=$AZURE_BACKUP_SUBSCRIPTION_ID `<br>    --snapshot-location-config apiTimeout=30m,resourceGroup=$AZURE_BACKUP_RESOURCE_GROUP,subscriptionId=$AZURE_BACKUP_SUBSCRIPTION_ID</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/841/1*-b_tB6v3g649jOy80Umaag.png" /></figure><h3>Velero Backup Commands</h3><pre>velero backup create firstbackup --include-namespaces &lt;namespace&gt;<br><br>velero create schedule daily --schedule=&quot;@daily&quot; --include-namespaces &lt;namespace&gt;<br><br>velero create schedule weekly --schedule=&quot;@weekly&quot; --include-namespaces &lt;namespace&gt;<br><br>velero create schedule monthly--schedule=&quot;@monthly&quot; --include-namespaces &lt;namespace&gt;<br><br>// Restore<br><br>velero restore create 14restore --from-backup 14backup --namespace-mappings pg:pg1<br><br>velero restore create &lt;myrestore-name&gt; --from-backup &lt;mybackup-name&gt;</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/924/1*RyujkPf_HjM9rmLZ2uPD6w.png" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a0933ec5f72d" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Importing your existing Azure resources under the management of Terraform using AzureTF Export]]></title>
            <link>https://medium.com/@berkanosmanli/importing-your-existing-azure-resources-under-the-management-of-terraform-using-azuretf-export-751f6a861617?source=rss-11df90dcdbd------2</link>
            <guid isPermaLink="false">https://medium.com/p/751f6a861617</guid>
            <category><![CDATA[terraform]]></category>
            <category><![CDATA[azure-export]]></category>
            <category><![CDATA[azure-terrafy]]></category>
            <category><![CDATA[azure]]></category>
            <dc:creator><![CDATA[Berkan Osmanli]]></dc:creator>
            <pubDate>Tue, 14 May 2024 07:00:17 GMT</pubDate>
            <atom:updated>2024-05-14T07:00:17.552Z</atom:updated>
            <content:encoded><![CDATA[<h3>Introduction</h3><p>Azure TfExport is tailored to facilitate the administration of Azure assets within Terraform. Collaborating with Azure Resource Manager, it identifies and integrates resources into Terraform modules.</p><h3>Prerequisites</h3><ul><li>An Azure account and subscription</li><li>Terraform installed on your machine</li><li>Azure CLI installed on your machine</li><li>Azure profile configured within Azure CLI to read resources in your Azure subscription</li></ul><h3>Features and benefits of using AzTF Export:</h3><ul><li>Automates the process of importing existing Azure resources into Terraform modules</li><li>Saves time and effort compared to manual resource management</li><li>Helps ensure that your Terraform configuration is accurate and up-to-date</li><li>Works with both Azure Resource Manager and Azure Classic resources</li><li>Can be easily integrated into existing Terraform workflows</li></ul><h3>Installation</h3><pre>choco install aztfexport</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/451/1*YT7TRy0_DfqxXdo1kUVKIQ.png" /></figure><h3>Import Existing Resources</h3><p>Once you have the tool installed you can specify the single resource or resource group you want to import into a Terraform file.</p><p>In this tutorial I am going to import an Azure resource group and all the resources inside it.</p><p>I want to import the resource group called “rg-aztfexport”, so I need to issue the command:</p><pre>aztfexport resource-group rg-aztfexport</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/568/1*u7yjL0aN1OoN6G-tCX45NQ.png" /><figcaption><em>Import Azure Resources using MIcrosoft Azure Export for Terraform</em></figcaption></figure><p>Microsoft Azure Export for Terraform will now begin the import process.</p><p><em>Scanning Azure to create the Terraform files</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/331/0*2ldGDbV8rZ-TvFJ9" /><figcaption>Scanning Status 1</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/368/0*FKOss9Ej6VFKw8tI" /><figcaption>Scanning Status 2</figcaption></figure><p>Once the tool has scanned the resources within your resource group it will show you some options. These are at the bottom of the screen and sometimes difficult to see depending on your terminal settings.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/993/1*dtCSnJYt3jw0vXq_WbymDA.png" /></figure><p><em>Import Azure resources to Terraform</em></p><p>We can show results, show errors or recommendations as well as initial the import.</p><p>Type _ <strong>w</strong> _ to import all the resources it has found. Microsoft Azure Export for Terraform will not start to generate the Terraform scripts for you. It will include any dependencies and also update the Terraform state file for you.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/834/1*B3V9o3kMzeaQCzJJRgmzsQ.png" /><figcaption>Importing Status 1</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*gBYZVOo1HfrmKmXF9iGQDg.png" /><figcaption>Importing Status 2</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/696/0*0x3_QB-r0QslXHpe" /></figure><p>Once it has finished you can open up the files and folders it has created and view the newly generated Terraform files.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*T2sHCHW7BSvgYsp0uL9HOA.png" /><figcaption><em>View generated Terraform files</em></figcaption></figure><h3>Conclusion</h3><p>In summary, the Microsoft Azure Export for Terraform proves to be an invaluable asset.</p><p>It streamlines the process of configuring pre-existing Azure resources into Terraform files, ultimately saving both time and effort.</p><p>While no tool is flawless, understanding its limitations underscores its significance as a valuable addition to your toolkit for effectively managing existing resources through Terraform.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=751f6a861617" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Effective Cost Optimization and Management in Azure | Rem People]]></title>
            <link>https://medium.com/@berkanosmanli/effective-cost-optimization-and-management-in-azure-rem-people-484729980894?source=rss-11df90dcdbd------2</link>
            <guid isPermaLink="false">https://medium.com/p/484729980894</guid>
            <category><![CDATA[azure]]></category>
            <category><![CDATA[cost-optimization]]></category>
            <dc:creator><![CDATA[Berkan Osmanli]]></dc:creator>
            <pubDate>Wed, 27 Mar 2024 07:52:22 GMT</pubDate>
            <atom:updated>2024-03-27T07:52:22.276Z</atom:updated>
            <content:encoded><![CDATA[<p>In today’s cloud-centric business environment, optimizing costs is critical for any organization using cloud services. Among the leading cloud service providers, Azure stands out for its powerful set of features and tools for cost management. In this article, we explore the strategies and methodologies used to optimize costs at Rem People, a company that leverages Azure services</p><h4>Assessing Expenditures and Resource Utilization</h4><p>Our cost optimization journey began with a meticulous examination of the expenditures incurred within Rem People’s Azure environment. By scrutinizing detailed usage reports provided by Azure, we gained insights into the utilization patterns of various services. This initial step allowed us to identify areas ripe for optimization.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*VUFVJbIOgccnQ9lbi7oJbQ.png" /><figcaption>Example of Resource Utilization</figcaption></figure><h4>Eliminating Idle Resources</h4><p>One of the most effective cost-saving measures implemented was the identification and elimination of idle resources. By decommissioning underutilized or redundant resources, Rem People significantly reduced unnecessary expenditures without compromising operational efficiency.</p><h4>Leveraging Reservation Discounts</h4><p>To further optimize costs, Rem People leveraged Azure’s reservation options, which provide substantial discounts for committing to the usage of specific resources over a fixed term. By strategically reserving compute instances and other services, Rem People capitalized on significant cost savings compared to pay-as-you-go pricing.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/516/1*QW46nVPCS3uKdBeYYjRjyg.png" /></figure><h4>Implementing Resource Optimization Techniques</h4><p>Resource optimization was a pivotal aspect of Rem People’s cost-saving initiatives. Through a combination of rightsizing, performance tuning, and workload consolidation, we maximized the efficiency of Rem People’s Azure environment while minimizing expenses.</p><h4>Downscaling and Right-Sizing</h4><p>Downscaling oversized resources and right-sizing instances to match workload demands played a crucial role in Rem People’s cost optimization efforts. By accurately aligning resource specifications with actual requirements, Rem People avoided over-provisioning and wasted capacity, leading to substantial cost reductions.</p><h4>Proactive Guidance with Azure Advisor</h4><p>Azure Advisor proved to be an invaluable tool in Rem People’s cost optimization endeavors. By leveraging its recommendations and actionable insights, we fine-tuned Rem People’s Azure environment to align with best practices and cost-saving opportunities identified by Azure’s AI-driven analytics.</p><h4>Application Service Upgrade for Cost Efficiency</h4><p>An impactful decision was the upgrade of application services from Pv1,Pv2 to Pv3 instances. This upgrade not only enhanced performance but also optimized costs for Rem People by ensuring that resources were allocated according to workload demands</p><h4>Continuous Cost Monitoring and Alerts</h4><p>Continuous monitoring and proactive management are essential components in maintaining the effectiveness of cost optimization efforts. In the context of Rem People’s initiatives to reduce costs within their Azure environment, establishing robust monitoring mechanisms was paramount.</p><p>These mechanisms were designed to track expenditure trends meticulously and ensure adherence to predefined budgets. Additionally, Rem People implemented proactive measures by setting up budget alerts and cost anomaly notifications. These notifications promptly notify relevant stakeholders of any deviations from expected spending patterns, allowing for timely intervention and adjustment.</p><h3>Cost Saving Achievements</h3><p>At Rem People, we have successfully achieved significant cost savings by optimizing our daily expenditure. Through meticulous analysis and strategic adjustments, we have implemented measures that led to this remarkable reduction. By scrutinizing our expenditure patterns and identifying areas for optimization, we were able to streamline our operations and eliminate unnecessary expenses. This achievement reflects our commitment to efficient resource utilization and underscores our dedication to cost-conscious practices. Moving forward, we remain vigilant in our efforts to identify further opportunities for optimization and drive sustained cost savings across our organization.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*7f2l0ZuLNFZGFyfffqoiIg.png" /><figcaption>Azure Cost Chart for September-December 2023</figcaption></figure><h3>Conclusion</h3><p>As a result, these cost optimization efforts undertaken for Rem People have led to cost reductions of up to approximately 75%. This significant decrease in costs underscores the effectiveness of our strategic initiatives and underscores our commitment to efficient resource allocation. Throughout these endeavors, we prioritized optimizing Azure usage without compromising performance. Instead of solely downsizing hardware resources, we strategically invested in newer hardware solutions that not only enhanced performance but also contributed to optimized Azure utilization.</p><p>By embracing innovative technologies and best practices, we continue to drive sustainable cost savings while maintaining the agility and reliability required to support our business objectives</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=484729980894" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>