<?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 Hedeesaa on Medium]]></title>
        <description><![CDATA[Stories by Hedeesaa on Medium]]></description>
        <link>https://medium.com/@Hedeesaa?source=rss-c7aae481139------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*Nfvq6QvjFUiSBP34-8ymGg.png</url>
            <title>Stories by Hedeesaa on Medium</title>
            <link>https://medium.com/@Hedeesaa?source=rss-c7aae481139------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Tue, 01 Dec 2026 05:52:33 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@Hedeesaa/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[Alright, Let’s Start from the Top]]></title>
            <link>https://medium.com/@Hedeesaa/alright-lets-start-from-the-top-e931bbca8593?source=rss-c7aae481139------2</link>
            <guid isPermaLink="false">https://medium.com/p/e931bbca8593</guid>
            <category><![CDATA[sre]]></category>
            <category><![CDATA[development]]></category>
            <category><![CDATA[devops]]></category>
            <category><![CDATA[documentation]]></category>
            <dc:creator><![CDATA[Hedeesaa]]></dc:creator>
            <pubDate>Wed, 25 Sep 2024 23:01:12 GMT</pubDate>
            <atom:updated>2024-09-25T23:15:15.379Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="My desk, while I was writing this article." src="https://cdn-images-1.medium.com/max/1024/1*zhGfg9Ly1idiue9tDfkuDg.png" /><figcaption>My desk, while I was writing this article. 🙃</figcaption></figure><h3>List of Contents:</h3><p>/* FTT stands for From the Top</p><ol><li>FTT 0 — Where are we standing? [to be completed]</li><li>FTT 1 — Sharpening the axe [to be completed]</li></ol><p>After three years in this industry, I’ve realized the need to take a step back and reassess the bigger picture. It feels like I’m on a rollercoaster — juggling new concepts, maintaining what I already know, always fixing something, jumping from things because they are not high priorities for the company, doing so many endless migrations (I even joke, “It’s endless, like migrations!” haha). While I sometimes wish things could slow down, I know my mind thrives in a fast-paced environment.</p><p>The other day, a colleague and I were talking about how <strong>we wish we had documented everything from the very beginning</strong> — like a math notebook you can flip through for a quick refresher. Although we live in the age of ChatGPT, where answers are just a click away, it can’t replace the value of personal experience and thorough documentation. I want to improve my critical thinking and avoid turning into someone who just copies and pastes.</p><p>During our conversation, my colleague asked a question about his side project: “How did you configure that thing?” I remembered it was challenging, and after a lot of trial and error, I finally got it to work. <strong>But I couldn’t recall the specifics.</strong> It wasn’t just frustrating to forget — it was more about not having documented my process to benefit others — or even myself in the future. If I face the same issue again, I’d rather not start from scratch. It’s a reminder that even in a fast-paced environment, taking the time to document and share knowledge is invaluable.</p><p>Since my career has primarily focused on DevOps and SRE, handling the operational side of things, I’ve felt somewhat disconnected from the development world where I was once great. While I’m confident in my skills in infrastructure, mentoring my friend as she enters the tech field has been a fantastic opportunity to reconnect with those areas. <strong>It’s a chance to revisit and strengthen concepts I haven’t engaged with in a while and learn new things</strong> While helping her navigate this space. I just hope she doesn’t regret choosing me as her mentor—haha!</p><p>So, it’s time to go back to the basics. We need to document everything and make sure it works, asking ourselves “why” every step of the way. I’ll keep updating this article with links to our steps.</p><p>Alright, let’s start from the top!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e931bbca8593" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How I passed the Certified Kubernetes Application Developer (CKAD) exam— 2023]]></title>
            <link>https://medium.com/@Hedeesaa/how-i-passed-the-certified-kubernetes-application-developer-ckad-exam-2023-16a853336b76?source=rss-c7aae481139------2</link>
            <guid isPermaLink="false">https://medium.com/p/16a853336b76</guid>
            <category><![CDATA[kubernetes]]></category>
            <category><![CDATA[certification]]></category>
            <category><![CDATA[ckad]]></category>
            <dc:creator><![CDATA[Hedeesaa]]></dc:creator>
            <pubDate>Wed, 31 Jan 2024 08:01:51 GMT</pubDate>
            <atom:updated>2024-01-31T14:41:28.274Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*JEQgzRBDnTPjT6kA5Xk9JA.jpeg" /></figure><h3>TLDR</h3><ul><li>Stay calm:)</li><li>You need to be good at editing Kubernetes YAML manifests.</li><li>If you are a Mac user make sure to change the keyboard layout (for copy/paste)</li><li>configure your .vimrc and .bashrc</li><li>I got 13 questions in 2 hours, So I think the timing was reasonable.</li><li>You have a free retake opportunity.</li></ul><p>Hello All,</p><p>I recently passed the CKAD exam, and I want to share my experience with you. If you’re considering taking the CKA exam as well, you can find information in my other article. <br>In this article, I’ll guide you through my preparation, the exam environment, and some valuable tips for success.</p><h3>Preparation:</h3><p>Being already familiar with Kubernetes due to my work, I dedicated time to understanding the exam structure. I focused on the labs in <a href="https://www.udemy.com/course/certified-kubernetes-application-developer/">Mumshad Mannambeth’s CKAD course</a>, specifically the Update 2021 section. Additionally, I completed KodeKloud’s Mock exams and took advantage of <a href="https://killercoda.com/killer-shell-ckad">killer.sh</a>’s free demo session, finding it slightly more challenging than the actual exam.</p><h4>Exam Focus:</h4><p>The main focus of the exam is on examining your abilities as a cloud-native application developer, so ensure you have a solid understanding of topics like:</p><ul><li>Readiness and Liveness Probes</li><li>Statefulset</li><li>init container, multi-containers, sidecars</li><li>Persistent Volumes and Persistent Volume Claims</li><li>Environment variables</li><li>ConfigMaps and Secrets</li></ul><h4>Utilizing kubernetes.io:</h4><p>The exam is open-book, allowing access to kubernetes.io documents. So with a good search of the documents, you can find the answers. You rely on using documents for completing your YAML manifests.</p><ul><li>No Bookmarks! As of June 2022, since you are using PSI browser you won’t have access to your bookmarks on your browser. So don’t waste your time bookmarking documents.</li><li>Keywords! Just make sure that every time you want to search for a topic in kubernetes.io, you choose the correct term to find the page faster.<br>For example, I was always confused about how to define config map/ secret as env variables when we want to change the key name so I had in mind I had to search for <a href="https://kubernetes.io/docs/tasks/configure-pod-container/configure-pod-configmap/">valueFrom</a>. <br>And to skip the details and quickly go to the manifest definition, search kind: in the page.</li></ul><h4>Use Imperative commands:</h4><p>In CKAD, you need to edit and create lots of manifest files, so instead of writing them from scratch or copying/pasting from kubernete.io, make sure you are hands-on with the imperative commands to speed up manifest file creation and editing:</p><pre># Create a pod<br>k run --image nginx &lt;pod_name&gt;<br># Scale ReplicaSet<br>k scale deploy &lt;deploy_name&gt; --replicas 5<br># dry run<br>k run &lt;pod_name&gt; --image=nginx --dry-run=client -o yaml<br># Create a deployment<br>k create deployment --image=nginx --replicas 3  &lt;deploy_name&gt;<br># Create a service based on a deployment<br>k expose deployment|pod nginx --port 80 --type=NodePort --name=&lt;service_name&gt; <br># Change the image<br>k set image deploy &lt;deploy_name&gt; container_name=nginx:1.18<br># Create a Service<br>k create service nodeport &lt;service_name&gt; --tcp=80:80 --node-port=30080 <br># Create a pod and its clusterIP service at the same time<br>k run --image httpd:alpine --port 80 &lt;pod_name&gt; --expose</pre><h4>My .bashrc config:</h4><p>At the beginning of the exam, I customized the .bashrc file to include aliases for common Kubernetes commands. You cannot copy/paste it, you should memorize it.</p><pre>alias d=&quot;docker&quot;<br>export ns=default<br>alias conf=&quot;kubectl config&quot;<br>alias k=&#39;kubectl -n &quot;$ns&quot;&#39;<br>alias kdr=&#39;k --dry-run=client -oyaml&#39;<br>alias kc=&#39;k create&#39;<br>alias ke=&#39;k edit&#39;<br>alias kd=&#39;k describe&#39;<br>alias kg=&#39;k get&#39;</pre><blockquote>The environment already has kubectl auto-completion.</blockquote><p>It might be long in first look, but I added this config to my working environment and I’m still using it. It’s great and makes you faster. and about memorizing it, since it is more abbreviation I don’t think you would have a problem memorizing it.</p><p>Be aware that using the same short commands when you are practicing, would help you to memorize and don’t confuse in adjusting yourself.</p><h4>My .vimrc config:</h4><p>I used VIM as my editor and at the start of the exam I added these commands to .vimrc:</p><pre>set nu<br>set et #expandtab<br>set sw=2 #shiftwidth=2<br>set ts=2 #tabstop=2<br>set sts=2 #softtabstop=2</pre><p>Some tips:</p><ol><li>Indentations: When you copy from kubernetes.io, you might mess up the indentations. To fix that you can use these steps:</li></ol><ul><li>Select the lines and enter visual mode by pressing v.</li><li>Use the arrow keys to navigate up and down.</li><li>Adjust indentation using shift + &gt; or &lt;.</li></ul><p>2. Identifying Invisible Characters: to find the junk character in your YAML file set list</p><p>3. Replacing Tabs with Spaces: to replace the tabs with spaces you can use :retab</p><h3>Change of exam environment:</h3><p>The <a href="https://training.linuxfoundation.org/blog/update-on-certification-exam-proctoring-migration/#:~:text=On%20June%2025%2C%202022%2C%20The,changes%20to%20the%20exam%20content">exam environment</a> has been changed as of June 25, 2022.</p><p>So if you are reading the experience of people who passed the exam before this date be aware that the whole content may not be correct and you might get confused, like what happened to mine :D</p><h4>Mac Problem in Exam</h4><p>My huge problem in the exam was the small size of my Mac screen. From June 25, 2022, you can only have one active monitor. Unfortunately, I don’t possess an external camera so I had to take the exam on my Mac 13-inch monitor. <br>It was really hard to switch between the terminal and the Firefox browser in the PSI browser. So if you can buy an external camera for yourself before the exam you will save yourself less backache and eye redness :D</p><figure><img alt="Sketch of the how PSI browser looks like." src="https://cdn-images-1.medium.com/max/1024/1*_qy_8Z4JIaUeeUSBiMd0Ng.jpeg" /><figcaption>Sketch of the how PSI browser looks like. As you can see the desktop area is so small.</figcaption></figure><h4>Another Mac Problem in Exam</h4><p>As I mentioned above from June 2022, you will use PSI browser which connects you to a Ubuntu Desktop, so you will do the tasks in a Ubuntu Desktop and its terminal. <br>The problem is the difference between Linux and Mac Keyboard layout. On Mac when you want to copy and paste you do ⌘ + C and ⌘ + V .Linux keyboard layout doesn&#39;t have a ⌘ Command key and you use shift + ctrl + c and shift + ctrl + v<br>So to solve this confusion I changed my keyboard layout by mapping the ⌘command to ctrl in System preferences.</p><p>Here’s how you can make this adjustment:</p><p>Go to system settings &gt; keyboard &gt; keyboard shortcuts &gt; Modifier Keys <br>map the control key to ⌘commandand ⌘command to control key<br>The modified layout should look like this:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*lozRSqzxHKN5MgPMJUEBtw.png" /></figure><h3>Final tips:</h3><h4>Time Management</h4><p>Be fast but don’t stress yourself. I got 13 questions in 2 Hours. and I finished them in 1 hour and spent the rest of 30 minutes to review. I know in so many articles you face that it is a time-consuming exam, but I believe CKAD is not. Having 13 questions in 2 hours means 9.2 mins for each question, which is fine.</p><p>Be aware that each question has a different weight. but honestly, I didn’t care about them, I started from question one to 13. I believe paying attention to weights makes you confused and may stress you.</p><h4>Choose meaningful names for your YAML files</h4><p>It comes in handy when you are revising. I simply created files based on the number of questions, for example for question 1 I created 1.yaml</p><h4>Copy and paste names</h4><p>For example, if the exam says to create a pod named “sdfsdfsd”, don’t write the name yourself, copy the names and paste them, to prevent mistakes. if you have done a task but you’ve done it under another name, you won’t get any marks :(</p><h4>Switch between clusters at the start of each question</h4><p>The command to switch to the right cluster/context will be given at the top of each question. Make sure you run that always before tackling the question. Even if you think you are on the right cluster/context!</p><h4>Free Retake</h4><p>Don’t worry at all, if you mess up your exam, you still can retake it at no cost 🤓.</p><p>I hope reading this helps you in preparing for CKAD and understand the exam pattern. If you need further details, feel free to get in touch.<br>Best of luck 🍀, and Let’s connect on <a href="https://www.linkedin.com/in/saeedeh-moghimi/">Linkedin</a>!</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fgiphy.com%2Fembed%2F3oeSAz6FqXCKuNFX6o%2Ftwitter%2Fiframe&amp;display_name=Giphy&amp;url=https%3A%2F%2Fmedia.giphy.com%2Fmedia%2Fv1.Y2lkPTc5MGI3NjExaXR3YjRkZmlhcnYyMTdxdDg3c3JpcnU1M3k2ZXRwcXhjaDZzZW84diZlcD12MV9pbnRlcm5hbF9naWZfYnlfaWQmY3Q9Zw%2F3oeSAz6FqXCKuNFX6o%2Fgiphy.gif&amp;image=https%3A%2F%2Fmedia2.giphy.com%2Fmedia%2Fv1.Y2lkPTc5MGI3NjExdXIxaXRqaGs0enZpeXZ6NHR2bm8xdTF3OWQydWluZnY2am53NmdoayZlcD12MV9naWZzX2dpZklkJmN0PWc%2F3oeSAz6FqXCKuNFX6o%2Fgiphy.gif&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=giphy" width="435" height="189" frameborder="0" scrolling="no"><a href="https://medium.com/media/41a0ea64ff43418c37f46cd01e6a41ea/href">https://medium.com/media/41a0ea64ff43418c37f46cd01e6a41ea/href</a></iframe><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=16a853336b76" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How to Reindex Indices in ElasticSearch/OpenSearch?]]></title>
            <link>https://medium.com/@Hedeesaa/how-to-reindex-indices-in-elasticsearch-opensearch-1a64f9046f3d?source=rss-c7aae481139------2</link>
            <guid isPermaLink="false">https://medium.com/p/1a64f9046f3d</guid>
            <category><![CDATA[opensearch]]></category>
            <category><![CDATA[reindex]]></category>
            <category><![CDATA[elasticsearch]]></category>
            <category><![CDATA[sre]]></category>
            <category><![CDATA[devops]]></category>
            <dc:creator><![CDATA[Hedeesaa]]></dc:creator>
            <pubDate>Mon, 16 Jan 2023 18:08:03 GMT</pubDate>
            <atom:updated>2023-01-16T18:58:04.236Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*BmvPfSSm2G8C-khX1rhCGg.png" /><figcaption>ElasticSearch Logo</figcaption></figure><p>As an admin of ElasticSearch, you may need to reindex your indices at some point. This could be due to several reasons, such as decreasing shards, changing mapping, or even changing the index name. In a nutshell, reindexing means copying the data from one index to another.</p><p><strong>Note</strong>: It is important to note that reindexing can consume a significant amount of CPU resources based on the size of your index. Therefore, it is best to schedule reindexing when the CPU is not under heavy pressure or not during taking snapshots.</p><p>Although you can throttle the speed of reindexing by requests_per_secondquery parameter, still coming up with a proper value can be challenging.</p><p><strong>Note:</strong> It’s also important to ensure you have enough disk space for the new index, as the reindexing process will create a new index and copy <em>all of the data</em> from the old index to the new one.</p><ol><li><strong>Create destination index + mapping</strong>: The first step in reindexing is to create the destination index with the desired mapping and settings like the number of shards. This can be done using the PUT command in OpenSearch.</li></ol><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/4e86302b4d5c04f005e559b93a1234c0/href">https://medium.com/media/4e86302b4d5c04f005e559b93a1234c0/href</a></iframe><blockquote>In production, it is better to have component_templateand index_template for indices. they make it easier to apply mapping to indices and make changes.</blockquote><p><strong>Q:</strong> Can we use an index that already has data as a destination index? <br><strong>YES.</strong> You can use the already created index as your destination index, as far as source and destination won’t have different mappings. <br>This strategy is usually used on production clusters with ElasticSearch ILM or OpenSearch ISM policy to compact multiple indices of a single stream together in one index to decrease shards and replicas before moving them to warm or cold storage. (For example, put ‍‍indices with this pattern log_%Y-%M-%d to log_%Y-%M)</p><p>2. <strong>Reindex API, Let the game begin:</strong> Once the destination index is created, the next step is to use the Reindex API to copy the data from the source index to the destination index.</p><p>The Reindex API can be called using the following command:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/3505546e4c2fd0885cc1864d09336a2a/href">https://medium.com/media/3505546e4c2fd0885cc1864d09336a2a/href</a></iframe><p>The wait_for_completion=falseparameter is included because the Reindex API, by default, waits for the background reindex task to finish. However, Reindex is usually a time-consuming task (Based on the size of your index.), so it’s better not to wait for reindex completion; otherwise, it will return a timeout error based on its timeout policy and create confusion for you while the reindex task will continue to run in the background.</p><p>If you call the API from Kibana, the request will be terminated after 30 seconds.</p><p>By this message, you understand your reindex task has been started in the background:</p><pre>{<br>  task: XXXXXXXXXXXXXXXXXX<br>}</pre><p>3.<strong> Check Reindex Progress: </strong>To check the progress of the reindexing task, you can use the following command:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/345f5bd8c0f950d0a25b8c03c002085b/href">https://medium.com/media/345f5bd8c0f950d0a25b8c03c002085b/href</a></iframe><p>Done! Now you can take your cup of coffee and relax and enjoy The Vampire Dairies while you are curious about when Elena will fall in love with Daemon:) — And wait for the task to be finished.</p><p>Using the Reindex API&#39;s built-in scripting capabilities, you can also manipulate the data during the re-indexing process. This allows you to perform complex data transformations and indexing operations without writing custom code. Reindexing can also be used for a variety of other tasks, such as:</p><ul><li>deleting fields</li><li>changing field types</li><li>moving a subset of an index</li><li>renaming fields</li><li>removing fields with specific values</li></ul><p>Each has another story; I’ll try to explain them later in other articles.</p><p>In conclusion, the Reindex API is a valuable asset for Elasticsearch administrators, allowing them to copy and manipulate data and indices efficiently. This article has outlined the steps and methods for utilizing this tool effectively.</p><p>Peace ✌🏼😇</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=1a64f9046f3d" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>