<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Arun Ramachandran</title>
    <description>The latest articles on DEV Community by Arun Ramachandran (@thecloudtechin).</description>
    <link>https://dev.to/thecloudtechin</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F820295%2Fa18d2b32-4f43-4d6f-811e-94261b3e7950.png</url>
      <title>DEV Community: Arun Ramachandran</title>
      <link>https://dev.to/thecloudtechin</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/thecloudtechin"/>
    <language>en</language>
    <item>
      <title>k8s kops</title>
      <dc:creator>Arun Ramachandran</dc:creator>
      <pubDate>Sat, 18 May 2024 12:09:35 +0000</pubDate>
      <link>https://dev.to/thecloudtechin/k8s-kops-3hfm</link>
      <guid>https://dev.to/thecloudtechin/k8s-kops-3hfm</guid>
      <description>&lt;h3&gt;
  
  
  without specifying disk size
&lt;/h3&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;kops create cluster --yes --state=s3://kops-dev-storage --zones=ap-south-1a --node-count=1 --node-size=t2.medium --master-size=t2.medium --name=democluster.k8s.local
kops validate cluster --wait 10m
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h3&gt;
  
  
  with specifying disk size
&lt;/h3&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;kops create cluster --yes \
    --state=s3://kops-dev-storage \
    --zones=ap-south-1a \
    --node-count=1 \
    --node-size=t2.small \
    --node-volume-size=10 \
    --master-size=t2.medium  \
    --master-volume-size=10 \
    --name=k8s.k8s.local

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Kubernetes-Zero-to-Hero&lt;br&gt;
Creating this repo with an intent to make Kubernetes easy for begineers. This is a work-in-progress repo.&lt;/p&gt;

&lt;p&gt;Kubernetes Installation Using KOPS on EC2&lt;br&gt;
Create an EC2 instance or use your personal laptop.&lt;br&gt;
Dependencies required&lt;/p&gt;

&lt;p&gt;Python3&lt;br&gt;
AWS CLI&lt;br&gt;
kubectl&lt;br&gt;
Install dependencies&lt;br&gt;
&lt;code&gt;curl -s https://packages.cloud.google.com/apt/doc/apt-key.gpg | sudo apt-key add -&lt;/code&gt;&lt;br&gt;
&lt;code&gt;echo "deb https://apt.kubernetes.io/ kubernetes-xenial main" | sudo tee -a /etc/apt/sources.list.d/kubernetes.list&lt;/code&gt;&lt;br&gt;
&lt;code&gt;sudo apt-get update&lt;/code&gt;&lt;br&gt;
&lt;code&gt;sudo apt-get install -y python3-pip apt-transport-https kubectl&lt;/code&gt;&lt;br&gt;
&lt;code&gt;pip3 install awscli --upgrade&lt;/code&gt;&lt;br&gt;
&lt;code&gt;export PATH="$PATH:/home/ubuntu/.local/bin/"&lt;/code&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Install KOPS (our hero for today)
&lt;/h2&gt;

&lt;p&gt;&lt;code&gt;curl -LO https://github.com/kubernetes/kops/releases/download/$(curl -s https://api.github.com/repos/kubernetes/kops/releases/latest | grep tag_name | cut -d '"' -f 4)/kops-linux-amd64&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;&lt;code&gt;chmod +x kops-linux-amd64&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;&lt;code&gt;sudo mv kops-linux-amd64 /usr/local/bin/kops&lt;/code&gt;&lt;br&gt;
Provide the below permissions to your IAM user. If you are using the admin user, the below permissions are available by default&lt;br&gt;
AmazonEC2FullAccess&lt;br&gt;
AmazonS3FullAccess&lt;br&gt;
IAMFullAccess&lt;br&gt;
AmazonVPCFullAccess&lt;br&gt;
Set up AWS CLI configuration on your EC2 Instance or Laptop.&lt;br&gt;
Run aws configure&lt;/p&gt;

&lt;p&gt;Kubernetes Cluster Installation&lt;br&gt;
Please follow the steps carefully and read each command before executing.&lt;/p&gt;

&lt;h3&gt;
  
  
  Create S3 bucket for storing the KOPS objects.
&lt;/h3&gt;

&lt;p&gt;&lt;code&gt;aws s3mb s3://kops-abhi-storage = us-east-1&lt;/code&gt;&lt;/p&gt;

&lt;h3&gt;
  
  
  Create the cluster
&lt;/h3&gt;

