<?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[KUBELANCER PRIVATE LIMITED - Medium]]></title>
        <description><![CDATA[Kubelancer- Supports companies to adopt cloud infrastructure (AWS, GCP, Azure) containerization, modern CI/CD pipeline creation and application deployment on Kubernetes, Openshift and Cloud VM, securing systems and monitoring and logging, Infrastructure as a Code and Automation - Medium]]></description>
        <link>https://medium.com/kubelancer-private-limited?source=rss----28fdf80a32ac---4</link>
        <image>
            <url>https://cdn-images-1.medium.com/proxy/1*TGH72Nnw24QL3iV9IOm4VA.png</url>
            <title>KUBELANCER PRIVATE LIMITED - Medium</title>
            <link>https://medium.com/kubelancer-private-limited?source=rss----28fdf80a32ac---4</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 05 Dec 2026 07:26:01 GMT</lastBuildDate>
        <atom:link href="https://medium.com/feed/kubelancer-private-limited" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Ingress Gloo Edge setup on Kubernetes]]></title>
            <link>https://medium.com/kubelancer-private-limited/gloo-edge-setup-on-kubernetes-ef4491070114?source=rss----28fdf80a32ac---4</link>
            <guid isPermaLink="false">https://medium.com/p/ef4491070114</guid>
            <category><![CDATA[kubernetes]]></category>
            <category><![CDATA[devops]]></category>
            <category><![CDATA[service-mesh]]></category>
            <category><![CDATA[gloo]]></category>
            <category><![CDATA[gateway]]></category>
            <dc:creator><![CDATA[BalaSubramani K]]></dc:creator>
            <pubDate>Sat, 04 Jan 2025 12:58:42 GMT</pubDate>
            <atom:updated>2025-01-04T12:59:21.397Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*xN4QQY5P84HGAe9F.jpg" /><figcaption>Gloo Edge Service Mesh</figcaption></figure><h3>Gloo Edge</h3><p>Gloo Edge is a modern Kubernetes-native API Gateway that provides all of the functionality from within Kubernetes. Gloo Edge help us to solve how we manage API and Web traffic at scale across our Enterprise.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/721/0*tc7lCZuacUgZXIah" /></figure><h3>Setup Gloo Edge Open-Source in Minikube</h3><p>Gloo Edge Open-Source runs in 3 different modes</p><ol><li>Run Gloo Edge in gateway mode to function as an API Gateway.</li><li>Run Gloo Edge in ingress mode to act as a standard Kubernetes Ingress controller.</li><li>Gloo Edge Enterprise</li></ol><p>There are two primary ways to install the Gloo Edge in production</p><ol><li>Install Gloo Edge on Kubernetes</li><li>Run Gloo Edge on a HashiCorp Nomad Cluster, using Consul for configuration and Vault for secret storage.</li></ol><h3>Kubernetes Cluster Setup &amp; Gloo Edge Install</h3><blockquote><strong>We are going to install Gloo Edge in Kubernetes</strong></blockquote><p>In this Demo, Let us install Gloo Edge in Minikube Kubernetes Cluster environmentSteps:</p><ol><li>Install Colima</li><li>Install Minikube</li><li>Install Gloo Edge</li><li>Install Gloo Gateway</li><li>Deploy sample Application</li><li>Verify the Upstream for the sample Application</li><li>Configure Routing</li><li>Verify Virtual Service</li><li>Test the Application</li></ol><h3>To Install Colima &amp; Minikube on Mac OS</h3><p>Ref: <a href="https://blog.kubelancer.com/install-minikube-on-mac-os/">https://blog.kubelancer.com/install-minikube-on-mac-os/</a></p><h3>Install Gloo Edge</h3><p>Run below command to install gloo control binary</p><pre>$ curl -sL https://run.solo.io/gloo/install | sh</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*J3YtADQjbN4N3BT7" /></figure><h3>Export binary PATH as OS env</h3><pre>$ export PATH=$HOME/.gloo/bin:$PATH</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/896/0*kqvzlx5ltZnghABd" /></figure><h3>Install Gloo Gateway</h3><pre>$ glooctl install gateway</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/781/0*KLoeeUCbsVskk_jO" /></figure><h3>Verify Gloo Gateway installation Status</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*gb71CfDnb2HvRafB" /></figure><blockquote>Look at LoadBalancer is Pending..To assign LoadBalancer IP Address, Creates a network tunnel to expose services of type LoadBalancer to your local loopback IP address 127.0.0.1 / localhost.</blockquote><p>Run in separate Terminal window</p><pre>$ minikube tunnel</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*L_bPLaRmVDu1eZMj" /></figure><blockquote>Verify LoadBalancer</blockquote><pre>$ kubectl get svc -n gloo-system</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*0nGnLBB0g50VUYFw" /></figure><h3>Deploy a sample application on dev namespace</h3><pre>$ cd kubelancer-lab-sample-deployment<br>$ kubectl apply -f deployment.yaml</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/927/0*JzjKg3_cvTj61o3E" /></figure><h3>Verify the Upstream for the sample Application</h3><pre>$ glooctl get upstreams</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*TCVraTdAXtS9LKUv" /></figure><h3>Configure Route</h3><p>Now we Configure Route to create traffic rules to expose the Application public Access</p><pre>$ glooctl add route --path-prefix=/ --dest-name  dev-kubeapp-80</pre><blockquote>— dest-name dev-kubeapp is the upstream</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*xwyd3M-eMjI9D_Wv" /></figure><h3>Verify Virtual Service</h3><pre>$ glooctl get virtualservice</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*Rtb56BCMF09YOSZr" /></figure><h3>Test the Application</h3><p>Run <a href="http://localhost/?ref=blog.kubelancer.com">http://localhost</a></p><blockquote><strong>Output</strong></blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*J03lB0ho5df7k0dh" /></figure><h3>To Uninstall sample application, Gloo Edge, Minikube and Colima</h3><pre>$ kubectl delete -f deployment.yaml<br><br>$ glooctl uninstall --all<br><br>$ minikube stop<br><br>$ colima stop</pre><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ef4491070114" width="1" height="1" alt=""><hr><p><a href="https://medium.com/kubelancer-private-limited/gloo-edge-setup-on-kubernetes-ef4491070114">Ingress Gloo Edge setup on Kubernetes</a> was originally published in <a href="https://medium.com/kubelancer-private-limited">KUBELANCER PRIVATE LIMITED</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Local Kubernetes Ingress LoadBalancer Solution]]></title>
            <link>https://medium.com/kubelancer-private-limited/local-kubernetes-ingress-loadbalancer-solution-12765fc93e2b?source=rss----28fdf80a32ac---4</link>
            <guid isPermaLink="false">https://medium.com/p/12765fc93e2b</guid>
            <category><![CDATA[load-balancer]]></category>
            <category><![CDATA[ingress]]></category>
            <category><![CDATA[kubernetes]]></category>
            <category><![CDATA[metallb]]></category>
            <category><![CDATA[devops]]></category>
            <dc:creator><![CDATA[BalaSubramani K]]></dc:creator>
            <pubDate>Sat, 04 Jan 2025 12:58:20 GMT</pubDate>
            <atom:updated>2025-01-01T09:24:43.573Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*GrQwgdfVBfd89Fsh.jpg" /></figure><h3>Ingress</h3><p>An API object that manages external access to the services in a cluster, typically HTTP.</p><p>Ingress may provide load balancing, SSL termination and name-based virtual hosting.</p><h3><strong>Types of Ingress</strong></h3><h4><strong>1. Single Service Ingress:</strong></h4><p>Ingress by specifying a default backend with no rules</p><h4>2. Name Based Virtual Hosting ingress:</h4><p>Supports routing HTTP traffic to multiple hostnames at the same IP address</p><h4>3. Simple Fanout / Path Based ingress:</h4><p>Route traffic from a single IP address to more than one service, based on the HTTP URI.</p><h3>Ingress rule</h3><p>Rules defined by an Ingress object</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*LG6TZAGy_l0X6xeAz3rGQg.png" /></figure><h3>Pre-Requisites</h3><p>You must have an <a href="https://kubernetes.io/docs/concepts/services-networking/ingress-controllers">Ingress controller</a> to satisfy an Ingress. Only creating an Ingress resource has no effect.</p><p>You may need to deploy an Ingress controller such as <a href="https://kubernetes.github.io/ingress-nginx/deploy/">ingress-nginx</a>.</p><h3>Create Namespace</h3><pre>kubectl create namespace ingress-nginx</pre><h3><strong>Install Nginx Ingress</strong></h3><pre>kubectl apply -f https://raw.githubusercontent.com/kubernetes/ingress-nginx/controller-v1.8.2/deploy/static/provider/cloud/deploy.yaml</pre><h4><strong>Output</strong></h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*4UxoAuiz2CLJbwUi" /></figure><h3><strong>Pre-flight check</strong></h3><pre>kubectl get pods -n ingress-nginx</pre><blockquote><strong>Ensure ingress controller pod to be up, running, and ready</strong></blockquote><h4><strong>Output</strong></h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*tCV9YaXRWD5g2voF" /></figure><h3><strong>List Service</strong></h3><pre>kubectl get svc --namespace=ingress-nginx</pre><h4><strong>Output</strong></h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*t6WgZrH5fJ12yUYX" /></figure><blockquote><strong>LoadBalancer is pending because it local cluster, not in cloud</strong></blockquote><h3>Local Kubernetes LoadBalancer Solution</h3><h4><strong>metallb</strong></h4><p>But we have solution for create LoadBalancer in local cluster by using metallb</p><blockquote><strong>metallb — Not related to Exam, just for our Lab Purpose</strong></blockquote><h4><strong>Install metallb</strong></h4><pre>kubectl apply -f https://raw.githubusercontent.com/metallb/metallb/v0.14.3/config/manifests/metallb-native.yaml</pre><h4>List pods</h4><pre>kubectl get pods -n metallb-system</pre><p>Output</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*FzqyRgLLkSi5N3Av" /></figure><h4>Defining the IPs to assign to the Load Balancer services</h4><pre>vi ip-pool.yaml</pre><pre>apiVersion: metallb.io/v1beta1<br>kind: IPAddressPool<br>metadata:<br>  name: cheap<br>  namespace: metallb-system<br>spec:<br>  addresses:<br>  - 192.168.10.0/24</pre><h4>Apply the ip pool</h4><pre>kubectl apply -f ip-pool.yaml </pre><h4>Verify the nginx ingress service LoadBalancer IP status</h4><pre>kubectl get svc -n ingress-nginx</pre><p>Output</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*SzwNLcl78MOrcI6r" /></figure><blockquote><strong>IP Address got allotted by Metallb.</strong></blockquote><h3>Single Ingress</h3><p>Deploy a sample application.</p><h4>Create deployment</h4><pre>vi kubewebserver.yaml</pre><pre>apiVersion: apps/v1<br>kind: Deployment<br>metadata:<br>  name: kubewebserver<br>  labels:<br>    app: kubewebserver<br>spec:<br>  replicas: 1<br>  selector:<br>    matchLabels:<br>      app: kubewebserver<br>  template:<br>    metadata:<br>      labels:<br>        app: kubewebserver<br>    spec:<br>      containers:<br>      - name: kubewebserver<br>        image: nginx:alpine<br>        ports:<br>        - containerPort: 80</pre><h4>Apply the deployment</h4><pre>kubectl apply -f kubewebserver.yaml</pre><h4>Create Service</h4><pre>vi kubewebserver-service.yaml</pre><pre>apiVersion: v1<br>kind: Service<br>metadata:<br>  name: kubewebserver-service<br>  labels:<br>    app: kubewebserver-service<br>spec:<br>  type: ClusterIP<br>  ports:<br>  - port: 80<br>    targetPort: 80<br>    protocol: TCP<br>  selector:<br>    app: kubewebserver</pre><h4>Apply the service</h4><pre>kubectl apply -f kubewebserver-service.yaml</pre><h3>Create a Ingress</h3><h4>To get ingress Class</h4><pre>kubectl get ingressClass -A</pre><h4>Create minimal ingress without host</h4><pre>vi minimal-ingress.yaml</pre><pre>apiVersion: networking.k8s.io/v1<br>kind: Ingress<br>metadata:<br>  name: minimal-ingress<br>  annotations:<br>    nginx.ingress.kubernetes.io/rewrite-target: /<br>spec:<br>  ingressClassName: nginx<br>  rules:<br>  - http:<br>      paths:<br>      - path: /<br>        pathType: Prefix<br>        backend:<br>          service:<br>            name: kubewebserver-service<br>            port:<br>              number: 80</pre><h4>Apply the ingress</h4><pre>kubectl apply -f minimal-ingress.yaml</pre><h4>List ingress</h4><pre>kubectl get ingress</pre><p>Output</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/751/0*WaCwWO8z6TZM2bJS" /></figure><h4>Validate</h4><pre>curl 192.168.10.0</pre><p>Output</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/976/0*DjsOv9ZfQzuj8R4Y" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=12765fc93e2b" width="1" height="1" alt=""><hr><p><a href="https://medium.com/kubelancer-private-limited/local-kubernetes-ingress-loadbalancer-solution-12765fc93e2b">Local Kubernetes Ingress LoadBalancer Solution</a> was originally published in <a href="https://medium.com/kubelancer-private-limited">KUBELANCER PRIVATE LIMITED</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Host Based Ingress on Kubernetes Cluster]]></title>
            <link>https://medium.com/kubelancer-private-limited/host-based-ingress-on-kubernetes-cluster-7714ed8eeb08?source=rss----28fdf80a32ac---4</link>
            <guid isPermaLink="false">https://medium.com/p/7714ed8eeb08</guid>
            <category><![CDATA[containers]]></category>
            <category><![CDATA[devops]]></category>
            <category><![CDATA[nginx-ingress]]></category>
            <category><![CDATA[kubernetes]]></category>
            <category><![CDATA[host]]></category>
            <dc:creator><![CDATA[BalaSubramani K]]></dc:creator>
            <pubDate>Sat, 04 Jan 2025 12:57:27 GMT</pubDate>
            <atom:updated>2025-01-04T12:57:17.179Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*4hb2KcbRuJ7FtPXG.jpg" /></figure><h3>Name Based Virtual Hosting - Demo</h3><p>Name-based virtual hosts support routing HTTP traffic to multiple host names at the same IP address.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*90rFT0QQy0uv-hj6.png" /></figure><h4>Let us Create 2 Deployment and Service for demo (For tosee multi-host demo purpose)</h4><pre>vi deployment-galaxian-astrion.yaml</pre><pre>apiVersion: apps/v1<br>kind: Deployment<br>metadata:<br>  name: galaxian<br>  labels:<br>    app: galaxian<br>spec:<br>  replicas: 1<br>  selector:<br>    matchLabels:<br>      app: galaxian<br>  template:<br>    metadata:<br>      labels:<br>        app: galaxian<br>    spec:<br>      containers:<br>      - name: galaxian<br>        image: kubelancer/galaxian:v1<br>        ports:<br>        - containerPort: 80<br>---<br>apiVersion: v1<br>kind: Service<br>metadata:<br>  name: galaxian-service<br>  labels:<br>    app: galaxian-service<br>spec:<br>  type: ClusterIP<br>  ports:<br>  - port: 80<br>    targetPort: 80<br>    protocol: TCP<br>  selector:<br>    app: galaxian<br>---<br>apiVersion: apps/v1<br>kind: Deployment<br>metadata:<br>  name: astrion<br>  labels:<br>    app: astrion<br>spec:<br>  replicas: 1<br>  selector:<br>    matchLabels:<br>      app: astrion<br>  template:<br>    metadata:<br>      labels:<br>        app: astrion<br>    spec:<br>      containers:<br>      - name: astrion<br>        image: kubelancer/astrion:v1<br>        ports:<br>        - containerPort: 80<br>---<br>apiVersion: v1<br>kind: Service<br>metadata:<br>  name: astrion-service<br>  labels:<br>    app: astrion-service<br>spec:<br>  type: ClusterIP<br>  ports:<br>  - port: 80<br>    targetPort: 80<br>    protocol: TCP<br>  selector:<br>    app: astrion</pre><p><strong>Apply the deployment and service</strong></p><pre>kubectl apply -f deployment-galaxian-astrion.yaml</pre><ul><li><strong>Get Deployments and Pods status</strong></li></ul><pre>kubectl get deployments,pods,svc</pre><h4>Output</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*Nc-QR54Vh4eufrDS.png" /></figure><h3>Create multi-host ingress</h3><pre>vi ingress-namebased.yaml</pre><pre>apiVersion: networking.k8s.io/v1<br>kind: Ingress<br>metadata:<br>  name: ingress-namebased<br>spec:<br>  ingressClassName: nginx<br>  rules:<br>  - host: astrion.kubelancer.com<br>    http:<br>      paths:<br>      - backend:<br>          service:<br>            name: astrion-service<br>            port:<br>              number: 80<br>        path: /<br>        pathType: Prefix<br>  - host: galaxian.kubelancer.com<br>    http:<br>      paths:<br>      - backend:<br>          service:<br>            name: galaxian-service<br>            port:<br>              number: 80<br>        path: /<br>        pathType: Prefix</pre><p><strong>Apply</strong></p><pre>kubectl apply -f ingress-namebased.yaml</pre><ul><li><strong>Get ingress</strong></li></ul><pre>kubectl get ingress</pre><h3>Output</h3><pre>ubuntu@master1:~$ kubectl get ingress<br>NAME               CLASS  HOSTS                          ADDRESS PORT AGE<br>ingress-namebased  &lt;none&gt; astrion.kubelancer.com,galaxian.kubelancer.com 192.168.10. 80 20s</pre><h3>Validate</h3><pre>curl --resolve astrion.kubelancer.com:80:192.168.10.0 http://astrion.kubelancer.com</pre><pre>curl --resolve galaxian.kubelancer.com:80:192.168.10.0 http://galaxian.kubelancer.com</pre><h3>Output</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*uMcqKFSHRaERad2E.png" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=7714ed8eeb08" width="1" height="1" alt=""><hr><p><a href="https://medium.com/kubelancer-private-limited/host-based-ingress-on-kubernetes-cluster-7714ed8eeb08">Host Based Ingress on Kubernetes Cluster</a> was originally published in <a href="https://medium.com/kubelancer-private-limited">KUBELANCER PRIVATE LIMITED</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Ingress on Local Kubernetes Cluster]]></title>
            <link>https://medium.com/kubelancer-private-limited/ingress-on-local-kubernetes-cluster-902f4e323827?source=rss----28fdf80a32ac---4</link>
            <guid isPermaLink="false">https://medium.com/p/902f4e323827</guid>
            <category><![CDATA[kubeadm]]></category>
            <category><![CDATA[kubernetes]]></category>
            <category><![CDATA[metallb]]></category>
            <category><![CDATA[devops]]></category>
            <category><![CDATA[nginx-ingress]]></category>
            <dc:creator><![CDATA[BalaSubramani K]]></dc:creator>
            <pubDate>Sat, 04 Jan 2025 12:45:35 GMT</pubDate>
            <atom:updated>2025-01-01T09:39:31.595Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*OrolzqQiXz7_RLapA-30oA.png" /></figure><h3>On Local Cluster Created by using Kubeadm</h3><h3>Why Ingress need on Kubernetes?</h3><p>Ingress is a key component in Kubernetes that provides HTTP and HTTPS routing to services based on rules defined by the user.</p><p>Ingress may provide load balancing, SSL termination and name-based virtual hosting.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*CcspcgY-TAKJVuhS.png" /></figure><p>In this blog, am going to demonstrate Host Based and Path Based ingress how to as simple way by installing Nginx ingress controller on cluster, for LoadBalancer solution we are going to use metallb because its local cluster created using kubeadm with 3 virtual machines.</p><h3>General types of Ingress we use on Kubernetes</h3><h3>1. Single Service Ingress:</h3><p>Ingress by specifying a default backend with no rules</p><h3>2. Name Based Virtual Hosting ingress:</h3><p>Supports routing HTTP traffic to multiple hostnames at the same IP address</p><h3>3. Simple Fanout / Path Based ingress:</h3><p>Route traffic from a single IP address to more than one service, based on the HTTP URI.</p><h3>Ingress rule</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*SHg1_EHGdXtbp1kj.png" /></figure><h3>Pre-Requisites</h3><p>You may need to deploy an Ingress controller such as <a href="https://kubernetes.github.io/ingress-nginx/deploy/?ref=blog.kubelancer.com">ingress-nginx</a>.</p><h3>Create Namespace</h3><pre>kubectl create namespace ingress-nginx</pre><h3>Install Nginx Ingress</h3><pre>kubectl apply -f https://raw.githubusercontent.com/kubernetes/ingress-nginx/controller-v1.8.2/deploy/static/provider/cloud/deploy.yaml</pre><h4>Output</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*ngENOPEl1ZhRlK7i.png" /></figure><h3>Pre-flight check</h3><pre>kubectl get pods -n ingress-nginx</pre><blockquote><strong>Ensure ingress controller pod to be up, running, and ready.</strong></blockquote><h4>Output</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*BhtJkWJZGlgPO-ge.png" /></figure><h3>List Service</h3><pre>kubectl get svc --namespace=ingress-nginx</pre><h4>Output</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*RrCRgbMiuLV1MwY8.png" /></figure><blockquote>LoadBalancer is in pending state, because it’s local cluster, not in the cloud or no cloud controller has installed.</blockquote><p><strong><em>LoadBalancer Solution ??? for cluster created using kubeadm😀</em></strong></p><h3>metallb</h3><p>But we have solution for create LoadBalancer in local cluster by using metallb</p><h3>Install metallb</h3><pre>kubectl apply -f https://raw.githubusercontent.com/metallb/metallb/v0.14.3/config/manifests/metallb-native.yaml</pre><h3>List pods</h3><pre>kubectl get pods -n metallb-system</pre><h4>Output</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*lx0juAHe-wLKcvxY.png" /></figure><h3>Defining the IPs to assign to the Load Balancer Services</h3><pre>vi ip-pool.yaml</pre><pre>apiVersion: metallb.io/v1beta1<br>kind: IPAddressPool<br>metadata:<br>  name: cheap<br>  namespace: metallb-system<br>spec:<br>  addresses:<br>  - 192.168.10.0/24</pre><h3>Apply the ip pool</h3><pre>kubectl apply -f ip-pool.yaml</pre><h3>Verify the Nginx ingress service for LoadBalancer IP Status</h3><pre>kubectl get svc -n ingress-nginx</pre><h3>Output</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*kMuk-Qn3mcdDsah7.png" /></figure><blockquote><strong>IP Address got allotted by metallb.</strong></blockquote><h3>Single Ingress — Demo</h3><p><strong>Deploy a sample application.</strong></p><ul><li>Create deployment</li></ul><pre>vi kubewebserver.yaml</pre><pre>apiVersion: apps/v1<br>kind: Deployment<br>metadata:<br>  name: kubewebserver<br>  labels:<br>    app: kubewebserver<br>spec:<br>  replicas: 1<br>  selector:<br>    matchLabels:<br>      app: kubewebserver<br>  template:<br>    metadata:<br>      labels:<br>        app: kubewebserver<br>    spec:<br>      containers:<br>      - name: kubewebserver<br>        image: nginx:alpine<br>        ports:<br>        - containerPort: 80</pre><ul><li>Apply the deployment</li></ul><pre>kubectl apply -f kubewebserver.yaml</pre><ul><li>Create Service</li></ul><pre>vi kubewebserver-service.yaml</pre><pre>apiVersion: v1<br>kind: Service<br>metadata:<br>  name: kubewebserver-service<br>  labels:<br>    app: kubewebserver-service<br>spec:<br>  type: ClusterIP<br>  ports:<br>  - port: 80<br>    targetPort: 80<br>    protocol: TCP<br>  selector:<br>    app: kubewebserver</pre><ul><li>Apply the service</li></ul><pre>kubectl apply -f kubewebserver-service.yaml</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/681/0*3CdIVV9QMNbF0dQ2.png" /></figure><h4>To get ingress Class</h4><p>First get the ingress class, we need to define on ingress yaml</p><pre>kubectl get ingressClass -A</pre><h3>Create minimal ingress without host</h3><pre>vi minimal-ingress.yaml</pre><pre>apiVersion: networking.k8s.io/v1<br>kind: Ingress<br>metadata:<br>  name: minimal-ingress<br>  annotations:<br>    nginx.ingress.kubernetes.io/rewrite-target: /<br>spec:<br>  ingressClassName: nginx<br>  rules:<br>  - http:<br>      paths:<br>      - path: /<br>        pathType: Prefix<br>        backend:<br>          service:<br>            name: kubewebserver-service<br>            port:<br>              number: 80</pre><ul><li>Apply the ingress</li></ul><pre>kubectl apply -f minimal-ingress.yaml</pre><ul><li>List ingress</li></ul><pre>kubectl get ingress</pre><h3>Output</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*r8qTKYbWrCabkXIp.png" /></figure><h3>Validate</h3><pre>curl 192.168.10.0</pre><h3>Output</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*rD3ZV8JhgOTa1W2q.png" /></figure><h3>Create ingress with host</h3><pre>vi ingress-with-host.yaml</pre><pre>apiVersion: networking.k8s.io/v1<br>kind: Ingress<br>metadata:<br>  name: ingress-with-host<br>  annotations:<br>    nginx.ingress.kubernetes.io/rewrite-target: /<br>spec:<br>  ingressClassName: nginx<br>  rules:<br>  - host: app1.kubelancer.com<br>    http:<br>      paths:<br>      - path: /<br>        pathType: Prefix<br>        backend:<br>          service:<br>            name: kubewebserver-service<br>            port:<br>              number: 80</pre><ul><li>Apply the ingress</li></ul><pre>kubectl apply -f ingress-with-host.yaml</pre><ul><li>Get ingress</li></ul><pre>kubectl get ingress</pre><h3>Output</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*Wp0YIiLL4Y31zBGe.png" /></figure><h3>Validate</h3><p><strong>Try with by using IP Address</strong></p><pre>curl 192.168.10.0</pre><blockquote><strong>Using IP Address will return error</strong></blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/742/0*FkQlq3KMpDZp2gm4.png" /></figure><p><strong>Use Hostname</strong></p><pre>curl --resolve app1.kubelancer.com:80:192.168.10.0 http://app1.kubelancer.com:80</pre><p>Output</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*-Bnyziymh-gN7AR-.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*yEgAxjqlQgQNR_Qt.png" /><figcaption>Service</figcaption></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=902f4e323827" width="1" height="1" alt=""><hr><p><a href="https://medium.com/kubelancer-private-limited/ingress-on-local-kubernetes-cluster-902f4e323827">Ingress on Local Kubernetes Cluster</a> was originally published in <a href="https://medium.com/kubelancer-private-limited">KUBELANCER PRIVATE LIMITED</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Build multi-arch container images]]></title>
            <link>https://medium.com/kubelancer-private-limited/build-multi-arch-container-images-c3b20dfaae41?source=rss----28fdf80a32ac---4</link>
            <guid isPermaLink="false">https://medium.com/p/c3b20dfaae41</guid>
            <category><![CDATA[devops]]></category>
            <category><![CDATA[build]]></category>
            <category><![CDATA[multiarch]]></category>
            <category><![CDATA[containers]]></category>
            <category><![CDATA[docker]]></category>
            <dc:creator><![CDATA[BalaSubramani K]]></dc:creator>
            <pubDate>Sat, 04 Jan 2025 12:45:17 GMT</pubDate>
            <atom:updated>2025-01-04T12:45:02.846Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*0qU93qDE4RYoT97k.png" /></figure><ul><li>Current days raise of ARM based architecture in Apple machines and Cloud Compute Virtual machines, now we are in timeline to build our container images to support multiple architecture.</li></ul><blockquote>How to build container images to support multiple architecture?</blockquote><blockquote>Solution: Let use Docker CLI and buildx.</blockquote><p>Docker CLI and buildx ships default on Docker Desktop 19.03 or later.</p><blockquote>buildx is in experiment state, which x denotes experiment. expecting stable version soon.</blockquote><p>Let us build a multi arch container image</p><h3>Demo</h3><ol><li>Let create simple Go application</li><li>Create Dockerfile</li><li>Docker login</li><li>Create builder</li><li>Verify builder</li><li>Create repo in Dockerhub</li><li>Build and Push for multi arch docker images to Docker hub.</li><li>Verify multi arch images on Docker hub console</li><li>Verify multi arch images using imagetools</li><li>Create Amazon Linux EC2 machine with AMD arch and install docker engine</li><li>Check the machine architecture</li><li>Pull and Run docker image on EC2 AMD machine</li><li>Verify image on EC2 AMD machine</li><li>Create Amazon Linux EC2 machine with ARM arch and install docker engine</li><li>Check the machine architecture</li><li>Pull and Run docker image on EC2 ARM machine</li><li>Verify image on EC2 ARM machine</li></ol><blockquote>Steps Start :-</blockquote><ol><li><strong>Let create simple Go application</strong></li></ol><p>Create file main.go</p><pre>package main			<br><br>import (<br>	&quot;fmt&quot;<br>	&quot;net/http&quot;<br>	&quot;runtime&quot;<br>)<br><br>func main() {<br>	// Define a handler function for the root (&quot;/&quot;) route<br>	http.HandleFunc(&quot;/&quot;, func(w http.ResponseWriter, r *http.Request) {<br>		// Get the operating system architecture<br>		arch := runtime.GOARCH<br><br>		// Display a message with the operating system architecture<br>		message := fmt.Sprintf(&quot;Hello, Golang Web! Running on %s architecture.&quot;, arch)<br>		fmt.Fprintln(w, message)<br>	})<br><br>	// Specify the port to listen on<br>	port := 8080<br>	addr := fmt.Sprintf(&quot;:%d&quot;, port)<br><br>	// Start the HTTP server<br>	fmt.Printf(&quot;Server listening on http://localhost:%d\n&quot;, port)<br>	http.ListenAndServe(addr, nil)<br>}</pre><blockquote>above go program display running Arch</blockquote><p><strong>2. Create Dockerfile</strong></p><pre># Use the official Golang base image<br>FROM golang:latest<br><br># Set the working directory inside the container<br>WORKDIR /app<br><br># Copy the local code into the container<br>COPY . .<br><br># Build the Go application<br>RUN go build -o dockermultiarch ./main.go<br><br># Expose the port the app runs on<br>EXPOSE 8080<br><br># Command to run the executable<br>CMD [&quot;./dockermultiarch&quot;]</pre><p><strong>3. Docker login</strong></p><p>Login to dockerhub , create account if not already <a href="https://hub.docker.com/?ref=blog.kubelancer.com">https://hub.docker.com</a></p><pre>$ docker login</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*wIc-mBg_0Vj0t8BD.png" /></figure><h3>Enable Beta Features on Dockerhub Desktop</h3><p>On Settings ➡️Features in development ➡️</p><p>Ensure Ticked ✅ Use containerd for pulling and storing images</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*bYIQsCwh18tJyRG-" /></figure><p><strong>4. Create builder</strong></p><pre>$ docker buildx create --name kubelancerbuilder --bootstrap --use</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*HmMBSl8_R716PdaE.png" /></figure><p><strong>5. Verify builder</strong></p><pre>$ docker buildx inspect kubelancerbuilder</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*vjHQ5rK2oqtYtehE.png" /></figure><p><strong>6. Create repo in Dockerhub</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*bsd1bniJp-FQkaSE.png" /></figure><p><strong>Build and Push for multi arch docker images to Docker hub</strong></p><pre>docker buildx build --push --platform linux/arm64,linux/amd64  --tag hariharankube/dockermultiarch:v1.0.0 .</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*wB_tZP8nWglcfKaj.png" /></figure><p><strong>Verify multi arch images on Docker hub console</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*iXyceTxoWSDSzq0G.png" /></figure><p><strong>Verify multi arch images using imagetools</strong></p><pre>docker buildx imagetools inspect hariharankube/dockermultiarch:v1.0.0</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*AxYFujWYL_UMWxwW.png" /></figure><p><strong>Create Amazon Linux EC2 machine with AMD arch and install docker engine</strong></p><pre>aws ec2 run-instances --image-id ami-07caf09b362be10b8 --instance-type t2.micro --key-name harikey --security-group-ids sg-07f79b5004ede58e4 --subnet-id subnet-046f481b26c67895a</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*RuyfUBzYdX5GUNF1.png" /></figure><pre>ssh -i &quot;harikey.pem&quot; ec2-user@ec2-3-81-0-208.compute-1.amazonaws.com</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*_vEJRBMANxyW5ZQG.png" /></figure><p><strong>Check the Machine Architecture</strong></p><pre>arch</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/864/0*1h-Wh6K9ozuHBaT2.png" /></figure><pre>sudo yum install docker</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*bX8UChU7XkcAyKWx.png" /></figure><pre>sudo systemctl status docker.service</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*qAfPJUMFSs2uOTcd.png" /></figure><p><strong>Pull and Run docker image on EC2 AMD machine</strong></p><pre>docker pull hariharankube/dockermultiarch:v1.0.0</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*L4y0t2Z9EtKtrjAU.png" /></figure><pre>docker inspect hariharankube/dockermultiarch:v1.0.0 | grep -i Architecture</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*7XROQ7pakdzOp9mH.png" /></figure><p><strong>Verify image on EC2 AMD machine</strong></p><pre>docker image ls</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*H7_yH4qPe4lrbro1.png" /></figure><p><strong>Create Amazon Linux EC2 machine with ARM arch and install docker engine</strong></p><pre>aws ec2 run-instances --image-id ami-0092a7ee6b8b2222a --instance-type t4g.nano --key-name harikey --security-group-ids sg-07f79b5004ede58e4 --subnet-id subnet-00d73a97de4c0f03d</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*YXD585_ufY2YG_9X.png" /></figure><pre>ssh -i &quot;harikey.pem&quot; ec2-user@ec2-3-83-20-17.compute-1.amazonaws.com</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*q65iAHDEHPuzw_nR.png" /></figure><p><strong>Check the Machine Architecture</strong></p><pre>arch</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/760/0*zW9p66pWLJ6fZYQy.png" /></figure><pre>sudo yum install docker</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*kgt16SVYqHhgNkmu.png" /></figure><pre>sudo systemctl status docker.service</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*WHV-GxYXY8sGGZZQ.png" /></figure><p><strong>Pull and Run docker image on EC2 ARM machine</strong></p><pre>docker pull hariharankube/dockermultiarch:v1.0.0</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*_9-iyrMGU2G3MWXj.png" /></figure><pre>docker inspect hariharankube/dockermultiarch:v1.0.0 | grep -i Architecture</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*r9lr87veoJGDAgq7.png" /></figure><p><strong>Verify image on EC2 ARM machine</strong></p><pre>docker image ls</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*zXA0hgSlTdaRtnau.png" /></figure><h3>Happy Computing :)</h3><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c3b20dfaae41" width="1" height="1" alt=""><hr><p><a href="https://medium.com/kubelancer-private-limited/build-multi-arch-container-images-c3b20dfaae41">Build multi-arch container images</a> was originally published in <a href="https://medium.com/kubelancer-private-limited">KUBELANCER PRIVATE LIMITED</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Virtualization Saves the IT World]]></title>
            <link>https://medium.com/kubelancer-private-limited/virtualization-saves-the-it-world-7525a978f8fe?source=rss----28fdf80a32ac---4</link>
            <guid isPermaLink="false">https://medium.com/p/7525a978f8fe</guid>
            <category><![CDATA[types-of-virtualization]]></category>
            <category><![CDATA[cloud-computing]]></category>
            <category><![CDATA[virtualization]]></category>
            <category><![CDATA[containers]]></category>
            <category><![CDATA[virtualization-technology]]></category>
            <dc:creator><![CDATA[BalaSubramani K]]></dc:creator>
            <pubDate>Thu, 26 Dec 2024 14:18:17 GMT</pubDate>
            <atom:updated>2024-12-26T12:05:55.264Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*M2-s7TFrIssatdJ0t7XDMw.png" /></figure><h3>Virtualization</h3><p>Virtualization, the compute world using virtualizations everywhere. Certainly, in the desktop, datacenter and cloud infrastructure.</p><h3>Virtualization in the IT World</h3><h4>Challenges Before Virtualization</h4><ol><li>Data Center Maintenace (AC / Cabling etc.)</li><li>IT / System admins struggled with administrations and troubleshooting’s</li><li>Application deploy will take a month to bring up</li><li>High Availability / Loadbalance are impossible</li><li>High Cost for simple application deployment and management</li><li>Under utilize the resource (CPU/MEM), No measure / Metrics to utilization.</li></ol><h4>How Virtualization Saves the IT world?</h4><ol><li>Quickly adding / creating servers</li><li>Simplicity in maintenance which relaxed IT Team</li><li>Achieve HA/Scalability/LoadBalance/Redundant/Fault Tolerance</li><li>Migrate VM are extremely easy</li><li>Single click Backup / Restore the entire VM</li><li>Setting up Disaster Recovery and quick recover business back</li></ol><blockquote>Now, let us understand virtualization concepts. Without knowing about it, makes anyone difficult to understand the cloud and container technologies.</blockquote><h4>What is Virtualization?</h4><p>Technology that allows the creation of virtual versions of hardware, operating systems, storage, or network resources.</p><h4>What is Virtual Machine?</h4><p>Virtual machines (VMs) include an operating system, shared libraries, applications, and data essentially everything a physical server would have packaged inside them. As a result, VMs are relatively large in size and can be slower to start up compared to containers, which are much faster. Additionally, because VMs include their own operating systems and applications, they require more frequent updates and patches than containers.</p><h4><strong>What is Container?</strong></h4><p>A lightweight virtualization technology that packages applications with their dependencies, sharing the host OS kernel (e.g., Docker, Kubernetes).</p><h3>Virtualization Forms</h3><h4>Server Virtualization:</h4><p>Allocate a single physical server into multiple virtual servers, each running its own operating system and applications independently.<br><em>Example: VMware ESXi, Microsoft Hyper-V.</em></p><h4>Storage Virtualization:</h4><p>Combines multiple physical storage devices into a single, unified virtual storage pool for easier management and scalability.<br><em>Example: VMware vSAN, Dell EMC VPLEX, Netapp Storage.</em></p><h4>Network Virtualization:</h4><p>Abstracts physical network resources (switches, routers) to create virtual networks that can be managed and configured independently.<br><em>Example: VMware NSX, Cisco ACI.</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*V18KYJYjzYXklkUJjMKKWw.png" /></figure><h3>Virtualization Types:</h3><p>Virtualization can be achieved at different hardware and software layers</p><ol><li>Hardware Level</li><li>Software Level</li></ol><h4>1. Hardware-Level Virtualization</h4><p>Operate at hardware layer. Create multiple Virtual machines on a Single/Pool of Physical Machines.</p><p><strong>Types of Hardware-Level Virtualization:</strong></p><p><strong>I. Full Virtualization</strong>:</p><ul><li>Simulates the entire hardware environment.</li><li>The guest OS runs unmodified as if it were on a physical machine.</li></ul><p><em>Example: VMware ESXi, Microsoft Hyper-V.</em></p><p><strong>II. Para Virtualization</strong>:</p><ul><li>The guest OS is modified to communicate directly with the hypervisor for better performance.</li><li>It doesn’t fully simulate hardware, reducing overhead.</li></ul><p><em>Example: Xen.</em></p><h4>2. Software-Level Virtualization</h4><p>Software virtualization creates virtual machines on top of an existing operating system.</p><h3>What is Hypervisor?</h3><p>Virtual Machines are created with the help of specialized virtualization software, called <strong><em>hypervisor</em></strong>, installed on a host machine. The hypervisor software has capable of creating multiple isolated virtual operating environments.</p><h4>Hypervisors are classified into two types.</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*iR9kiDxtCGrmQPk0YbTgHg.png" /></figure><ol><li>Type-1 hypervisor (native or bare-metal) runs directly on top physical host machine’s hardware, without the need an OS. Typically, they are found in enterprise.</li></ol><h4>Type-1 Hypervisors:</h4><ol><li>Amazon Web Services Nitro</li><li>IBM z/VM</li><li>Microsoft Hyper-V</li><li>Nutanix Acropolis Hypervisor (AHV)</li><li>Oracle SPARC/x86</li><li>Red Hat Virtualization (RHV)</li><li>VMware ESXi</li><li>Xen Hypervisor</li><li>KVM (Kernel-based Virtual Machine)</li></ol><p>2. Type-2 hypervisor (hosted) operates on top of the host OS running on the hardware. Typically designed for end users, they can also be found in enterprise settings.</p><h4>Type-2 Hypervisors:</h4><ol><li>VMware Workstation</li><li>VMware Fusion</li><li>Oracle VM VirtualBox</li><li>Microsoft Virtual PC</li><li>Parallels Desktop</li><li>QEMU</li><li>Red Hat Virtualization (Desktop variant)</li><li>Citrix XenServer (with host OS dependency in some cases)</li><li>macOS Boot Camp (for dual-boot virtualization purposes)</li></ol><p>Virtualization powers the infrastructure of the cloud and enhances containerization by providing isolation, scalability, and flexibility, making both technologies integral to modern IT environments.</p><h3>How virtualization powers the cloud and container?</h3><h3>Virtualization Vs Cloud</h3><h4>Cloud Technology:</h4><p>Virtualization forms the foundation of cloud computing by enabling efficient use of physical hardware. Here’s how it is used:</p><ul><li><strong>Resource Pooling</strong>: Virtualization allows multiple virtual machines (VMs) to run on a single physical server, optimizing resource utilization in cloud environments.</li><li><strong>Scalability</strong>: Virtual machines can be created, cloned, or destroyed dynamically based on demand, enabling elastic scaling in public and private clouds.</li><li><strong>Multi-Tenancy</strong>: Cloud providers use virtualization to isolate customer environments securely on shared physical infrastructure.</li><li><strong>Platform Independence</strong>: Virtualization enables applications to run in VMs regardless of the underlying hardware or operating system, improving portability.</li><li><strong>Disaster Recovery</strong>: Snapshots and live migrations make it easier to back up and recover cloud resources efficiently.</li><li><strong>Hybrid Cloud Integration</strong>: Virtualization bridges on-premises data centers with public clouds, enabling hybrid cloud architectures.</li></ul><h3>Virtualization Vs Container</h3><h4>Container Technology:</h4><p>While containers themselves are not full-fledged virtual machines, they rely on certain aspects of virtualization:</p><ul><li><strong>Operating System Virtualization</strong>: Containers use a shared OS kernel to isolate applications, reducing overhead compared to VMs. Technologies like Linux namespaces and cgroups enable this lightweight form of virtualization.</li><li><strong>Lightweight Deployment</strong>: Containers virtualize only the application and its dependencies, allowing faster startup and smaller resource requirements than VMs.</li><li><strong>Scalability in Microservices</strong>: Containers allow applications to be broken into microservices, with each service running in its container, enabling rapid scaling and updates.</li><li><strong>Container Orchestration</strong>: Platforms like Kubernetes manage containerized workloads, leveraging virtualization for scheduling, resource allocation, and high availability.</li><li><strong>Nested Use</strong>: Containers can run inside virtual machines to combine the flexibility of containers with the security and isolation of VMs.</li></ul><h4>Key Differences in Virtualization Usage:</h4><ul><li><strong>Cloud</strong>: Focuses on virtual machines for creating isolated environments for customers or tenants.</li><li><strong>Containers</strong>: Focuses on lightweight virtualization for packaging and running applications efficiently, often within cloud environments.</li></ul><h3>Happy Computing :)</h3><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=7525a978f8fe" width="1" height="1" alt=""><hr><p><a href="https://medium.com/kubelancer-private-limited/virtualization-saves-the-it-world-7525a978f8fe">Virtualization Saves the IT World</a> was originally published in <a href="https://medium.com/kubelancer-private-limited">KUBELANCER PRIVATE LIMITED</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Cloud Technology]]></title>
            <link>https://medium.com/kubelancer-private-limited/test-6c66d93854c4?source=rss----28fdf80a32ac---4</link>
            <guid isPermaLink="false">https://medium.com/p/6c66d93854c4</guid>
            <category><![CDATA[multi-cloud-deployment]]></category>
            <category><![CDATA[cloud-deployment-model]]></category>
            <category><![CDATA[cloud-technology]]></category>
            <category><![CDATA[cloud-compute]]></category>
            <category><![CDATA[cloud-business-model]]></category>
            <dc:creator><![CDATA[BalaSubramani K]]></dc:creator>
            <pubDate>Tue, 17 Dec 2024 04:27:22 GMT</pubDate>
            <atom:updated>2024-12-16T08:59:21.488Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*NY2nlKflHSi_rvgpgm6mjw.png" /></figure><h4>Businesses are migrating to the cloud for several reasons:</h4><p><strong>Cost Efficiency</strong>:</p><p>Cloud services eliminate the need for physical hardware, reducing maintenance and operational costs.</p><p><strong>Scalability:</strong></p><p>Companies can easily scale resources up or down based on demand without investing in physical infrastructure.</p><p><strong>Flexibility:</strong></p><p>Cloud solutions offer flexibility in managing and accessing data from anywhere, facilitating remote work.</p><p><strong>Security</strong>:</p><p>Cloud providers offer robust security measures, often better than what a small business could implement on-site.</p><p><strong>Disaster Recovery</strong>:</p><p>Cloud services often include backup and recovery solutions, ensuring data protection against unforeseen events.</p><h3>Key Features of Cloud Computing:</h3><p><strong>Speed and Agility</strong></p><p>Start your development, build and release faster with the required technologies for business.</p><p><strong>Elasticity</strong></p><p>Provision the resources we need instead of over-provisioning.</p><p><strong>Flexibility</strong></p><p>Access cloud resources from anywhere.</p><p><strong>Cost</strong></p><p>You can pay only for what you are using.</p><p><strong>Efficiency</strong></p><p>Focus on application development, build and release to market instead of worrying about the underlying infrastructure.</p><p><strong>Multi-tenancy</strong></p><p>Multiple users share the same pool of resources, which helps to drive down each user’s costs.</p><p><strong>Reliability</strong></p><p>Resources can be hosted in redundant data centre locations, to provide increased reliability, resiliency and high availability.</p><p><strong>Scalability</strong></p><p>Scale up and down as needed.</p><p><strong>Innovation</strong></p><p>Stay on top of the latest innovations by cloud compute services provider offer as a service.</p><p><strong>Security, identity and compliance</strong></p><p>Cloud service providers offer streamlined security to protect the workloads data, accounts and resources</p><h3>Cloud Deployment Types:</h3><p>Businesses can choose the model for their flexibility, security, and management control.</p><blockquote><em>Public Cloud</em></blockquote><blockquote><em>Private Cloud</em></blockquote><blockquote><em>Hybrid Cloud</em></blockquote><blockquote><em>Multi Cloud</em></blockquote><blockquote><em>Poly Cloud</em>‍</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*q99CBaSBEW_8I7uP.png" /></figure><h4>Public Cloud</h4><p>‍The public clouds are a “shared tenancy” model, a physical server that has been shared with multiple customers from the cloud provider data centre through the internet as a service.</p><p>Public cloud also sponsors dedicated physical servers for business that need to meet their compliance, licence, etc.</p><blockquote><em>Leading Public Cloud Providers in 2024</em></blockquote><p>As we move into 2024, the landscape of public cloud providers continues to evolve with key players dominating the market. Here are the top public cloud providers to watch:‍</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*wcGJtfUIXGgKwODZ.png" /></figure><h4>Amazon Web Services (AWS):</h4><p>Renowned for its broad suite of services and global reach, AWS remains a leader in cloud computing.</p><h4>Microsoft Azure:</h4><p>Known for seamless integration with Microsoft products, Azure is a strong contender with a vast array of services.</p><h4>Google Cloud Platform (GCP):</h4><p>GCP stands out with its data analytics and machine learning capabilities, catering to businesses of all sizes.</p><h4>IBM Cloud:</h4><p>With its strong focus on hybrid cloud solutions and AI integration, IBM Cloud serves various enterprise needs.</p><h4>Alibaba Cloud:</h4><p>Dominating the Asian market, Alibaba Cloud excels in e-commerce support and global data centers.</p><h4>Other top cloud providers:</h4><ul><li>DigitalOcean</li><li>Alibaba Cloud</li><li>IBM Cloud</li><li>Linode</li><li>Oracle Cloud</li><li>Openstack</li><li>Vultr</li><li>Hetzner</li><li>OvH Cloud</li><li>Cloud Foundry</li><li>Redhat Openshift</li><li>Heroku Platform</li></ul><h4>Private Cloud</h4><p>A single organization-hosted internal or external data centre to designs operates, and access it internally, which is managed by internal IT teams. Build using software like the OpenStack platform.</p><h4>Hybrid Cloud</h4><p>Bounded public and private cloud.</p><h4>Multi Cloud</h4><p>One organization uses multiple public cloud providers to run its workloads and infrastructure. This approach allows organizations to leverage the best features of each provider, improve redundancy, optimize costs, and avoid vendor lock-in.</p><h4>Poly Cloud</h4><p>One organization uses multiple public cloud providers to leverage specific services from each cloud provider for specialized reasons.</p><h3>Cloud Computing Service Models:</h3><p><em>Understanding the various cloud service models is essential for businesses seeking to leverage cloud computing effectively. Here are the primary models offered</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*ZNjebrZJAea7CSJT.png" /></figure><h4>Infrastructure as a Service (IaaS)</h4><p>Provides virtualized computing resources over the internet, offering flexibility and scalability for users to configure and manage their infrastructure.</p><p>Cloud vendor provides on-demand physical and virtual computing resources, storage, network, firewall etc as managed services.</p><p>Cloud providers will use hypervisors such as Xen, KVM, VMware Exsi, Hyper-V, and Nitro to provide the computing resources as a virtual.</p><p>Infrastructure as a service is the backbone of all other cloud services. Generally, after the compute has been provisioned, then customers setup other needed components.</p><h4>Platform as a Service (PaaS)</h4><p>Facilitates application development by offering a platform with built-in software components, allowing developers to focus on creating applications without managing underlying hardware.</p><p>Deployed on top of IAAS, which could on Container, VM, or Bare-Metal.</p><p>The PaaS model helps users to focus on developing the application, running and managing without worrying about the platform.</p><p><strong><em>PaaS solutions can be Managed and Self-Managed.</em></strong></p><p>Managed PaaS solutions are hosted by public cloud providers like AWS, Microsoft, Google Cloud.</p><p>Self-managed PaaS is hosted on-premises using a platform like OpenShift platform.</p><h4>Software as a Service (SaaS)</h4><p>Delivers software applications over the internet, enabling users to access and utilize them through a web browser, eliminating the need for local installation and maintenance.</p><p>SaaS solution model hosted on top of the PaaS and IaaS.</p><p>Provide service as ready-to-use software, mostly on a subscription basis to the market.</p><h4>Function as a Service (FaaS)</h4><p>Allows developers to deploy individual functions or pieces of logic in an event-driven manner without managing servers, optimizing resource use and reducing costs.</p><h4>Container as a Service (CaaS)</h4><p>Provides a platform to manage and run containerized applications, offering control and orchestration tools to deploy, manage, and scale containers effortlessly.</p><blockquote>Recently, New service models in the market to address the client&#39;s requirements.</blockquote><ul><li>Analytics as a Service (AnaaS)</li><li>API as a Service (AaaS)</li><li>Big Data as a Service (BDaaS)</li><li>Business Process as a Service (BPaaS)</li><li>Code as a Service (CaaS) or Container as a Service (CaaS)</li><li>Communications Platform as a Service (CPaaS)</li><li>Desktop as a Service (DaaS)</li><li>Database as a Service (DBaaS)</li><li>Function as a Service (FaaS)</li><li>Monitoring as a Service (MaaS)</li><li>Anything as a Service (XaaS)</li></ul><h3>Leveraging Cloud Technology in Business</h3><p>Businesses increasingly leverage cloud technology to enhance operations, improve scalability, and reduce costs. By adopting cloud solutions, companies can access computing resources on-demand, thus enabling rapid deployment of applications and services. Cloud platforms offer enhanced collaboration tools, improved data analytics capabilities, and robust security features, allowing organizations to focus on innovation and growth while ensuring.</p><p>Happy Cloud Computing :)</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=6c66d93854c4" width="1" height="1" alt=""><hr><p><a href="https://medium.com/kubelancer-private-limited/test-6c66d93854c4">Cloud Technology</a> was originally published in <a href="https://medium.com/kubelancer-private-limited">KUBELANCER PRIVATE LIMITED</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Kubernetes install using kubeadm on AWS EC2]]></title>
            <link>https://medium.com/kubelancer-private-limited/kubernetes-install-using-kubeadm-on-aws-ec2-cf8b1e9ca166?source=rss----28fdf80a32ac---4</link>
            <guid isPermaLink="false">https://medium.com/p/cf8b1e9ca166</guid>
            <dc:creator><![CDATA[BalaSubramani K]]></dc:creator>
            <pubDate>Wed, 19 Jun 2024 17:19:49 GMT</pubDate>
            <atom:updated>2024-06-19T16:59:45.699Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*CiJrW5dWWfYyEHx-SYFygg.png" /></figure><p>Here, we are using kubeadm to create a cluster with a single master and two worker nodes by using AWS EC2 machines.</p><h3>Pr-Requisite</h3><ul><li>Machines — EC2 or Equivalent servers / VM</li><li>Minimum 2 GB of RAM per machine.</li><li>At least 2 CPUs for Control Plane.</li><li>Full network connectivity between all machines in the cluster.</li><li>Certain ports are open on your machines. See the <a href="https://kubernetes.io/docs/setup/production-environment/tools/kubeadm/install-kubeadm/#check-network-adapters">official documentation</a> for a detailed port listing.</li><li>Swap disabled. You MUST disable swap in order for the kubelet to work properly.</li></ul><h3><strong>Kubeadm Port Requirements</strong></h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/668/0*z8jDf7_oiv7VfUY8" /></figure><h3>Provision Servers / VM</h3><ul><li>Provision 1 EC2 Ubuntu 22 machines (t2.medium) on AWS — Label its as Master</li><li>Provision 2 EC2 Ubuntu 22 machines (t2.small) on AWS — Label its as worker {1,2}</li></ul><h3>Clone the script to all the nodes</h3><p><a href="https://github.com/kubelancer/CKA-2024/tree/develop/scripts">https://github.com/kubelancer/CKA-2024/tree/develop/scripts</a></p><pre>git clone https://github.com/kubelancer/CKA-2024</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*fau6bYmi0d22gew9TOEe5Q.png" /></figure><h3>Move to the script directory</h3><pre># cd scripts</pre><h3>Install the pre-requsites to all the nodes</h3><pre># sh 1-install_master_k8s_v29.sh</pre><h3>Install CNI Plugin-Calico on master node</h3><pre>  # sh 2-master_kubeadm_init_cni_calico.sh</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*oDS7zbuKQBKjOPmqEYpbHQ.png" /></figure><h3>Execute the join command in worker nodes</h3><blockquote>(Replace with your token output)</blockquote><pre># sudo kubeadm join 172.31.28.104:6443 --token cpptk8.chzo4d71c5adgfyy --discovery-token-ca-cert-hash sha256:04bc021cb098e348bf880759698e32343f7ee851af3fb34281e25c7e3d4f051f</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Cnnx89fLFi1vZ3JXgdsLlw.png" /></figure><h3>Label the nodes</h3><pre># kubectl label node worker1 node-role.kubernetes.io/worker=worker1</pre><pre># kubectl label node worker2 node-role.kubernetes.io/worker=worker2</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*pCW5KKX7RXVcfMC6EdJI8A.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*0RSEhceE94Yc2BIA2WnNLw.png" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=cf8b1e9ca166" width="1" height="1" alt=""><hr><p><a href="https://medium.com/kubelancer-private-limited/kubernetes-install-using-kubeadm-on-aws-ec2-cf8b1e9ca166">Kubernetes install using kubeadm on AWS EC2</a> was originally published in <a href="https://medium.com/kubelancer-private-limited">KUBELANCER PRIVATE LIMITED</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Install Minikube on Mac OS]]></title>
            <link>https://medium.com/kubelancer-private-limited/install-minikube-on-mac-os-0a060231f9c0?source=rss----28fdf80a32ac---4</link>
            <guid isPermaLink="false">https://medium.com/p/0a060231f9c0</guid>
            <dc:creator><![CDATA[BalaSubramani K]]></dc:creator>
            <pubDate>Wed, 19 Jun 2024 17:19:19 GMT</pubDate>
            <atom:updated>2024-06-19T17:06:50.806Z</atom:updated>
            <content:encoded><![CDATA[<p>Colima instead of Docker Desktop</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*_dNwtNetl10qMbt_.jpg" /></figure><h3>MiniKube</h3><p>Minikube is an open-source tool that facilitates running Kubernetes clusters on a local machine for development and testing purposes. It is designed to be a lightweight and easy-to-use solution to set up a single-node Kubernetes cluster on your local environment. Minikube runs a single-node cluster inside a virtual machine (VM) on your local system.</p><p>To run Minikube, need a Hypervisor , here we can use Colima. Alternate can use Docker Desktop / Hyperkit / VirtualBox / QEMU / Podman /Parallels / VMware Fusion.</p><h4>Install Colima on Mac</h4><pre>$ brew install colima</pre><h4>Start colima</h4><pre>$ colima start</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/878/0*We-sxwZKDe88oQFh" /></figure><h4>Verify</h4><pre>$ colima status</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/869/0*Wf2zGwEYAlYTt5IK" /></figure><blockquote>Install Minikube on MacOS</blockquote><h4>Run the below commands to download binary</h4><pre>$ curl -LO https://storage.googleapis.com/minikube/releases/latest/minikube-darwin-amd64</pre><h4>Run below command to get Install</h4><pre>$ sudo install minikube-darwin-amd64 /usr/local/bin/minikube</pre><h4>Start Minikube</h4><pre>$ minikube start</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*Yqp061rz0bb3dzpM" /></figure><h4>Verify</h4><pre>$ minikube status</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/908/0*EUOb6R_oqwGx8CuJ" /></figure><blockquote>Minikube useful Commands</blockquote><p><strong>Start Minikube</strong></p><pre>$ minikube start</pre><p><strong>Stop Minikube</strong></p><pre>$ minikube stop</pre><p><strong>Delete Minikube</strong></p><pre>$ minikube delete</pre><p><strong>Minikube status</strong></p><pre>$ minikube status</pre><p><strong>SSH into Minikube</strong></p><pre>$ minikube ssh</pre><p><strong>Dashboard</strong></p><pre>$ minikube dashboard</pre><p><strong>Service List</strong></p><pre>$ minikube service list</pre><p><strong>Minikube Tunnel</strong></p><pre>$ minikube tunnel</pre><p>Creates a network tunnel to expose services of type LoadBalancer to your local machine.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*0RSEhceE94Yc2BIA2WnNLw.png" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=0a060231f9c0" width="1" height="1" alt=""><hr><p><a href="https://medium.com/kubelancer-private-limited/install-minikube-on-mac-os-0a060231f9c0">Install Minikube on Mac OS</a> was originally published in <a href="https://medium.com/kubelancer-private-limited">KUBELANCER PRIVATE LIMITED</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Create AWS EKS Kubernetes Cluster using eksctl Command]]></title>
            <link>https://medium.com/kubelancer-private-limited/create-aws-eks-kubernetes-cluster-using-eksctl-command-3198318750aa?source=rss----28fdf80a32ac---4</link>
            <guid isPermaLink="false">https://medium.com/p/3198318750aa</guid>
            <category><![CDATA[cluster]]></category>
            <category><![CDATA[kubernetes]]></category>
            <category><![CDATA[devops]]></category>
            <category><![CDATA[aws]]></category>
            <category><![CDATA[ek]]></category>
            <dc:creator><![CDATA[BalaSubramani K]]></dc:creator>
            <pubDate>Sat, 24 Feb 2024 17:50:48 GMT</pubDate>
            <atom:updated>2024-02-24T17:47:10.014Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*E7S26WORfVyuoF6Gz_riXA.png" /></figure><p>Creating Kubenetes cluster in AWS have multiple options like using AWS SDK, Terraform, Cloudformation and easy and quick for new learner using AWS Console. In this blog we going see another well know method of creating AWS EKS cluster using “eksctl” command by using as YAML configuration in default VPC. ( Same can be create by CLI command).</p><h3>Let’s get start</h3><h4>Prerequisites:</h4><p>Let install these binary one by one</p><ol><li>AWS CLI</li><li>eksctl CLI</li><li>kubectl</li></ol><h3>Step 1. Install AWS CLI (Mac OS)</h3><h4>Download AWS CLI binary</h4><pre>curl &quot;https://awscli.amazonaws.com/AWSCLIV2.pkg&quot; -o &quot;AWSCLIV2.pkg&quot;</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/983/0*Gh6nHLv7dLf-IsDQ" /></figure><h4>Install AWS CLI</h4><pre>sudo installer -pkg ./AWSCLIV2.pkg -target /</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/813/0*1gSgP7t7sd7mHvrU" /></figure><h4>Verify the installation</h4><pre>which aws<br>aws --version</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/650/0*Ci9McS45z3gWK-F6" /></figure><h3>Step 2. Configure AWS CLI</h3><h4>Step 2.1. Login to AWS console as root user</h4><h4>Step 2.2. Create IAM user</h4><blockquote>username: kubedeveloper</blockquote><blockquote>No AWS console access, Only programmatic access</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*J-tu_kqSf8TWwIhD" /><figcaption>Provide Username</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*01udPwd9ViLVGZ7D" /><figcaption>Permission as per User Type</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*TheByMzUi0Z33_fu" /></figure><h3>Create Access and SecretAccessKey</h3><h4>Step 2.3 Select the IAM user “kubedeveloper”</h4><h4>Step 2.4 Navigate to Security Credentials</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*J2KT-g88u_MMNaat" /></figure><h4>Step 2.5. Click Create access key</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*tjKS8SLGJ_Y58-P_" /></figure><h4>Step 2.6 Select Use case :</h4><p><strong>Command Line Interface (CLI) &amp; check the Confirmation</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*p3VprNZpTNJ4UjEs" /></figure><h4>Step 2.7. Set description tag<em> — optional </em>and Click create</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*haD9sdnJ62WCk5Zj" /></figure><blockquote>Now we got AccessKey and SecretAccessKey,</blockquote><h4>Next, Let configure AWS CLI on Mac OS command line</h4><p><em>Note: if multiple aws account configured, use — profile</em></p><pre>$ aws configure</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/899/0*nw4hbYEiNspjuLmv" /></figure><h4>Validate AWS CLI Access</h4><p><strong>Run any aws command to list resources</strong></p><p><em>Here eg: To list s3 buckets on my AWS account</em></p><pre>$ aws s3 ls</pre><h4>Getting output, which denoted AWS access has configured correctly</h4><pre>bala@kubelancer Downloads % aws s3 ls<br>2022-12-13 21:36:02 firehose-backup-05bf6840<br>bala@kubelancer Downloads % <br></pre><h3>Install eksctl on Mac OS</h3><h4>To download the latest release, run on Mac OS (arm64 architecture):</h4><pre>curl -sLO &quot;https://github.com/eksctl-io/eksctl/releases/latest/download/eksctl_Darwin_arm64.tar.gz&quot;<br>tar -xzvf eksctl_Darwin_arm64.tar.gz<br>sudo mv ./eksctl /usr/local/bin</pre><p><em>Ref: </em><a href="https://www.weave.works/oss/eksctl/"><em>https://www.weave.works/oss/eksctl/</em></a></p><h3>Step 3: Creating an AWS EKS Kubernetes Cluster using eksctl tool</h3><h4>3.1. Create Cluster configuration yaml file</h4><pre>$ vi cluster-config.yaml</pre><pre>apiVersion: eksctl.io/v1alpha5<br>kind: ClusterConfig<br><br>metadata:<br>  name: kubelancer-cluster-1<br>  region: us-east-1<br><br>nodeGroups:<br>  - name: ng-1<br>    instanceType: t4g.medium<br>    desiredCapacity: 2<br>    volumeSize: 20<br>    ssh:<br>      allow: false</pre><h4>3.2 Let’s create eks cluster on aws using eksctl command</h4><pre>$ eksctl create cluster -f cluster-config.yaml</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*U82oeW_VhqB5ojtjkxOuLA.png" /><figcaption>Cluster created successfully</figcaption></figure><p><em>Note: if multiple aws account configured, use — profile</em></p><h4>Get the cluster name by using eksctl command</h4><p><em>eksctl interact with AWS API and get the required details from AWS cloud</em></p><pre>$ eksctl get cluster --profile kubedev</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/873/1*fULtnVYrYWhiJN4GeT5sDg.png" /></figure><h4>Use the following command to get update kube-config.</h4><pre>$ aws eks update-kubeconfig --name=kubelancer-cluster-1 --region=us-east-1</pre><h3>Verify the Cluster</h3><pre>kubectl get nodes</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/974/1*8RTU_QQU4KhPckVSMx2FPg.png" /><figcaption>Cluster Node Status</figcaption></figure><h3>Delete Cluster</h3><pre>$ kubectl get poddisruptionbudget -A<br>$ kubectl delete poddisruptionbudget coredns -n kube-system<br>$ eksctl delete cluster -f cluster-config.yaml --profile kubedev</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*60jXEUaBJWesNbZ9wYZUnQ.png" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=3198318750aa" width="1" height="1" alt=""><hr><p><a href="https://medium.com/kubelancer-private-limited/create-aws-eks-kubernetes-cluster-using-eksctl-command-3198318750aa">Create AWS EKS Kubernetes Cluster using eksctl Command</a> was originally published in <a href="https://medium.com/kubelancer-private-limited">KUBELANCER PRIVATE LIMITED</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>