<?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 salah Eddine Admou on Medium]]></title>
        <description><![CDATA[Stories by salah Eddine Admou on Medium]]></description>
        <link>https://medium.com/@admou3?source=rss-4fd353b84d81------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*UL4O6jA8RiYvzn6FH_INog.png</url>
            <title>Stories by salah Eddine Admou on Medium</title>
            <link>https://medium.com/@admou3?source=rss-4fd353b84d81------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Tue, 24 Nov 2026 04:53:55 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@admou3/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[K3S: Lightweight Kubernetes]]></title>
            <link>https://medium.com/@admou3/k3s-lightweight-kubernetes-9dd9c2de87f1?source=rss-4fd353b84d81------2</link>
            <guid isPermaLink="false">https://medium.com/p/9dd9c2de87f1</guid>
            <category><![CDATA[lightweight]]></category>
            <category><![CDATA[orchestration]]></category>
            <category><![CDATA[k3]]></category>
            <category><![CDATA[kubernetes]]></category>
            <dc:creator><![CDATA[salah Eddine Admou]]></dc:creator>
            <pubDate>Sat, 31 May 2025 16:02:19 GMT</pubDate>
            <atom:updated>2025-05-31T16:02:19.737Z</atom:updated>
            <content:encoded><![CDATA[<p><strong>K3s</strong> is a lightweight, certified Kubernetes distribution developed by <strong>Rancher Labs</strong> (now part of SUSE).</p><p>It is designed to be simple to install, easy to operate, and optimized for <strong>resource-constrained environments</strong> like:</p><ul><li>Edge computing</li><li>IoT devices (e.g., Raspberry Pi)</li><li>Development and testing environments</li><li>CI/CD pipelines</li></ul><blockquote><strong>Great For</strong></blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*vFeae1uAr7TkdqO5cBk4FQ.png" /><figcaption><strong>Great For</strong></figcaption></figure><blockquote>Why Use K3s</blockquote><blockquote><strong>Perfect for Edge </strong>: K3s is a highly available, certified Kubernetes distribution designed for production workloads in unattended, resource-constrained, remote</blockquote><blockquote><strong>locations or inside IoT appliances: </strong>K3s is a highly available, certified Kubernetes distribution designed for production workloads in unattended, resource-constrained, remote locations or inside IoT appliances</blockquote><blockquote><strong>Optimized for ARM: </strong>Both ARM64 and ARMv7 are supported with binaries and multiarch images available for both. K3s works great on something as small as a Raspberry Pi to an AWS a1.4xlarge 32GiB server.</blockquote><blockquote>How it Works</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*cuacFGQniYbRVkUxv6Ochg.png" /><figcaption>The above figure shows the difference between K3s server and K3s agent nodes. For more information, see the <a href="https://docs.k3s.io/architecture">architecture documentation.</a></figcaption></figure><blockquote>Get Started</blockquote><ol><li>Download K3s — <a href="https://github.com/k3s-io/k3s/releases/latest">latest release</a>: x86_64, ARMv7, and ARM64 are supported</li></ol><p>2. Run server</p><pre>sudo k3s server &amp;<br># Kubeconfig is written to /etc/rancher/k3s/k3s.yaml<br>sudo k3s kubectl get node<br><br># On a different node run the below command. <br># NODE_TOKEN comes from /var/lib/rancher/k3s/server/node-token on your server<br>sudo k3s agent --server https://myserver:6443 --token ${NODE_TOKEN}</pre><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=9dd9c2de87f1" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Create Policy and ACL for an S3 Bucket]]></title>
            <link>https://medium.com/@admou3/create-policy-and-acl-for-an-s3-bucket-d6b8c4a7b02a?source=rss-4fd353b84d81------2</link>
            <guid isPermaLink="false">https://medium.com/p/d6b8c4a7b02a</guid>
            <category><![CDATA[s3]]></category>
            <category><![CDATA[aws-s3-security]]></category>
            <category><![CDATA[aws-policies]]></category>
            <category><![CDATA[aws]]></category>
            <dc:creator><![CDATA[salah Eddine Admou]]></dc:creator>
            <pubDate>Sun, 11 May 2025 20:23:03 GMT</pubDate>
            <atom:updated>2025-05-11T20:23:03.121Z</atom:updated>
            <content:encoded><![CDATA[<h4>Objective:</h4><p>Create an S3 bucket.</p><p>Create a bucket policy to grant specific permissions.</p><p>Modify the bucket ACL to define access permissions.</p><h3>Step 1: Create an S3 Bucket</h3><blockquote>Go to the AWS Management Console.</blockquote><blockquote>Navigate to <strong>S3</strong> (Search for S3 in the AWS Services search bar).</blockquote><blockquote>Click on <strong>Create bucket</strong>.</blockquote><blockquote>Enter a unique bucket name, e.g., my-bucket-1234567.</blockquote><blockquote>Choose the region.</blockquote><blockquote>For now, leave the rest of the options as default (can adjust later based on needs).</blockquote><blockquote>Click on <strong>Create bucket</strong>.</blockquote><h3>Step 2: Create a Bucket Policy</h3><blockquote><strong>Navigate to the Bucket</strong>:</blockquote><blockquote>In the <strong>S3 Dashboard</strong>, select your bucket (e.g., my-bucket-1234567).</blockquote><blockquote><strong>Go to the Permissions Tab</strong>:</blockquote><blockquote>Click on the <strong>Permissions</strong> tab, then click on <strong>Bucket Policy</strong>.</blockquote><blockquote><strong>Add Bucket Policy</strong>:</blockquote><blockquote>Enter a policy like the following to allow read access from any IP address. Modify this based on your needs.</blockquote><blockquote><strong>Example Policy:</strong></blockquote><blockquote>{ <br> &quot;Version&quot;: &quot;2012-10-17&quot;,<br> &quot;Statement&quot;: [ <br> { <br> &quot;Sid&quot;: &quot;AllowPublicRead&quot;,<br> &quot;Effect&quot;: &quot;Allow&quot;,<br> &quot;Principal&quot;: &quot;*&quot;, <br> &quot;Action&quot;: &quot;s3:GetObject&quot;,<br> &quot;Resource&quot;: &quot;arn:aws:s3:::my-bucket-1234567/*&quot; <br> } <br> ] <br>}</blockquote><blockquote>This policy allows <strong>public read access</strong> to all files (*) inside the bucket (my-bucket-1234567).</blockquote><blockquote>Click on <strong>Save</strong>.</blockquote><blockquote>Sep 3: Modify the Bucket ACL</blockquote><blockquote><strong>Navigate to the ACL Section</strong>:</blockquote><blockquote>In the <strong>Permissions</strong> tab, click on <strong>Access Control List (ACL)</strong>.</blockquote><blockquote><strong>Set Permissions</strong>:</blockquote><blockquote>Under <strong>Bucket ACL</strong>, you will see the <strong>Access Control</strong> options.</blockquote><blockquote>You can define different permissions like <strong>Owner</strong>, <strong>Grantee</strong>, and what kind of access they have (e.g., <strong>Read</strong>, <strong>Write</strong>).</blockquote><blockquote><strong>Grant Permissions to an AWS User</strong>:</blockquote><blockquote>To give read access to a specific user or AWS account, click on <strong>Add grantee</strong>.</blockquote><blockquote>Enter the AWS Account ID of the grantee.</blockquote><blockquote>Choose the permissions (e.g., <strong>Read</strong> for the account).</blockquote><blockquote>Click <strong>Save changes</strong>.</blockquote><blockquote>Example</blockquote><blockquote>Grantee: 123456789012 (this is the AWS Account ID).</blockquote><blockquote>Permissions: <strong>Read</strong>.</blockquote><blockquote>Step 4: Test the Policy and ACL</blockquote><blockquote><strong>Upload a File to the Bucket</strong>:</blockquote><blockquote>Go to the <strong>Objects</strong> tab and upload a sample file (e.g., testfile.txt).</blockquote><blockquote><strong>Test Public Access</strong> (if you have a public read policy):</blockquote><blockquote>You should be able to access the file publicly via the URL:</blockquote><blockquote>https://my-bucket-1234567.s3.amazonaws.com/testfile.txt</blockquote><blockquote><strong>Test Access for a Specific User</strong>:</blockquote><blockquote>Use the AWS CLI or SDK to test the access for the specific user you granted permissions in the ACL.</blockquote><blockquote>Example AWS CLI command to check access for the specific AWS account (replace the values with actual ones):</blockquote><blockquote>aws s3 cp s3://my-bucket-1234567/testfile.txt ./ --profile myprofile</blockquote><blockquote>Step 5: Clean Up</blockquote><blockquote><strong>Delete the Uploaded File</strong>: Delete any files you uploaded to the bucket.</blockquote><blockquote><strong>Delete the Bucket</strong>: Once everything is complete, you can delete the bucket by going to the <strong>Bucket settings</strong> and choosing <strong>Delete</strong>.</blockquote><blockquote>Lab Summary:</blockquote><blockquote>Created an S3 bucket and configured it with a custom bucket policy and ACL.</blockquote><blockquote>The bucket policy controlled access at the resource level.</blockquote><blockquote>The ACL was used to set fine-grained access for specific users or AWS accounts.</blockquote><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d6b8c4a7b02a" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Running Kubernetes with Minikube]]></title>
            <link>https://medium.com/@admou3/running-kubernetes-with-minikube-6a5d2cb0e9c0?source=rss-4fd353b84d81------2</link>
            <guid isPermaLink="false">https://medium.com/p/6a5d2cb0e9c0</guid>
            <category><![CDATA[minikube]]></category>
            <category><![CDATA[hyper-v]]></category>
            <category><![CDATA[kubernetes]]></category>
            <category><![CDATA[devops]]></category>
            <dc:creator><![CDATA[salah Eddine Admou]]></dc:creator>
            <pubDate>Tue, 04 Mar 2025 12:54:23 GMT</pubDate>
            <atom:updated>2025-03-04T12:54:23.175Z</atom:updated>
            <content:encoded><![CDATA[<p>Minikube is an alternative way to run Kubernetes on Windows. It creates a <strong>lightweight Kubernetes cluster inside a virtual machine (VM)</strong> or <strong>Docker containers</strong>.</p><h3>How It Works</h3><ol><li>Minikube provides different “drivers” to run Kubernetes:</li></ol><ul><li><strong><em>Docker driver</em></strong><em> (uses Docker containers instead of a VM).</em></li><li><strong><em>Hyper-V driver</em></strong><em> (creates a virtual machine on Windows).</em></li><li><strong><em>VirtualBox driver</em></strong><em> (another option for running a VM).</em></li></ul><p>2. You must choose a driver before starting Minikube.</p><h3>Installing Minikube</h3><ol><li><strong>Download &amp; Install Minikube</strong></li></ol><ul><li>Download it from the official Minikube website.</li><li>Install it by running:</li></ul><pre>choco install minikube -y  # If using Chocolatey<br>scoop install minikube      # If using Scoop</pre><p><strong>2. Verify the Installation</strong><br>Run:</p><pre>minikube version</pre><p>Expected output:</p><pre>minikube version: v1.35.0</pre><h3>Starting Minikube with Different Drivers</h3><h4>(A) Running Minikube Using Docker (Recommended)</h4><p>If you have Docker installed, you can run Minikube using Docker as a backend instead of a VM:</p><pre>minikube start --driver=docker</pre><p>This avoids Hyper-V issues and is <strong>faster and more efficient</strong>.</p><h4>(B) Running Minikube Using Hyper-V</h4><p>If you prefer using Hyper-V, ensure it is enabled:</p><ol><li>Run this command in PowerShell (as Administrator) to enable Hyper-V:</li></ol><pre>Enable-WindowsOptionalFeature -Online -FeatureName Microsoft-Hyper-V-All -All</pre><p>2. Restart your PC.</p><p>3. Start Minikube with Hyper-V:</p><pre>minikube start --driver=hyperv</pre><p>4. Verify that Minikube is running:</p><pre>minikube status</pre><h3>Common Errors and Fixes</h3><h4>Error: Hyper-V PowerShell Module is Not Installed</h4><p>If you see an error like this:</p><pre>creating host: create: precreate: Hyper-V PowerShell Module is not available</pre><p>Fix it by enabling the Hyper-V module:</p><pre>Enable-WindowsOptionalFeature -Online -FeatureName Microsoft-Hyper-V-Tools-All -All</pre><p>Then restart your PC and try again.</p><h4>Error: “Docker machine does not exist”</h4><p>If Minikube fails with:</p><pre>Docker machine &quot;minikube&quot; does not exist. Use &quot;docker-machine ls&quot; to list machines.</pre><p>Fix it by deleting and restarting Minikube:</p><pre>minikube delete<br>minikube start --driver=docker</pre><h3>Pros &amp; Cons of Using Minikube</h3><p>✅ <strong>Pros</strong>:</p><ul><li>More control over the Kubernetes cluster.</li><li>Can use different drivers (Docker, Hyper-V, VirtualBox).</li><li>Useful for testing Kubernetes features.</li></ul><p>❌ <strong>Cons</strong>:</p><ul><li>Requires additional setup.</li><li>May need Hyper-V or VirtualBox, depending on the chosen driver.</li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=6a5d2cb0e9c0" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Running Kubernetes with Docker Desktop]]></title>
            <link>https://medium.com/@admou3/running-kubernetes-with-docker-desktop-0de2c6a2012b?source=rss-4fd353b84d81------2</link>
            <guid isPermaLink="false">https://medium.com/p/0de2c6a2012b</guid>
            <category><![CDATA[docker-swarm]]></category>
            <category><![CDATA[devops]]></category>
            <category><![CDATA[minikube]]></category>
            <category><![CDATA[windows]]></category>
            <category><![CDATA[kubernetes]]></category>
            <dc:creator><![CDATA[salah Eddine Admou]]></dc:creator>
            <pubDate>Tue, 04 Mar 2025 12:40:58 GMT</pubDate>
            <atom:updated>2025-03-04T12:40:58.672Z</atom:updated>
            <content:encoded><![CDATA[<p>Docker Desktop is one of the easiest ways to set up Kubernetes on Windows because it comes with a built-in Kubernetes cluster.</p><h3>How It Works</h3><ul><li>Docker Desktop uses <strong>Docker as the container runtime</strong>.</li><li>It <strong>does not require a separate virtual machine</strong>.</li><li>It provides an <strong>integrated Kubernetes experience</strong> without extra installations.</li></ul><h3>How to Enable Kubernetes in Docker Desktop</h3><p><strong>Install Docker Desktop</strong></p><ul><li>If you haven’t installed it yet, download it from Docker’s official website and install it.</li></ul><p><strong>Enable Kubernetes in Docker Desktop</strong></p><ul><li>Open Docker Desktop.</li><li>Navigate to <strong>Settings &gt; Kubernetes</strong>.</li><li>Check <strong>“Enable Kubernetes”</strong> and apply the changes.</li><li>Wait for the process to complete (this may take a few minutes).</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*_mk7FCjbBtXMqJ9G6Be7-w.png" /></figure><p><strong>Verify Kubernetes is Running</strong><br>Open a terminal (PowerShell or Command Prompt) and run:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/878/1*ZEr9VU8RFwYNNjMJMte-Mg.png" /></figure><p>If Kubernetes is working correctly, you should see an output like:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/875/1*RtlMVTaQfDN3S5CQS2OW5g.png" /></figure><h3>Pros &amp; Cons of Using Docker Desktop for Kubernetes</h3><p>✅ <strong>Pros</strong>:</p><ul><li>Easy to set up with a graphical interface.</li><li>No need for additional virtualization (uses Docker’s runtime).</li><li>Direct integration with your Docker containers.</li></ul><p>❌ <strong>Cons</strong>:</p><ul><li>Requires <strong>Docker Desktop</strong>, which can be resource-intensive.</li><li>Less flexibility compared to Minikube.</li><li>May not support all Kubernetes features needed for advanced use cases.</li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=0de2c6a2012b" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>