<?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 Hazem Hemied on Medium]]></title>
        <description><![CDATA[Stories by Hazem Hemied on Medium]]></description>
        <link>https://medium.com/@hazemhemied?source=rss-aed9bf637d88------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*Q6KMCTWNDCzw_9FV3qTaFg.png</url>
            <title>Stories by Hazem Hemied on Medium</title>
            <link>https://medium.com/@hazemhemied?source=rss-aed9bf637d88------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 28 Nov 2026 09:47:13 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@hazemhemied/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[Multi-Nodes K8S clusters the Quick and Easy way]]></title>
            <link>https://hazemhemied.medium.com/multi-nodes-k8s-clusters-the-quick-and-easy-way-c0fa556a8c8c?source=rss-aed9bf637d88------2</link>
            <guid isPermaLink="false">https://medium.com/p/c0fa556a8c8c</guid>
            <category><![CDATA[docker]]></category>
            <category><![CDATA[ubuntu-server]]></category>
            <category><![CDATA[ubuntu]]></category>
            <category><![CDATA[kubernetes-cluster]]></category>
            <category><![CDATA[kubernetes]]></category>
            <dc:creator><![CDATA[Hazem Hemied]]></dc:creator>
            <pubDate>Tue, 29 Mar 2022 19:01:46 GMT</pubDate>
            <atom:updated>2022-03-29T19:01:46.920Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/985/1*nzCO38pyKTeYN2Z-Ydh29A.png" /></figure><p>As a Mac user, I always got struggle to build quick, easy, powerful, and usable Kubernetes clusters as I need for testing|development.</p><p>For Production, I use <a href="https://www.redhat.com/en/technologies/cloud-computing/openshift"><strong><em>Red Hat OpenShift</em></strong></a> for its power, Enterprise readiness, security, and features out of the box.</p><p>In this article, I will try to show you the easiest way to do so, using some interesting tools like <a href="https://kind.sigs.k8s.io/"><strong><em>Kind</em></strong></a>, <a href="https://multipass.run/"><strong><em>Multipass</em></strong></a>, and <a href="https://www.tigera.io/project-calico/"><strong><em>Calico</em></strong></a> for networking.</p><h3><strong>Kind:</strong></h3><p>In this article, I choose to use Kind for building my development and testing cluster for its simplicity, flexibility, and transparency.<br>Kind is a project of the Kubernetes SIG (Special Interest Group).</p><h4>Why Kind?</h4><ol><li>You have mostly full control over what you build, building your custom image and using the desired version of Kubernetes you need to test.</li><li>You Can build multiple clusters with multiple architecture designs and with simple steps, you also have the ability to connect them to each other.</li><li>The most realistic solution among other community solutions with the smallest footprint.</li><li>Storage class included out of the box with auto provisioner, relies on the <a href="https://github.com/rancher/local-path-provisioner">Rancher local-path-provisioner</a>.</li><li>Supports Docker and Podman as the containers engine.</li><li>Supports <a href="https://kind.sigs.k8s.io/docs/user/rootless/">Rootless containers</a> with limitations.</li><li>By default, Kind uses its own CNI-based solution which is called (Kindnet), in this article, we will disable it and use calico instead.</li><li>Uses a <a href="https://yaml.org/"><em>YAML-based</em></a> configuration file to completely control the K8S nodes and their configuration for example (K8S version, networking, cluster name, etc…)</li></ol><p><strong>Other Solutions</strong> for building a development|testing K8S clusters:<br>Docker Desktop, Rancher Desktop, minikube, K3S.</p><h3>Multipass:</h3><p><strong>Multipass</strong> can launch and run virtual machines and configure them with <a href="https://cloud-init.io/">cloud-init</a> like a public cloud. Prototype your cloud launches locally for free.</p><h4>Why Multipass?</h4><ol><li>Easy to use for building, managing, and destroying <a href="https://ubuntu.com/">Ubuntu-based</a> VMs.</li><li>By default it uses Hyperkit on MacOs, however, it’s available for different virtualization drivers.<br>-&gt; You can use this link for more details on how to use <strong><em>VirtualBox</em></strong> with <strong><em>Multipass</em></strong> (<a href="https://multipass.run/docs/using-virtualbox-in-multipass-macos">HERE</a>).</li><li>Spins up VMs in no time.</li></ol><h3>Technical steps:</h3><ol><li>Installing Multipass.</li><li>Launching the <strong><em>Ubuntu</em></strong> instance.</li><li>Accessing the <strong><em>Ubuntu</em></strong> instance</li><li>Installing <strong><em>Docker-CE</em></strong>.</li><li>Installing <strong><em>Kind</em></strong>.</li><li>Installing <strong><em>kubectl</em></strong> (Kubernetes controller command line)</li><li>Building multi-node cluster.</li><li>Adding <strong><em>Calico</em></strong> network.</li><li>Adding <strong><em>Nginx</em></strong> ingress controller.</li></ol><h4>Installing Multipass:</h4><pre>brew install --cask multipass</pre><h4>Launching the Ubuntu instance:</h4><pre># Will launch instance with (8GB RAM, 6 CPU, 40GB Disk)<br>multipass launch --cpus 6 --mem 8G --disk 40G --name kind-test</pre><h4>Accessing the Ubuntu instance:</h4><pre>multipass shell kind</pre><pre># Then</pre><pre>sudo su -</pre><h4>Installing Docker-CE:</h4><pre>sudo apt-get update<br>sudo apt-get install ca-certificates curl gnupg lsb-release</pre><pre>curl -fsSL <a href="https://download.docker.com/linux/ubuntu/gpg">https://download.docker.com/linux/ubuntu/gpg</a> | sudo gpg --dearmor -o /usr/share/keyrings/docker-archive-keyring.gpg</pre><pre>echo &quot;deb [arch=$(dpkg --print-architecture) signed-by=/usr/share/keyrings/docker-archive-keyring.gpg] <a href="https://download.docker.com/linux/ubuntu">https://download.docker.com/linux/ubuntu</a> \<br> $(lsb_release -cs) stable&quot; | sudo tee /etc/apt/sources.list.d/docker.list &gt; /dev/null</pre><pre>sudo apt-get update<br>sudo apt-get install docker-ce docker-ce-cli containerd.io</pre><pre>sudo usermod -aG docker $(whoami)</pre><pre>sudo systemctl enable --now docker</pre><h4>Installing Kind:</h4><pre>curl -Lo ./kind <a href="https://kind.sigs.k8s.io/dl/v0.12.0/kind-linux-amd64">https://kind.sigs.k8s.io/dl/v0.12.0/kind-linux-amd64</a><br>chmod +x ./kind<br>sudo mv kind /usr/local/bin/</pre><h4>Installing kubectl (Kubernetes controller command line):</h4><pre>curl -LO &quot;<a href="https://dl.k8s.io/release/$(curl">https://dl.k8s.io/release/$(curl</a> -L -s <a href="https://dl.k8s.io/release/stable.txt)/bin/linux/amd64/kubectl">https://dl.k8s.io/release/stable.txt)/bin/linux/amd64/kubectl</a>&quot;<br>sudo mv kubectl /usr/local/bin/<br>sudo chmod +x /usr/local/bin/kubectl</pre><h4>Building multi-node cluster:</h4><p>Here we will make use of the Kind config file to create our own file and make our customization.</p><pre>cat &lt;&lt; EOF &gt;&gt; test-kind-cluster.yaml<br>kind: Cluster<br>apiVersion: kind.x-k8s.io/v1alpha4<br>name: kind-cluster<br>networking:<br>  apiServerAddress: &quot;0.0.0.0&quot;<br>  disableDefaultCNI: true<br>kubeadmConfigPatches:<br>- |<br>  apiVersion: kubeadm.k8s.io/v1beta2<br>  kind: ClusterConfiguration<br>  metadata:<br>  name: config<br>  networking:<br>    serviceSubnet: &quot;172.30.0.0/16&quot;<br>    podSubnet: &quot;10.128.0.0/16&quot;</pre><pre>nodes:<br>- role: control-plane<br>- role: control-plane<br>- role: control-plane<br>- role: worker<br>- role: worker<br>- role: worker<br>EOF</pre><pre>kind create cluster --config test-kind-cluster.yaml</pre><h4>Adding Calico network:</h4><pre>kubectl create -f <a href="https://projectcalico.docs.tigera.io/manifests/calico.yaml">https://projectcalico.docs.tigera.io/manifests/calico.yaml</a></pre><h4>Adding Nginx ingress controller:</h4><pre>kubectl apply -f <a href="https://raw.githubusercontent.com/kubernetes/ingress-nginx/controller-v1.1.2/deploy/static/provider/cloud/deploy.yaml">https://raw.githubusercontent.com/kubernetes/ingress-nginx/controller-v1.1.2/deploy/static/provider/cloud/deploy.yaml</a></pre><h3>Summary:</h3><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2F_jX1W0MHWkI%3Ffeature%3Doembed&amp;display_name=YouTube&amp;url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3D_jX1W0MHWkI&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2F_jX1W0MHWkI%2Fhqdefault.jpg&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=youtube" width="854" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/827189c930581ee3c2b1bcdf129454e3/href">https://medium.com/media/827189c930581ee3c2b1bcdf129454e3/href</a></iframe><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c0fa556a8c8c" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>