&lt;p&gt;&lt;code&gt;kops create cluster --name=demok8scluster.k8s.local --state=s3://kops-abhi-storage --zones=us-east-1a --node-count=1 --node-size=t2.micro --master-size=t2.micro  --master-volume-size=8 --node-volume-size=8&lt;/code&gt;&lt;br&gt;
Important: Edit the configuration as there are multiple resources created which won't fall into the free tier.&lt;br&gt;
&lt;code&gt;kops edit cluster myfirstcluster.k8s.local&lt;/code&gt;&lt;br&gt;
Step 12: Build the cluster&lt;/p&gt;

&lt;p&gt;&lt;code&gt;kops update cluster demok8scluster.k8s.local --yes --state=s3://kops-arun-storage&lt;/code&gt;&lt;/p&gt;

&lt;h3&gt;
  
  
  This will take a few minutes to create............
&lt;/h3&gt;

&lt;p&gt;After a few mins, run the below command to verify the cluster installation.&lt;/p&gt;

&lt;p&gt;&lt;code&gt;kops validate cluster demok8scluster.k8s.local&lt;/code&gt;&lt;/p&gt;

</description>
    </item>
    <item>
      <title>kubernets cluster on amazon eks</title>
      <dc:creator>Arun Ramachandran</dc:creator>
      <pubDate>Wed, 19 Jul 2023 17:55:05 +0000</pubDate>
      <link>https://dev.to/thecloudtechin/kubernets-cluster-cleation-aws-eks-33ha</link>
      <guid>https://dev.to/thecloudtechin/kubernets-cluster-cleation-aws-eks-33ha</guid>
      <description>&lt;ol&gt;
&lt;li&gt;create an iam role (eks-cluster)&lt;/li&gt;
&lt;li&gt;create stack for eks cluster(vpc,subnets,etc...)&lt;/li&gt;
&lt;li&gt;for creating cluster stack use CloudFormation  templates availabe in amazon documentation &lt;a href="https://docs.aws.amazon.com/eks/latest/userguide/creating-a-vpc.html"&gt;click here&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;after creating  the stack create eks cluster from amazon console and update the required details  and create cluster&lt;/li&gt;
&lt;li&gt;&lt;p&gt;to communicate local system to the cluster run the below command (run this on your local computer)&lt;br&gt;
&lt;strong&gt;aws eks update-kubeconfig --name&lt;/strong&gt; &lt;strong&gt;your cluster-name&lt;/strong&gt;&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Create Role for &lt;strong&gt;NodeGroup&lt;/strong&gt;  and attach the given policies &lt;br&gt;
   &lt;strong&gt;1. AmazonEC2ContainerRegistryReadOnly&lt;/strong&gt; &lt;br&gt;
   &lt;strong&gt;2. AmazonEKS_CNI_Policy&lt;/strong&gt;&lt;br&gt;
   &lt;strong&gt;3. AmazonEKSWorkerNodePolicy&lt;/strong&gt;&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Then Add Node Group goto amazon eks console and create nodegroup under compute tab in your cluster - given a Name and attach the &lt;strong&gt;NodeGroup&lt;/strong&gt; role under &lt;strong&gt;Node IAM Role&lt;/strong&gt;&lt;/p&gt;&lt;/li&gt;
&lt;/ol&gt;

</description>
    </item>
    <item>
      <title>Linux Basics</title>
      <dc:creator>Arun Ramachandran</dc:creator>
      <pubDate>Fri, 22 Jul 2022 07:00:31 +0000</pubDate>
      <link>https://dev.to/thecloudtechin/linux-basics-23dg</link>
      <guid>https://dev.to/thecloudtechin/linux-basics-23dg</guid>
      <description></description>
    </item>
    <item>
      <title>How to Install Kubernetes Cluster in Linux</title>
      <dc:creator>Arun Ramachandran</dc:creator>
      <pubDate>Tue, 28 Jun 2022 10:51:10 +0000</pubDate>
      <link>https://dev.to/thecloudtechin/how-to-install-kubernetes-cluster-in-linux-177f</link>
      <guid>https://dev.to/thecloudtechin/how-to-install-kubernetes-cluster-in-linux-177f</guid>
      <description>&lt;p&gt;&lt;a href="https://www.linuxtechi.com/install-kubernetes-k8s-on-ubuntu-20-04/"&gt;https://www.linuxtechi.com/install-kubernetes-k8s-on-ubuntu-20-04/&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;refer this link if installation getting  error &lt;br&gt;
&lt;a href="https://github.com/containerd/containerd/issues/6970"&gt;https://github.com/containerd/containerd/issues/6970&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;do this command solve：&lt;br&gt;
rm /etc/containerd/config.toml&lt;br&gt;
systemctl restart containerd&lt;/p&gt;

