<?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 Shahzaib Ekram on Medium]]></title>
        <description><![CDATA[Stories by Shahzaib Ekram on Medium]]></description>
        <link>https://medium.com/@shahzebekram2468?source=rss-1d1b20a750d------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*bEOa4XkjdlqQC8f4h5P_pw.png</url>
            <title>Stories by Shahzaib Ekram on Medium</title>
            <link>https://medium.com/@shahzebekram2468?source=rss-1d1b20a750d------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Fri, 04 Dec 2026 20:25:02 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@shahzebekram2468/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[Create EKS cluster using Terraform and deploy Application]]></title>
            <link>https://shahzebekram2468.medium.com/create-eks-cluster-using-terraform-and-deploy-application-5f9954a83b7d?source=rss-1d1b20a750d------2</link>
            <guid isPermaLink="false">https://medium.com/p/5f9954a83b7d</guid>
            <category><![CDATA[ek]]></category>
            <category><![CDATA[kubernetes]]></category>
            <category><![CDATA[terraform]]></category>
            <dc:creator><![CDATA[Shahzaib Ekram]]></dc:creator>
            <pubDate>Sat, 12 Aug 2023 18:29:44 GMT</pubDate>
            <atom:updated>2023-08-12T20:07:46.939Z</atom:updated>
            <content:encoded><![CDATA[<h3>Create EKS cluster using Terraform and deploy Game Application</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/690/1*7cVpyP2_heRqmobLTGySRA.png" /></figure><p>Create <strong>variables.tf </strong>file</p><pre>variable &quot;region&quot; {<br>  description = &quot;AWS region&quot;<br> type = string<br> default = &quot;us-east-2&quot; //select your desired region<br>}</pre><p>Create <strong>main.tf </strong>file</p><pre>provider &quot;kubernetes&quot; {<br>  host = module.eks.cluster_endpoint<br>  cluster_ca_certificate = base64decode(module.eks.cluster_certificate_authority_data)<br>}<br><br>provider &quot;aws&quot; {<br>  region = var.region <br>}<br><br>data &quot;aws_availability_zones&quot; &quot;available&quot; {}<br><br>locals {<br>  cluster_name = &quot;demo-eks-${random_string.suffix.result}&quot;<br>}<br><br>resource &quot;random_string&quot; &quot;suffix&quot; {<br>  length = 8<br>  special = false<br>}</pre><p>Create <strong>outputs.tf </strong>file</p><pre>output &quot;cluster_name&quot; {<br>  description = &quot;Amazon Web Service EKS Cluster Name&quot;<br>  value = module.eks.cluster_name<br>}<br><br>output &quot;cluster_endpoint&quot; {<br>  description = &quot;Endpoint for Amazon Web Service EKS &quot;<br>  value = module.eks.cluster_endpoint<br>}<br><br>output &quot;region&quot; {<br>  description = &quot;Amazon Web Service EKS Cluster region&quot;<br>  value = var.region<br>}<br><br><br>output &quot;cluster_security_group_id&quot; {<br>  description = &quot;Security group ID for the Amazon Web Service EKS Cluster &quot;<br>  value = module.eks.cluster_security_group_id<br>}</pre><p>Create <strong>eks-cluster.tf </strong>file</p><pre>module &quot;eks&quot; {<br>  source = &quot;terraform-aws-modules/eks/aws&quot;<br>  version = &quot;19.0.4&quot;<br><br>  cluster_name = local.cluster_name<br>  cluster_version = &quot;1.24&quot;<br><br>  vpc_id = module.vpc.vpc_id<br>  subnet_ids = module.vpc.private_subnets<br>  cluster_endpoint_public_access = true<br><br>  eks_managed_node_group_defaults = {<br>    ami_type = &quot;AL2_x86_64&quot;<br><br>  }<br><br>  eks_managed_node_groups = {<br>    one = {<br>      name = &quot;node-group-1&quot;<br><br>      instance_types = [&quot;t3.small&quot;]<br><br>      min_size = 1<br>      max_size = 3<br>      desired_size = 2<br>    }<br><br>    two = {<br>      name = &quot;node-group-2&quot;<br><br>      instance_types = [&quot;t3.small&quot;]<br><br>      min_size = 1<br>      max_size = 2<br>      desired_size = 1<br>    }<br>  }<br>}</pre><p>Create <strong>vpc.tf </strong>file</p><pre>module &quot;vpc&quot; {<br>  source = &quot;terraform-aws-modules/vpc/aws&quot;<br>  version = &quot;3.14.2&quot;<br><br>  name = &quot;Demo-VPC&quot;<br><br>  cidr = &quot;10.0.0.0/16&quot;<br>  azs = slice(data.aws_availability_zones.available.names, 0, 3)<br><br>  private_subnets = [&quot;10.0.1.0/24&quot;, &quot;10.0.2.0/24&quot;, &quot;10.0.3.0/24&quot;]<br>  public_subnets = [&quot;10.0.4.0/24&quot;, &quot;10.0.5.0/24&quot;, &quot;10.0.6.0/24&quot;]<br><br>  enable_nat_gateway = true<br>  single_nat_gateway = true<br>  enable_dns_hostnames = true<br><br>  public_subnet_tags = {<br>    &quot;kubernetes.io/cluster/${local.cluster_name}&quot; = &quot;shared&quot;<br>    &quot;kubernetes.io/role/elb&quot; = 1<br>  }<br><br>  private_subnet_tags = {<br>    &quot;kubernetes.io/cluster/${local.cluster_name}&quot; = &quot;shared&quot;<br>    &quot;kubernetes.io/role/internal-elb&quot; = 1<br>  }<br>}</pre><p>Create <strong>terraform.tf </strong>file</p><pre>terraform {<br>  required_providers {<br>    aws = {<br>      source = &quot;hashicorp/aws&quot;<br>      version = &quot;~&gt; 4.46.0&quot;<br>    }<br><br>    random = {<br>      source = &quot;hashicorp/random&quot;<br>      version = &quot;~&gt; 3.4.3&quot;<br>    }<br><br>    tls = {<br>      source = &quot;hashicorp/tls&quot;<br>      version = &quot;~&gt; 4.0.4&quot;<br>    }<br><br>    cloudinit = {<br>      source = &quot;hashicorp/cloudinit&quot;<br>      version = &quot;~&gt; 2.2.0&quot;<br>    }<br><br>    kubernetes = {<br>      source = &quot;hashicorp/kubernetes&quot;<br>      version = &quot;~&gt; 2.16.1&quot;<br>    }<br>  }<br><br>  required_version = &quot;~&gt; 1.3&quot;<br>}</pre><p>Let’s run the Terraform commands to create and provision the Amazon EKS cluster using Terraform. We will start with the `terraform init` command.</p><pre>terraform init</pre><pre>terraform validate</pre><pre>terraform plan</pre><pre>terraform apply</pre><h3>Checking the AWS EKS Cluster Information</h3><p>To check the AWS EKS Cluster information, run this command in your terminal:</p><pre>kubectl cluster-info</pre><h3>Terraform Start</h3><pre>aws eks --region $(terraform output -raw region) update-kubeconfig \<br>    --name $(terraform output -raw cluster_name)</pre><pre>kubettl get nodes</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*7aMTACWQo62GhDYR-_DQig.png" /></figure><h3>Deploy Game Application on EKS</h3><h4>Deploy the deployment, service and Ingress</h4><pre>kubectl apply -f https://raw.githubusercontent.com/kubernetes-sigs/aws-load-balancer-controller/v2.5.4/docs/examples/2048/2048_full.yaml</pre><pre>kubectl get po -n game-2048</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*UA8PbFiDY27p6sPLSDgq3w.png" /></figure><p><strong>Edit in svc file change NodePort to LoadBalancer</strong></p><pre>kubectl edit svc/service-2048 -n game-2048</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*XTx9eLu8YLrnVOVWgJKK9Q.png" /></figure><p>scroll down and change “<strong>NodePort</strong>” to “<strong>LoadBalancer</strong>” in status:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ZkQyeaWSwGgEBbzhGgUlZw.png" /></figure><p>Press “<strong>esc</strong>” “:wq” and exit</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*gGOXPmnPX0wbApPP0nxklg.png" /></figure><p>Check service of game app</p><pre>kubectl get svc -n game-2048</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Nl18eCq06p6CdZLfEKmCfA.png" /></figure><p>Copy EXTERNAL-IP address and paste on the web browser:</p><p><strong>Game App Deployed</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*4hKLXMGwcdeMwc13lt0gKA.png" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=5f9954a83b7d" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How to create a declarative Jenkins CI CD pipeline with Docker on AWS]]></title>
            <link>https://shahzebekram2468.medium.com/how-to-create-a-declarative-jenkins-ci-cd-pipeline-with-docker-on-aws-de4597d0a12f?source=rss-1d1b20a750d------2</link>
            <guid isPermaLink="false">https://medium.com/p/de4597d0a12f</guid>
            <category><![CDATA[ec2]]></category>
            <category><![CDATA[ci-cd-pipeline]]></category>
            <category><![CDATA[jenkins]]></category>
            <category><![CDATA[docker]]></category>
            <category><![CDATA[declarative-pipeline]]></category>
            <dc:creator><![CDATA[Shahzaib Ekram]]></dc:creator>
            <pubDate>Fri, 04 Aug 2023 19:36:06 GMT</pubDate>
            <atom:updated>2023-08-05T16:27:59.174Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="ci cd" src="https://cdn-images-1.medium.com/max/820/1*rngz6cKP1fYYtZ8H1BlznA.png" /></figure><p>Create EC2 instance on AWS</p><p>Install Jenkins: <a href="https://varunmanik1.medium.com/devops-jenkins-aws-series-part-1-how-to-install-jenkins-on-aws-ubuntu-22-04-cb0c3cdb055">https://varunmanik1.medium.com/devops-jenkins-aws-series-part-1-how-to-install-jenkins-on-aws-ubuntu-22-04-cb0c3cdb055</a></p><p>Git clone project in ec2 instance.<br>Demo Typescript project: <a href="https://github.com/shahzaibekram/Typescript-QuizApp/">https://github.com/shahzaibekram/Typescript-QuizApp/</a></p><p>Give docker permission:</p><pre>sudo usermod -aG docker $USER</pre><p>Give Jenkins permission:</p><pre>sudo usermod -aG docker jenkins</pre><p>Go to Jenkins and then create a job, select a pipeline.</p><figure><img alt="jenkins" src="https://cdn-images-1.medium.com/max/1024/1*H2qvs4RRcxa0X9ss2K31GQ.png" /></figure><p>Go to description and write about project.<br><a href="https://emojipedia.org/check-mark/">✔️</a> GitHub project and paste the url of your github project.</p><figure><img alt="jenkins" src="https://cdn-images-1.medium.com/max/1024/1*KqK4L-GrtFibYK2w1GttDg.png" /></figure><h3>Build Triggers</h3><p><a href="https://emojipedia.org/check-mark/">✔️</a> GitHub hook trigger for GITScm polling</p><figure><img alt="jenkins" src="https://cdn-images-1.medium.com/max/1024/1*FfazmfcyfMC5seQ0ZzKG-w.png" /></figure><h3>Pipeline</h3><p>write a pipeline script:</p><pre>pipeline {<br>    agent any<br>    <br>    stages {<br>        stage(&#39;Code&#39;) {<br>            steps {<br>                echo &quot;Cloning the code&quot; <br>            }<br>        }<br>    <br>        stage(&#39;Build&#39;) {<br>            steps {<br>                echo &quot;Building the code&quot;<br>            }<br>        }<br>        <br>        stage(&#39;Push to Docker Hub&#39;) {<br>            steps {<br>                // Replace &#39;your_docker_image_name&#39; and &#39;your_docker_hub_username&#39; with your image name and Docker Hub username<br>                echo &quot;Pushing the image to Docker Hub&quot;<br>            }<br>        }<br>        <br>        stage(&#39;Deploy&#39;) {<br>            steps {<br>                // Replace &#39;your_kubernetes_deployment_script&#39; with the script to deploy your image to Kubernetes<br>                echo &quot;Deploying the container&quot;<br>            }<br>        }<br>    }<br>}</pre><p><a href="https://emojipedia.org/check-mark/">✔️</a> Use Groovy and then</p><p>Apply <strong>save</strong> button.</p><h3>Add Docker credentials in the Jenkins.</h3><p>Go to Manage Jenkins and click on the <strong>Credentials</strong> option.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/960/1*urLmAa_f9UgIQUWOJOys4g.png" /></figure><p>Go to System</p><p>Click <strong>Global credentials (unrestricted)</strong></p><p>Click <strong>add credentials </strong>on he top right corner.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*V3JEXmeP7R64xttn7xVKDw.png" /></figure><p>add username of your <strong>dockerhub<br></strong>add password of your <strong>dockerhub</strong></p><p>Create unique <strong>ID</strong> which you have to used in the pipeline.<br>ID: <strong>dockerHUB</strong></p><p>and write a description about your docker credentials which is optional.</p><p>Now, go back to the pipeline and write the script.</p><h3>Push into Docker Hub registry</h3><h4>Push image into Dockerhub</h4><p>Go to again pipeline configuration.</p><pre>pipeline {<br>    agent any<br>stages {<br>        stage(&#39;Code&#39;) {<br>            steps {<br>                echo &quot;Cloning the code&quot; <br>                git branch: &#39;main&#39;, url: &#39;https://github.com/shahzaibekram/Typescript-QuizApp&#39;<br>            }<br>        }<br>        stage(&#39;Build&#39;) {<br>            steps {<br>                echo &quot;Building the code&quot;<br>                sh &quot;docker build -t quiz-react-app .&quot;<br>            }<br>        }<br>        stage(&#39;Push to Docker Hub&#39;) {<br>            steps {<br>                echo &quot;Pushing the image to Docker Hub&quot;<br>                withCredentials([usernamePassword(credentialsId: &#39;dockerHUB&#39;, passwordVariable: &#39;dockerHUBPass&#39;, usernameVariable: &#39;dockerHUBUser&#39;)]) {<br>                    sh &quot;docker tag quiz-react-app ${dockerHUBUser}/quiz-react-app:latest&quot; // Add the Docker tag<br>                    sh &quot;docker login -u ${dockerHUBUser} -p ${dockerHUBPass}&quot;<br>                    sh &quot;docker push ${dockerHUBUser}/quiz-react-app:latest&quot;  //pus the image with tag on dockerhub<br>                }<br>            }<br>        }<br>        stage(&#39;Deploy&#39;) {<br>            steps {<br>                echo &quot;Deploying the container&quot;<br>                sh &quot;docker run -d -p 3000:3000 shahzaib2468/quiz-react-app:latest&quot;<br>                <br>            }<br>        }<br>    }<br>}</pre><p>Apply <strong>save</strong> button.</p><p>Open Docker Hub and check your application image.</p><figure><img alt="docker hub" src="https://cdn-images-1.medium.com/max/958/1*HKu94Q-NXVetUkc0lbP45Q.png" /></figure><p>Now check the container and web browser. the application will be running on 3000:3000 port.</p><p>Commit the docker run command and docker-compose so its automatically trigger from GitHub webhook and build the application.</p><pre>pipeline {<br>    agent any<br>stages {<br>        stage(&#39;Code&#39;) {<br>            steps {<br>                echo &quot;Cloning the code&quot; <br>                git branch: &#39;main&#39;, url: &#39;https://github.com/shahzaibekram/Typescript-QuizApp&#39;<br>            }<br>        }<br>        stage(&#39;Build&#39;) {<br>            steps {<br>                echo &quot;Building the code&quot;<br>                sh &quot;docker build -t quiz-react-app .&quot;<br>            }<br>        }<br>        stage(&#39;Push to Docker Hub&#39;) {<br>            steps {<br>                echo &quot;Pushing the image to Docker Hub&quot;<br>                withCredentials([usernamePassword(credentialsId: &#39;dockerHUB&#39;, passwordVariable: &#39;dockerHUBPass&#39;, usernameVariable: &#39;dockerHUBUser&#39;)]) {<br>                    sh &quot;docker tag quiz-react-app ${dockerHUBUser}/quiz-react-app:latest&quot; // Add the Docker tag<br>                    sh &quot;docker login -u ${dockerHUBUser} -p ${dockerHUBPass}&quot;<br>                    sh &quot;docker push ${dockerHUBUser}/quiz-react-app:latest&quot;  //pus the image with tag on dockerhub<br>                }<br>            }<br>        }<br>        stage(&#39;Deploy&#39;) {<br>            steps {<br>                echo &quot;Deploying the container&quot;<br>                // sh &quot;docker run -d -p 3000:3000 shahzaib2468/quiz-react-app:latest&quot;<br>                sh &quot;docker-compose down &amp;&amp; docker-compose up -d&quot;   //run docker container<br>         <br>                <br>            }<br>        }<br>    }<br>}</pre><p>In the above file here’s a step-by-step guide summarizing what each stage in the pipeline script is doing:</p><ol><li><strong>Stage: Code</strong></li></ol><ul><li>Clones the code from the GitHub repository “<a href="https://github.com/shahzaibekram/Typescript-QuizApp">https://github.com/shahzaibekram/Typescript-QuizApp</a>&quot; (on the main branch) into the Jenkins workspace.</li></ul><p>2. <strong>Stage: Build</strong></p><ul><li>Builds a Docker image named “<strong>quiz-react-app</strong>” using the Dockerfile in the Jenkins workspace.</li><li>The sh command executes the Docker build command.</li><li>The echo command prints &quot;Building the code&quot; in the build console.</li></ul><p><strong>3. Stage: Push to Docker Hub</strong></p><ul><li>Tags the Docker image with the latest tag, following the naming convention “dockerHUBUser/quiz-react-app:latest.”</li><li>Uses Docker credentials (username and password) stored in Jenkins credentials with the ID “dockerHUB.”</li><li>Logs in to Docker Hub using the provided credentials with the docker login command.</li><li>Pushes the Docker image to Docker Hub with the docker push command.</li><li>The echo command prints &quot;Pushing the image to Docker Hub&quot; in the build console.</li></ul><p>4. <strong>Stage: Deploy</strong></p><ul><li>Brings down any running Docker containers defined in the docker-compose.yml file and then brings them back up in detached mode (-d).</li><li>The sh command runs the docker-compose down and docker-compose up -d commands.</li><li>The echo command prints &quot;Deploying the container&quot; in the build console.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*aiCiBNcZYKzG-5P7wJHOFA.png" /></figure><p>Overall, the pipeline clones the code from the GitHub repository, builds a Docker image, pushes the image to Docker Hub, and finally deploys the application using docker-compose to manage the containers.</p><p>Please note that this pipeline assumes you have set up the required Jenkins credentials with the ID “dockerHUB” and provided the correct Docker Hub credentials. Additionally, make sure the repository “<a href="https://github.com/shahzaibekram/Typescript-QuizApp">https://github.com/shahzaibekram/Typescript-QuizApp</a>&quot; contains a valid Dockerfile and docker-compose.yml for the pipeline to work correctly.</p><p><strong>Automate project without docker container kill:</strong></p><p>Create a docker-compose.yaml file and add it to your GitHub repo.</p><pre>version: &#39;3.8&#39;<br>services:<br>  # React.js app service<br>  react_app:<br>    image: shahzaib2468/quiz-react-app:latest<br>    ports:<br>      - &quot;3000:3000&quot;</pre><h3>WEB Hook for Automation:</h3><p>Goto the Github project <strong>Settings</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/912/1*8l0Rl_OzfS9E2Z0mpX-cZw.png" /></figure><p>click the webhook option on the left side widget</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/345/1*8EEmGLA_e0_HIUYx64cY1Q.png" /></figure><p>click <strong>Add webhook</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/801/1*WZoD6s9oCcI_dir5doIQCA.png" /></figure><p>Just place the <strong>ip</strong> of your jenkins in the payload section:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/766/1*0kdxLrx9lsyR3Ea_tZGoOA.png" /></figure><p>and then click Add webhook button.</p><p>CI CD pipeline successfully build.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*1u-3a-WzpcQcb9w56FBNVA.png" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=de4597d0a12f" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How to setup Kubernetes on AWS]]></title>
            <link>https://shahzebekram2468.medium.com/how-to-setup-kubernetes-on-aws-e9fb4af3bc84?source=rss-1d1b20a750d------2</link>
            <guid isPermaLink="false">https://medium.com/p/e9fb4af3bc84</guid>
            <category><![CDATA[kubernetes-cluster]]></category>
            <dc:creator><![CDATA[Shahzaib Ekram]]></dc:creator>
            <pubDate>Wed, 05 Jul 2023 20:21:08 GMT</pubDate>
            <atom:updated>2023-07-05T20:26:43.698Z</atom:updated>
            <content:encoded><![CDATA[<h3>How to setup Kubernetes on AWS ec2</h3><h3>Master and Worker nodes both installation</h3><p>Install below packages if not installed</p><pre>sudo apt-get update<br><br><br>curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo gpg --dearmor -o /usr/share/keyrings/docker-archive-keyring.gpg<br><br>echo   &quot;deb [arch=amd64 signed-by=/usr/share/keyrings/docker-archive-keyring.gpg] https://download.docker.com/linux/ubuntu \<br>  $(lsb_release -cs) stable&quot; | sudo tee /etc/apt/sources.list.d/docker.list &gt; /dev/null<br><br>sudo apt-get update -y<br><br>sudo apt-get install docker-ce docker-ce-cli containerd.io -y<br><br>cat &lt;&lt;EOF | sudo tee /etc/docker/daemon.json<br>{<br>  &quot;exec-opts&quot;: [&quot;native.cgroupdriver=systemd&quot;],<br>  &quot;log-driver&quot;: &quot;json-file&quot;,<br>  &quot;log-opts&quot;: {<br>    &quot;max-size&quot;: &quot;100m&quot;<br>  },<br>  &quot;storage-driver&quot;: &quot;overlay2&quot;<br>}<br>EOF<br><br>docker images<br><br>sudo usermod -aG docker $USER<br><br>sudo chmod 666 /var/run/docker.sock<br><br>sudo systemctl start docker.service<br><br>sudo systemctl status docker.service<br><br>sudo systemctl enable docker.service<br><br>sudo systemctl restart docker<br><br>sudo curl -fsSLo /usr/share/keyrings/kubernetes-archive-keyring.gpg https://packages.cloud.google.com/apt/doc/apt-key.gpg<br><br>echo &quot;deb [signed-by=/usr/share/keyrings/kubernetes-archive-keyring.gpg] https://apt.kubernetes.io/ kubernetes-xenial main&quot; | sudo tee /etc/apt/sources.list.d/kubernetes.list<br><br>sudo apt-get update</pre><h3>Install Kubeadm,Kubelet and Kubectl on All Node</h3><pre>sudo apt-get update<br><br>sudo apt-get install -y apt-transport-https ca-certificates curl<br><br>curl -fsSL https://packages.cloud.google.com/apt/doc/apt-key.gpg | sudo gpg --dearmor -o /etc/apt/keyrings/kubernetes-archive-keyring.gpg<br><br>echo &quot;deb [signed-by=/etc/apt/keyrings/kubernetes-archive-keyring.gpg] https://apt.kubernetes.io/ kubernetes-xenial main&quot; | sudo tee /etc/apt/sources.list.d/kubernetes.list<br><br>sudo apt-get update<br>sudo apt-get install -y kubelet kubeadm kubectl<br>sudo apt-mark hold kubelet kubeadm kubectl<br><br></pre><h3>Initialize the Master node using kubeadm (on Master Node)</h3><pre>sudo apt install kubeadm=1.20.0-00 kubectl=1.20.0-00 kubelet=1.20.0-00 -y<br>sudo kubeadm init --pod-network-cidr 10.0.0.0/16</pre><p>Output</p><pre>Your Kubernetes control-plane has initialized successfully!<br><br>To start using your cluster, you need to run the following as a regular user:<br><br>  mkdir -p $HOME/.kube<br>  sudo cp -i /etc/kubernetes/admin.conf $HOME/.kube/config<br>  sudo chown $(id -u):$(id -g) $HOME/.kube/config<br><br>Alternatively, if you are the root user, you can run:<br><br>  export KUBECONFIG=/etc/kubernetes/admin.conf<br><br>You should now deploy a pod network to the cluster.<br>Run &quot;kubectl apply -f [podnetwork].yaml&quot; with one of the options listed at:<br>  https://kubernetes.io/docs/concepts/cluster-administration/addons/<br><br>Then you can join any number of worker nodes by running the following on each as root:<br><br>kubeadm join 172.31.6.177:6443 --token vr5rat.seyprj6jvw4xy43m \<br>        --discovery-token-ca-cert-hash sha256:4c9b53eb03744b4cf21c5bdacd712024eb09030561714cc5545838482c8017b3</pre><pre>sudo mkdir -p $HOME/.kube<br>sudo cp -i /etc/kubernetes/admin.conf $HOME/.kube/config<br>sudo chown $(id -u):$(id -g) $HOME/.kube/config<br><br>kubectl create -f https://raw.githubusercontent.com/coreos/flannel/master/Documentation/kube-flannel.yml<br><br>kubeadm token create --print-join-command</pre><pre>kubeadm version<br><br>kubectl get nodes<br><br>cd .kube/<br><br>cat for changing the port</pre><p>refrence: <a href="https://www.fosstechnix.com/how-to-install-kubernetes-cluster-on-ubuntu/">https://www.fosstechnix.com/how-to-install-kubernetes-cluster-on-ubuntu/</a></p><ul><li><a href="https://kubernetes.io/docs/setup/production-environment/tools/kubeadm/install-kubeadm/">Installing kubeadm</a></li><li><a href="https://github.com/RishikeshOps/Scripts/blob/main/k8sss.sh">Scripts/k8sss.sh at main · RishikeshOps/Scripts</a></li><li><a href="https://stackoverflow.com/questions/67896736/unable-to-initiate-kubeadm-in-the-controller-node-it-says-port-in-use">unable to initiate kubeadm in the controller node , It says port in use</a></li><li><a href="https://jhooq.com/kubernetes-error-execution-phase-preflight-preflight/">How to fix Kubernetes - error execution phase preflight [preflight]</a></li></ul><p><a href="https://www.youtube.com/watch?v=NDuLm4O7BRM">https://www.youtube.com/watch?v=NDuLm4O7BRM</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e9fb4af3bc84" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Step by Step guide for setting up Kubernetes cluster on Ubuntu]]></title>
            <link>https://shahzebekram2468.medium.com/step-by-step-guide-for-setting-up-kubernetes-cluster-on-ubuntu-6fa2d0f6c7c1?source=rss-1d1b20a750d------2</link>
            <guid isPermaLink="false">https://medium.com/p/6fa2d0f6c7c1</guid>
            <category><![CDATA[ubuntu]]></category>
            <category><![CDATA[setup-kubernetes-cluster]]></category>
            <category><![CDATA[kubernetes]]></category>
            <dc:creator><![CDATA[Shahzaib Ekram]]></dc:creator>
            <pubDate>Wed, 03 May 2023 15:08:23 GMT</pubDate>
            <atom:updated>2023-05-03T15:08:23.540Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*RzNDq3zNPssFl12WyLdOlQ.png" /></figure><h3>Introduction:</h3><p>Kubernetes is a powerful container orchestration platform that can help you manage your containerized applications with ease. In this guide, we’ll show you how to set up a Kubernetes cluster on Ubuntu, step-by-step.</p><h3>Prerequisites:</h3><p>Before we get started, you’ll need to make sure you have the following prerequisites:</p><ul><li>Ubuntu 18.04 or later installed on all nodes</li><li>SSH access to all nodes with a sudo-enabled user</li><li>Kubernetes CLI tool (kubectl) installed on your local machine</li></ul><h3>Step 1: Install Docker</h3><p>Kubernetes relies on Docker to manage containers. To install Docker on Ubuntu, run the following commands:</p><ul><li>sudo apt update</li><li>sudo apt install docker.io</li></ul><p>Once Docker is installed, start and enable it to run on boot with the following commands:</p><ul><li>sudo systemctl start docker</li><li>sudo systemctl enable docker</li></ul><h3>Step 2: Install Kubernetes</h3><p>To install Kubernetes, we’ll use the kubeadm tool. This tool allows us to easily set up a cluster and manage nodes.</p><p>First, add the Kubernetes apt repository key and repository by running the following commands:</p><p><a href="https://safonax.blogspot.com/2023/05/step-by-step-guide-for-setting-up.html">Click here</a> for complete Kubernetes installation guidance.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=6fa2d0f6c7c1" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How to Become a Digital Marketer with no Experience]]></title>
            <link>https://shahzebekram2468.medium.com/how-to-become-a-digital-marketer-with-no-experience-7d79c4f08642?source=rss-1d1b20a750d------2</link>
            <guid isPermaLink="false">https://medium.com/p/7d79c4f08642</guid>
            <category><![CDATA[digital-marketing]]></category>
            <category><![CDATA[digital-market-training]]></category>
            <category><![CDATA[digital-marketers]]></category>
            <category><![CDATA[marketing-experiencial]]></category>
            <category><![CDATA[digital-marketing-jobs]]></category>
            <dc:creator><![CDATA[Shahzaib Ekram]]></dc:creator>
            <pubDate>Tue, 11 May 2021 15:44:27 GMT</pubDate>
            <atom:updated>2021-05-11T15:44:27.730Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*CQIAQUP0PyIPnL7BNrpiRw.jpeg" /></figure><p>In the <a href="https://covid.gov.pk/">COVID-19</a> situation, a lot of businesses is suffered from financial crises, this is the best time to learn digital marketing skills. It is a good opportunity for digital marketers to give marketing services to small businesses and earn handsome money.</p><p>You have a lot of options to start a digital marketing career like SEO, social media advertiser, content writing, and so forth. One thing to remember in your mind that is everyone has to start somewhere if you have no experience in digital marketing firstly you have to do an internship in a company or doing freelancing on the internet, and another social platform.</p><h3>Tips for Digital Marketer with no experience:</h3><h3>1. Develop your skill:</h3><p>Start right now to learn digital marketing course from online internet, spend at least 3 months and give 2 to 3 hours a day with concentration and try to make notes on a computer, notebook its depend up to you. The main features of services you want to learn as a digital marketer:</p><ul><li>SEO</li><li>Content writing</li><li><a href="https://safonax.blogspot.com/2021/01/best-social-media-marketing-courses.html">Social media marketing</a></li><li>Google Ads</li></ul><h3>2. Work Free for Local Clients:</h3><p>After the finish of your learning, you want portfolios, but as a fresher in this industry you have no past work so you have to work for a local client free of cost for testimonials and once you get digital marketing experience you can charge and make lead to international or local clients. The main freelance website is very helpful for you.</p><ul><li>Fiverr</li><li>Freelancer</li><li>Upwork</li><li>People per hour</li></ul><h3>3. Internship:</h3><p>Now you have a portfolio of your work, it’s time to create a resume and apply for a company related to your field, if the company asking for work experience then you’ll show your resume or testimonials of clients which make show good impression and the path will be easier for you.</p><p>These are the best ways to get started digital marketing career and make your foundation solid and put your effort strongly and from time to time learn a new thing if you want to succeed as a digital marketer don’t forget to stop learning.</p><p><em>Originally published by </em><a href="https://safonax.blogspot.com/"><em>Safonax</em></a><em> about </em><a href="https://safonax.blogspot.com/2021/05/how-to-become-digital-marketer-with-no-experience.html"><em>digital marketer with no experience</em></a><em>.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=7d79c4f08642" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[What is the Features of Linux Operating System and — Where it is used?]]></title>
            <link>https://shahzebekram2468.medium.com/what-is-the-features-of-linux-operating-system-and-where-it-is-used-5ad4a3b2cdbf?source=rss-1d1b20a750d------2</link>
            <guid isPermaLink="false">https://medium.com/p/5ad4a3b2cdbf</guid>
            <category><![CDATA[linux]]></category>
            <category><![CDATA[linux-infrastructure]]></category>
            <category><![CDATA[linux-operating-system]]></category>
            <category><![CDATA[linux-open-source]]></category>
            <category><![CDATA[features-of-linux]]></category>
            <dc:creator><![CDATA[Shahzaib Ekram]]></dc:creator>
            <pubDate>Tue, 11 May 2021 15:38:45 GMT</pubDate>
            <atom:updated>2021-05-11T15:47:25.139Z</atom:updated>
            <content:encoded><![CDATA[<h3>linux featWhat is the Features of Linux Operating System and — Where it is used?</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/640/1*TIf5N0HOatutpi3j0CqZ6Q.png" /></figure><p>Linux is an operating system just like Windows but it is an open-source OS most developers used Linux for programming, DevOps, and development purposes because it is programmer-friendly, so the important <strong>features of Linux operating system</strong> are here, and why the world is going towards Linux.</p><h3>What is open source:</h3><p>Open source means Linux code is freely available and accessible. A various group of developers cooperates to upgrade the ability of the Linux working framework and it is consistently advancing the Linux operating system.</p><p>For more website with free course link visit here 👉F<a href="https://safonax.blogspot.com/2021/01/features-of-linux-operating-system.html">eatures of Linux Operating System</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=5ad4a3b2cdbf" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>