&lt;p&gt;&lt;a href="https://www.howtoforge.com/tutorial/install-laravel-on-ubuntu-for-apache/"&gt;https://www.howtoforge.com/tutorial/install-laravel-on-ubuntu-for-apache/&lt;/a&gt;&lt;/p&gt;

</description>
      <category>devops</category>
      <category>docker</category>
      <category>kubernetes</category>
      <category>linux</category>
    </item>
    <item>
      <title>Kubernetes in AWS with kops</title>
      <dc:creator>Arun Ramachandran</dc:creator>
      <pubDate>Thu, 23 Jun 2022 15:59:00 +0000</pubDate>
      <link>https://dev.to/thecloudtechin/kops-1p37</link>
      <guid>https://dev.to/thecloudtechin/kops-1p37</guid>
      <description>&lt;p&gt;Kops is an official Kubernetes project for managing a Kubernetes clusters in aws. &lt;br&gt;
Kops Stands for Kubernetes Operations.&lt;br&gt;
Kops is currently the best tool to deploy Kubernetes clusters to Amazon Web Services.&lt;br&gt;
Kops has commands for creating clusters, updating settings, and applying changes , Kops automates a large part of operating Kubernetes on AWS.&lt;br&gt;
Kops only availabe for Linux and Mac Platforms.&lt;/p&gt;

&lt;p&gt;&lt;u&gt;Prepare AWS for Kops&lt;/u&gt;&lt;/p&gt;

&lt;p&gt;Management Node (Local System - ubuntu 20.0.4)&lt;/p&gt;

&lt;p&gt;In this management node below requirements must be required for kops.&lt;/p&gt;

&lt;p&gt;1.kops&lt;br&gt;
2.kubectl&lt;br&gt;
3.aws cli&lt;br&gt;
4.s3 bucket access         &lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F8enhbzali5ainyiion7o.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F8enhbzali5ainyiion7o.png" alt="Image description"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;u&gt;AWS &lt;/u&gt;&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Create an IAM User&lt;/li&gt;
&lt;li&gt;Assign the Permissions&lt;/li&gt;
&lt;li&gt;Create S3 bucket for storing KOPS_STORE_STATE&lt;/li&gt;
&lt;li&gt;Route53 &lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;&lt;em&gt;Install kops on Ubuntu 20.0.4&lt;/em&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;curl -Lo kops https://github.com/kubernetes/kops/releases/download/$(curl -s https://api.github.com/repos/kubernetes/kops/releases/latest | grep tag_name | cut -d '"' -f 4)/kops-linux-amd64
chmod +x kops
sudo mv kops /usr/local/bin/kops
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;em&gt;Install kubectl on Ubuntu 20.0.4&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Update the apt package index and install packages needed to use the Kubernetes apt repository&lt;/strong&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;sudo apt-get update
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;





&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;sudo apt-get install -y apt-transport-https ca-certificates curl
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;Download the Google Cloud public signing key:&lt;/strong&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;sudo curl -fsSLo /usr/share/keyrings/kubernetes-archive-keyring.gpg https://packages.cloud.google.com/apt/doc/apt-key.gpg
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;Add the Kubernetes apt repository&lt;/strong&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;echo "deb [signed-by=/usr/share/keyrings/kubernetes-archive-keyring.gpg] https://apt.kubernetes.io/ kubernetes-xenial main" | sudo tee /etc/apt/sources.list.d/kubernetes.list
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;Update apt package index with the new repository and install kubectl&lt;/strong&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;sudo apt-get update

sudo apt-get install -y kubectl
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;Installing AWS CLI&lt;/strong&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;sudo  apt install awscli
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;Verify AWS CLI using command&lt;/strong&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt; aws
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;em&gt;Create/Log-in AWS Console Account.&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;&lt;em&gt;SetUp AWS IAM permission for Kops.&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;&lt;em&gt;Create a user(kops) and give them permission.&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Permission required for Kops use&lt;/strong&gt;r&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;AmazonEC2FullAccess
AmazonRoute53FullAccess
AmazonS3FullAccess
IAMFullAccess
AmazonVPCFullAccess
OR
AdministratorAccess
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;em&gt;Configure User with AWS Account.&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Run command on your machine&lt;/strong&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;aws configure
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;em&gt;Provide AWS access Key and AWS Secret Access Key.&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;&lt;em&gt;Specify Default region or Output format.&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Verify credentials and config.&lt;/strong&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt; ls -lrt ~/.aws/
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;em&gt;S3 bucket for the KOPS_STATE_STORE.&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;&lt;em&gt;KOPS_STATE_STORE is the source of truth for all clusters managed by Kops&lt;/em&gt;.&lt;/p&gt;

&lt;p&gt;&lt;em&gt;Get fastest Region for Deploy the S3 Bucket.&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Create an S3 bucket for KOPS_STATE-STORE&lt;/strong&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;aws s3 mb s3://&amp;lt;bucket-name&amp;gt;
aws s3 mb s3://k8s-test-123
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;em&gt;User can use &lt;a href="https://www.cloudping.info" rel="noopener noreferrer"&gt;cloudping&lt;/a&gt; to choose the fastest region as per their location.&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;&lt;em&gt;Kops clusters must be valid DNS names.&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;&lt;em&gt;We need to SetUp DNS for the Kops Clusters.&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;&lt;em&gt;SetUp DNS in AWS Route53.&lt;/em&gt; &lt;/p&gt;

&lt;p&gt;I have a Domain &lt;em&gt;cloudmates.in&lt;/em&gt; which is availabe in &lt;strong&gt;Godaddy&lt;/strong&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  For creating DNS in Route53
&lt;/h2&gt;

&lt;p&gt;&lt;em&gt;Go to Route53&lt;/em&gt;&lt;br&gt;
&lt;em&gt;Create Hosted Zone&lt;/em&gt;&lt;br&gt;
Zone Name &lt;em&gt;kops.cloudmates.in&lt;/em&gt;&lt;br&gt;
Copy The NS records and create NS  in your Domain Name Provider once completes validate the dns&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;dig -t ns=kops.cloudmates.in

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;em&gt;With Kops 1.6.2 or later, then DNS configuration is optional.&lt;/em&gt;&lt;br&gt;
&lt;em&gt;The only requirement to trigger this is to have the cluster name end with .k8s.local&lt;/em&gt;&lt;br&gt;
&lt;u&gt;SetUp Kubernetes Cluster on AWS with Kops&lt;/u&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Generate SSH Key&lt;/strong&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;ssh-keygen -f .ssh/id_rsa
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  Create Cluster Syntax
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;kops create cluster --yes --state=&amp;lt;s3://&amp;lt;Define S3 Bucket Name&amp;gt;&amp;gt; --zones=&amp;lt;One or more Zones&amp;gt; --node-count=&amp;lt;Number of Nodes&amp;gt; --node-size=&amp;lt;Define Machine Size&amp;gt; --master-size=&amp;lt;Master Node Size&amp;gt;  --name=&amp;lt;Define DNS Name&amp;gt;

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  Create Cluster with Route53 hosted zone
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;kops create cluster --yes --state=s3://k8s-storage-a12345 --zones=ap-south-1a --node-count=2 --node-size=t2.micro --master-size=t2.micro --name=kops.cloudmates.in

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  Verify Node Status
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;kubectl get node

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  Validate Cluster
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;kops validate cluster --state=&amp;lt;s3://&amp;lt;Define S3 Bucket Name&amp;gt;
kops validate cluster --state=s3://k8s-test-123`

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h6&gt;
  
  
  ### Execute Custom Image on AWS kubernetes
&lt;/h6&gt;

&lt;p&gt;*&lt;em&gt;Create AWS Kubernetes Cluster Without Domain Name *&lt;/em&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;   kops create cluster --yes --state=s3://k8s-test-123 --zones=ap-south-1a --node-size=t2.micro --node-count=2 --master-size=t2.micro --name=test.k8s.local

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;Verify Kubernetes Cluster.(Different Formats)&lt;/strong&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;   kops validate cluster
   kops validate cluster -o json
   kops validate cluster -o yaml

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;Start the Deployment on Kubernetes Cluster&lt;/strong&gt;.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt; kubectl create deployment myweb --image=cloudmates/customnginx

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;Get Information of Running Deployments&lt;/strong&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;kubectl get deployments

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;Describe the Running Deployment&lt;/strong&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt; kubectl describe deployment myweb

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;Make the myweb container accessible via the internet loadbalancer&lt;/strong&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;kubectl create service loadbalancer myweb --tcp=80:80

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;Get Running Services&lt;/strong&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;kubectl get svc

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;Remove Services&lt;/strong&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt; kubectl delete services myweb

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;Remove Deployment&lt;/strong&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt; kubectl delete deployment myweb

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;Delete Cluster&lt;/strong&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;kops delete cluster cloudmates.in --yes --state=s3://k8s-test-123

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



</description>
      <category>devops</category>
      <category>aws</category>
      <category>kubernetes</category>
      <category>docker</category>
    </item>
  </channel>
</rss>
