{"id":82287,"date":"2022-05-30T06:03:07","date_gmt":"2022-05-30T11:33:07","guid":{"rendered":"https:\/\/www.whizlabs.com\/blog\/?p=82287"},"modified":"2022-05-30T06:04:16","modified_gmt":"2022-05-30T11:34:16","slug":"deploying-kubernetes-on-aws","status":"publish","type":"post","link":"https:\/\/www.whizlabs.com\/blog\/deploying-kubernetes-on-aws\/","title":{"rendered":"How to run Kubernetes on AWS &#8211; A detailed Guide!"},"content":{"rendered":"<p>In this article, we are going to learn &#8211; How to run Kubernetes on the AWS platform. <span style=\"font-weight: 400;\">Kubernetes is the most popular and open-source container orchestration platform. Kubernetes (K8S) automates most of the manual tasks involved in deploying and managing containerized applications.\u00a0<\/span><span style=\"font-weight: 400;\">Amazon Web Services (AWS) is the top Cloud service provider and has a wide range of services with high availability.<\/span><\/p>\n<p><span style=\"font-weight: 400;\">In this article, we will see what are the different options available to set up a Kubernetes cluster on AWS and how to do it.\u00a0<\/span><\/p>\n<ul>\n<li style=\"font-weight: 400;\"><em><span style=\"font-weight: 400;\">Creating a cluster with kobs\u00a0<\/span><\/em>\n<ul>\n<li style=\"font-weight: 400;\"><span style=\"font-weight: 400;\">Kubernetes Operations or kops is an open-source project used to set up production-grade Kubernetes clusters on Amazon Web Services (AWS) (officially supported), Google Cloud, DigitalOcean, and OpenStack.<\/span><\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<ul>\n<li><em><span style=\"font-weight: 400;\">Creating a cluster with Amazon Elastic Kubernetes Service (EKS)<\/span><\/em>\n<ul>\n<li style=\"font-weight: 400;\"><span style=\"font-weight: 400;\">Amazon Elastic Kubernetes Service or EKS is a fully managed Kubernetes service provided by Amazon.\u00a0<\/span><\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<ul>\n<li style=\"font-weight: 400;\"><em><span style=\"font-weight: 400;\">Creating a cluster with Rancher<\/span><\/em>\n<ul>\n<li style=\"font-weight: 400;\"><span style=\"font-weight: 400;\">Rancher is another Kubernetes management platform to deploy Kubernetes and containers. A rancher runs on the RancherOS which is available as Amazon Machine Image (AMI) and can be deployed on the EC2 instances.<\/span><\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<ul>\n<li style=\"font-weight: 400;\"><em><span style=\"font-weight: 400;\">Creating a cluster with Terraform<\/span><\/em>\n<ul>\n<li><span style=\"font-weight: 400;\">Terraform is another popular Infrastructure as a code (IaC) tool that can deploy containerized applications to Kubernetes clusters running on AWS.\u00a0<\/span><\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<p><span style=\"font-weight: 400;\">Before learning the Kubernetes deployments option on the AWS, let us make sure we have the following skills which will be useful in understanding the AWS Kubernetes deployments.\u00a0<\/span><\/p>\n<ul>\n<li style=\"font-weight: 400;\"><span style=\"font-weight: 400;\">Linux administration, Command Line Interface, YAML<\/span><\/li>\n<li style=\"font-weight: 400;\"><span style=\"font-weight: 400;\">Familiarity with AWS core services like IAM, VPC, EC2, etc<\/span><\/li>\n<li style=\"font-weight: 400;\"><span style=\"font-weight: 400;\">Knowledge of containers (preferably Docker) and understanding of the difference between Virtual Machines (VMs) and Containers.<\/span><\/li>\n<\/ul>\n<p><span style=\"font-weight: 400;\">We will be using Command Line Interface (CLI) to use Kops and deploy Kubernetes on AWS. Before we start the deployment, let\u2019s set up the environment.<\/span><\/p>\n<div id=\"ez-toc-container\" class=\"ez-toc-v2_0_76 ez-toc-wrap-left counter-hierarchy ez-toc-counter ez-toc-custom ez-toc-container-direction\">\n<div class=\"ez-toc-title-container\">\n<p class=\"ez-toc-title\" style=\"cursor:inherit\">Table of Contents<\/p>\n<span class=\"ez-toc-title-toggle\"><a href=\"#\" class=\"ez-toc-pull-right ez-toc-btn ez-toc-btn-xs ez-toc-btn-default ez-toc-toggle\" aria-label=\"Toggle Table of Content\"><span class=\"ez-toc-js-icon-con\"><span class=\"\"><span class=\"eztoc-hide\" style=\"display:none;\">Toggle<\/span><span class=\"ez-toc-icon-toggle-span\"><svg style=\"fill: #ea7e02;color:#ea7e02\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" class=\"list-377408\" width=\"20px\" height=\"20px\" viewBox=\"0 0 24 24\" fill=\"none\"><path d=\"M6 6H4v2h2V6zm14 0H8v2h12V6zM4 11h2v2H4v-2zm16 0H8v2h12v-2zM4 16h2v2H4v-2zm16 0H8v2h12v-2z\" fill=\"currentColor\"><\/path><\/svg><svg style=\"fill: #ea7e02;color:#ea7e02\" class=\"arrow-unsorted-368013\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"10px\" height=\"10px\" viewBox=\"0 0 24 24\" version=\"1.2\" baseProfile=\"tiny\"><path d=\"M18.2 9.3l-6.2-6.3-6.2 6.3c-.2.2-.3.4-.3.7s.1.5.3.7c.2.2.4.3.7.3h11c.3 0 .5-.1.7-.3.2-.2.3-.5.3-.7s-.1-.5-.3-.7zM5.8 14.7l6.2 6.3 6.2-6.3c.2-.2.3-.5.3-.7s-.1-.5-.3-.7c-.2-.2-.4-.3-.7-.3h-11c-.3 0-.5.1-.7.3-.2.2-.3.5-.3.7s.1.5.3.7z\"\/><\/svg><\/span><\/span><\/span><\/a><\/span><\/div>\n<nav><ul class='ez-toc-list ez-toc-list-level-1 ' ><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-1\" href=\"https:\/\/www.whizlabs.com\/blog\/deploying-kubernetes-on-aws\/#Prerequisites_before_deploying_Kubernetes_on_AWS\" >Prerequisites before deploying Kubernetes on AWS<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-2\" href=\"https:\/\/www.whizlabs.com\/blog\/deploying-kubernetes-on-aws\/#Install_kubectl\" >Install kubectl<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-3\" href=\"https:\/\/www.whizlabs.com\/blog\/deploying-kubernetes-on-aws\/#Install_kops\" >Install kops<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-4\" href=\"https:\/\/www.whizlabs.com\/blog\/deploying-kubernetes-on-aws\/#Create_an_IAM_user_with_the_necessary_permissions\" >Create an IAM user with the necessary permissions<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-5\" href=\"https:\/\/www.whizlabs.com\/blog\/deploying-kubernetes-on-aws\/#AWS_configure\" >AWS configure<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-6\" href=\"https:\/\/www.whizlabs.com\/blog\/deploying-kubernetes-on-aws\/#Creating_an_S3_bucket_for_Cluster_State_Storage\" >Creating an S3 bucket for Cluster State Storage<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-7\" href=\"https:\/\/www.whizlabs.com\/blog\/deploying-kubernetes-on-aws\/#Creating_a_Kubernetes_Cluster\" >Creating a Kubernetes Cluster<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-8\" href=\"https:\/\/www.whizlabs.com\/blog\/deploying-kubernetes-on-aws\/#Setting_up_Rancher\" >Setting up Rancher<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-9\" href=\"https:\/\/www.whizlabs.com\/blog\/deploying-kubernetes-on-aws\/#Creating_a_Kubernetes_Cluster_via_Rancher_in_AWS\" >Creating a Kubernetes Cluster via Rancher in AWS<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-10\" href=\"https:\/\/www.whizlabs.com\/blog\/deploying-kubernetes-on-aws\/#Create_Kubernetes_Cluster_on_Amazon_EKS\" >Create Kubernetes Cluster on Amazon EKS<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-11\" href=\"https:\/\/www.whizlabs.com\/blog\/deploying-kubernetes-on-aws\/#Prerequisites\" >Prerequisites<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-12\" href=\"https:\/\/www.whizlabs.com\/blog\/deploying-kubernetes-on-aws\/#Create_an_IAM_role_for_EKS_Cluster\" >Create an IAM role for EKS Cluster<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-13\" href=\"https:\/\/www.whizlabs.com\/blog\/deploying-kubernetes-on-aws\/#Create_VPC_for_the_EKS_Cluster\" >Create VPC for the EKS Cluster<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-14\" href=\"https:\/\/www.whizlabs.com\/blog\/deploying-kubernetes-on-aws\/#Creating_an_Elastic_Kubernetes_Service_EKS_Cluster\" >Creating an Elastic Kubernetes Service (EKS) Cluster<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-15\" href=\"https:\/\/www.whizlabs.com\/blog\/deploying-kubernetes-on-aws\/#Summary\" >Summary<\/a><\/li><\/ul><\/nav><\/div>\n<h3><span class=\"ez-toc-section\" id=\"Prerequisites_before_deploying_Kubernetes_on_AWS\"><\/span>Prerequisites before deploying Kubernetes on AWS<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<ul>\n<li><span style=\"font-weight: 400;\">AWS Account (You can use Whizlabs\u2019s <a href=\"https:\/\/www.whizlabs.com\/labs\/\">AWS Hands-On Labs<\/a> Environment)<\/span><\/li>\n<li><span style=\"font-weight: 400;\">EC2 Instance (Ubuntu)<\/span><\/li>\n<li><span style=\"font-weight: 400;\">S3 Bucket\u00a0<\/span><\/li>\n<li><span style=\"font-weight: 400;\">IAM role with sufficient permissions<\/span><\/li>\n<li><span style=\"font-weight: 400;\">Domain name<\/span><\/li>\n<li><span style=\"font-weight: 400;\">Kubectl, kops, and AWS CLI tools are installed ( I have these installed on my system already. you can follow the links provided below to install them)<\/span><\/li>\n<\/ul>\n<h3><span class=\"ez-toc-section\" id=\"Install_kubectl\"><\/span>Install kubectl<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p><span style=\"font-weight: 400;\">There are multiple ways to install kubectl. You can <\/span><a href=\"https:\/\/kubernetes.io\/docs\/tasks\/tools\/install-kubectl-macos\/\" target=\"_blank\" rel=\"noopener\"><span style=\"font-weight: 400;\">follow this link<\/span><\/a><span style=\"font-weight: 400;\"> and follow the steps to install kubectl.<\/span><\/p>\n<p><img decoding=\"async\" class=\"aligncenter wp-image-82214 size-full\" title=\"Install kubectl\" src=\"https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/05\/kubectl_version_cmd.png\" alt=\"Install kubectl\" width=\"969\" height=\"261\" srcset=\"https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/05\/kubectl_version_cmd.png 969w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/05\/kubectl_version_cmd-300x81.png 300w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/05\/kubectl_version_cmd-768x207.png 768w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/05\/kubectl_version_cmd-640x172.png 640w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/05\/kubectl_version_cmd-681x183.png 681w\" sizes=\"(max-width: 969px) 100vw, 969px\" \/><\/p>\n<h3><span class=\"ez-toc-section\" id=\"Install_kops\"><\/span>Install kops<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p><span style=\"font-weight: 400;\">Follow the steps in <\/span><a href=\"https:\/\/kops.sigs.k8s.io\/getting_started\/install\/\" target=\"_blank\" rel=\"noopener\"><span style=\"font-weight: 400;\">this link<\/span><\/a><span style=\"font-weight: 400;\"> to install kops.<\/span><\/p>\n<p><img decoding=\"async\" class=\"aligncenter wp-image-82289 size-full\" title=\"Install kops\" src=\"https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/05\/kops-version.png\" alt=\"Install kops\" width=\"973\" height=\"173\" srcset=\"https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/05\/kops-version.png 973w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/05\/kops-version-300x53.png 300w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/05\/kops-version-768x137.png 768w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/05\/kops-version-640x114.png 640w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/05\/kops-version-681x121.png 681w\" sizes=\"(max-width: 973px) 100vw, 973px\" \/><\/p>\n<h3><span class=\"ez-toc-section\" id=\"Create_an_IAM_user_with_the_necessary_permissions\"><\/span>Create an IAM user with the necessary permissions<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p><span style=\"font-weight: 400;\">Let us create an IAM user and assign the following permissions for kops to run properly.\u00a0<\/span><\/p>\n<ul>\n<li><span style=\"font-weight: 400;\">AmazonEC2FullAccess<\/span><\/li>\n<li><span style=\"font-weight: 400;\">AmazonRoute53FullAccess<\/span><\/li>\n<li><span style=\"font-weight: 400;\">AmazonS3FullAccess<\/span><\/li>\n<li><span style=\"font-weight: 400;\">IAMFullAccess<\/span><\/li>\n<li><span style=\"font-weight: 400;\">AmazonVPCFullAccess<\/span><\/li>\n<\/ul>\n<p><img decoding=\"async\" class=\"aligncenter wp-image-82290 size-full\" title=\"Create IAM user\" src=\"https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/05\/create_IAM_user.png\" alt=\"create_IAM_user\" width=\"1412\" height=\"695\" srcset=\"https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/05\/create_IAM_user.png 1412w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/05\/create_IAM_user-300x148.png 300w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/05\/create_IAM_user-1024x504.png 1024w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/05\/create_IAM_user-768x378.png 768w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/05\/create_IAM_user-853x420.png 853w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/05\/create_IAM_user-640x315.png 640w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/05\/create_IAM_user-681x335.png 681w\" sizes=\"(max-width: 1412px) 100vw, 1412px\" \/><\/p>\n<p><img decoding=\"async\" class=\"aligncenter wp-image-82291 size-full\" title=\"IAM policy\" src=\"https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/05\/iam_policy.png\" alt=\"iam_policy\" width=\"1415\" height=\"702\" srcset=\"https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/05\/iam_policy.png 1415w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/05\/iam_policy-300x149.png 300w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/05\/iam_policy-1024x508.png 1024w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/05\/iam_policy-768x381.png 768w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/05\/iam_policy-847x420.png 847w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/05\/iam_policy-640x318.png 640w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/05\/iam_policy-681x338.png 681w\" sizes=\"(max-width: 1415px) 100vw, 1415px\" \/><\/p>\n<p><span style=\"font-weight: 400;\">We will be using this user\u2019s credentials to run CLI commands. So we need to configure AWS CLI with this user\u2019s credentials. To configure, run the following command: <\/span><\/p>\n<h3><span class=\"ez-toc-section\" id=\"AWS_configure\"><\/span>AWS configure<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p><img decoding=\"async\" class=\"aligncenter wp-image-82292 size-full\" title=\"AWS config\" src=\"https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/05\/aws-config-cmd.png\" alt=\"aws config\" width=\"777\" height=\"365\" srcset=\"https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/05\/aws-config-cmd.png 777w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/05\/aws-config-cmd-300x141.png 300w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/05\/aws-config-cmd-768x361.png 768w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/05\/aws-config-cmd-640x301.png 640w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/05\/aws-config-cmd-681x320.png 681w\" sizes=\"(max-width: 777px) 100vw, 777px\" \/><\/p>\n<p>&nbsp;<\/p>\n<h3><span class=\"ez-toc-section\" id=\"Creating_an_S3_bucket_for_Cluster_State_Storage\"><\/span>Creating an S3 bucket for Cluster State Storage<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p><span style=\"font-weight: 400;\">In this step, we will create an S3 bucket named as \u201c<\/span><b>whizlabs-kubernetes-demo<\/b><span style=\"font-weight: 400;\">\u201d. This bucket will be used by kops to store the state of the clusters.\u00a0<\/span><\/p>\n<p><span style=\"font-weight: 400;\">To create a bucket, run the following command:<\/span><\/p>\n<p><b>aws s3api create-bucket &#8211;bucket whizlabs-kubernetes-demo LocationConstraint=ap-south-1<\/b><\/p>\n<p><img decoding=\"async\" class=\"aligncenter wp-image-82293 size-full\" title=\"Create S3 bucket\" src=\"https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/05\/create-bucket.png\" alt=\"Create S3 bucket\" width=\"1431\" height=\"289\" srcset=\"https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/05\/create-bucket.png 1431w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/05\/create-bucket-300x61.png 300w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/05\/create-bucket-1024x207.png 1024w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/05\/create-bucket-768x155.png 768w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/05\/create-bucket-640x129.png 640w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/05\/create-bucket-681x138.png 681w\" sizes=\"(max-width: 1431px) 100vw, 1431px\" \/><\/p>\n<p><span style=\"font-weight: 400;\">Now, run the following command to enable bucket versioning:<\/span><\/p>\n<p><b>aws s3api put-bucket-versioning &#8211;bucket whizlabs-kubernetes-demo &#8211;versioning-configuration Status=Enabled<\/b><\/p>\n<p><b>DNS Setup<\/b><\/p>\n<p><span style=\"font-weight: 400;\">DNS is needed by worker nodes to discover the master and also needed by the master node to discover all the etcd servers. You can use either public or private DNS. In this tutorial, we will be using simple private DNS to create a cluster.\u00a0<\/span><\/p>\n<h3><span class=\"ez-toc-section\" id=\"Creating_a_Kubernetes_Cluster\"><\/span>Creating a Kubernetes Cluster<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p><span style=\"font-weight: 400;\">Let us run the following command and create 1 master(t2.medium)\u00a0 and 2 nodes(t2.micro) clusters in the ap-south-1 region.<\/span><\/p>\n<p><b>kops create cluster \\ &#8211;name my-cluster.k8s.local \\ &#8211;zones ap-south-1 \\ &#8211;dns private \\ &#8211;master-size=t2.medium \\ &#8211;master-count=1 \\ &#8211;node-size=t2.micro \\ &#8211;node-count=2 \\ &#8211;state s3:\/\/my-cluster-state \\ &#8211;yes<\/b><\/p>\n<h3><span class=\"ez-toc-section\" id=\"Setting_up_Rancher\"><\/span>Setting up Rancher<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p><span style=\"font-weight: 400;\">Let us create an EC2 instance with the Amazon Machine Image (AMI). Allow the HTTP traffic (port 8080) and launch the instance.<\/span><\/p>\n<p><img decoding=\"async\" class=\"aligncenter wp-image-82294 size-full\" title=\"AWS Rancher AMI\" src=\"https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/05\/rancher-ami.png\" alt=\"AWS Rancher AMI\" width=\"1414\" height=\"699\" srcset=\"https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/05\/rancher-ami.png 1414w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/05\/rancher-ami-300x148.png 300w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/05\/rancher-ami-1024x506.png 1024w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/05\/rancher-ami-768x380.png 768w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/05\/rancher-ami-850x420.png 850w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/05\/rancher-ami-640x316.png 640w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/05\/rancher-ami-681x337.png 681w\" sizes=\"(max-width: 1414px) 100vw, 1414px\" \/><\/p>\n<p><span style=\"font-weight: 400;\">Once the instance is created and running, connect to the instance via SSH and run the following command to start the rancher server.<\/span><\/p>\n<p><strong>sudo docker run -d &#8211;restart=unless-stopped -p 8080:8080 rancher\/server<\/strong><\/p>\n<p><span style=\"font-weight: 400;\">Once this is started, we can access the Rancher UI on the port 8080 of the EC2 instance.\u00a0<\/span><\/p>\n<p><img decoding=\"async\" class=\"aligncenter wp-image-82296 size-full\" title=\"rancher UI\" src=\"https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/05\/rancherUI.png\" alt=\"rancher UI\" width=\"1128\" height=\"587\" srcset=\"https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/05\/rancherUI.png 1128w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/05\/rancherUI-300x156.png 300w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/05\/rancherUI-1024x533.png 1024w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/05\/rancherUI-768x400.png 768w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/05\/rancherUI-807x420.png 807w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/05\/rancherUI-640x333.png 640w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/05\/rancherUI-681x354.png 681w\" sizes=\"(max-width: 1128px) 100vw, 1128px\" \/><\/p>\n<p><img decoding=\"async\" class=\"aligncenter wp-image-82295 size-full\" title=\"Rancher User Stacks\" src=\"https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/05\/RancherUI2.png\" alt=\"Rancher User Stacks\" width=\"1415\" height=\"701\" srcset=\"https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/05\/RancherUI2.png 1415w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/05\/RancherUI2-300x149.png 300w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/05\/RancherUI2-1024x507.png 1024w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/05\/RancherUI2-768x380.png 768w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/05\/RancherUI2-848x420.png 848w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/05\/RancherUI2-640x317.png 640w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/05\/RancherUI2-681x337.png 681w\" sizes=\"(max-width: 1415px) 100vw, 1415px\" \/><\/p>\n<h3><span class=\"ez-toc-section\" id=\"Creating_a_Kubernetes_Cluster_via_Rancher_in_AWS\"><\/span>Creating a Kubernetes Cluster via Rancher in AWS<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p><span style=\"font-weight: 400;\">Kubernetes Environment Template<\/span><\/p>\n<p><span style=\"font-weight: 400;\">Create the Kubernetes Cluster (Rancher UI)<\/span><\/p>\n<p><span style=\"font-weight: 400;\">There are 3 ways to create a Kubernetes cluster using Rancher.\u00a0<\/span><\/p>\n<ul>\n<li style=\"font-weight: 400;\"><span style=\"font-weight: 400;\">Rancher UI<\/span><\/li>\n<li style=\"font-weight: 400;\"><span style=\"font-weight: 400;\">Rancher API<\/span><\/li>\n<li style=\"font-weight: 400;\"><span style=\"font-weight: 400;\">Rancher CLI<\/span><\/li>\n<\/ul>\n<h3><span class=\"ez-toc-section\" id=\"Create_Kubernetes_Cluster_on_Amazon_EKS\"><\/span>Create Kubernetes Cluster on Amazon EKS<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p><span style=\"font-weight: 400;\">As you know that <a href=\"https:\/\/www.whizlabs.com\/blog\/aws-eks\/\">Amazon EKS<\/a> is a fully-managed Kubernetes service. AWS will manage the master node. AWS itself will create a master node and install all the necessary applications like container runtime, Kubernetes master processes, etc. Also, AWS takes care of the backups and scaling. One of the other benefits of using Amazon EKS is, it can be integrated with other AWS services like Amazon CloudWatch, Route53, etc.<\/span><\/p>\n<p><span style=\"font-weight: 400;\">There are multiple ways to create an EKS cluster. In this method, we will be creating an EKS cluster from the AWS console UI.\u00a0<\/span><\/p>\n<p><span style=\"font-weight: 400;\">Before creating a cluster, let\u2019s create an IAM user with the necessary permissions.<\/span><\/p>\n<h3><span class=\"ez-toc-section\" id=\"Prerequisites\"><\/span>Prerequisites<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<ul>\n<li><span style=\"font-weight: 400;\">An AWS account with admin access<\/span><\/li>\n<li><span style=\"font-weight: 400;\">AWS CLI access to use kubectl<\/span><\/li>\n<li><span style=\"font-weight: 400;\">An EC2 instance (to manage cluster using kubectl)<\/span><\/li>\n<\/ul>\n<p><span style=\"font-weight: 400;\">Steps Involved in Creating Kubernetes Cluster using EKS:<\/span><\/p>\n<ol>\n<li style=\"font-weight: 400;\"><span style=\"font-weight: 400;\">Create an IAM role for EKS Cluster<\/span><\/li>\n<li style=\"font-weight: 400;\"><span style=\"font-weight: 400;\">Create VPC for the EKS Cluster<\/span><\/li>\n<li style=\"font-weight: 400;\"><span style=\"font-weight: 400;\">Creating an EKS Cluster<\/span><\/li>\n<li style=\"font-weight: 400;\"><span style=\"font-weight: 400;\">Setting up IAM authenticator and Kubectl utility<\/span><\/li>\n<li style=\"font-weight: 400;\"><span style=\"font-weight: 400;\">Create IAM role for EKS Worker Nodes<\/span><\/li>\n<li style=\"font-weight: 400;\"><span style=\"font-weight: 400;\">Creating Worker Nodes<\/span><\/li>\n<li style=\"font-weight: 400;\"><span style=\"font-weight: 400;\">Deploy an application<\/span><\/li>\n<\/ol>\n<h3><span class=\"ez-toc-section\" id=\"Create_an_IAM_role_for_EKS_Cluster\"><\/span>Create an IAM role for EKS Cluster<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p><span style=\"font-weight: 400;\">Open AWS Console and navigate to IAM then select roles. Click on \u201cCreate Role\u201d.<\/span><\/p>\n<p><img decoding=\"async\" class=\"aligncenter wp-image-82298 size-full\" title=\"Create IAM role\" src=\"https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/05\/create-iamrole.png\" alt=\"Create IAM role\" width=\"1415\" height=\"701\" srcset=\"https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/05\/create-iamrole.png 1415w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/05\/create-iamrole-300x149.png 300w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/05\/create-iamrole-1024x507.png 1024w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/05\/create-iamrole-768x380.png 768w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/05\/create-iamrole-848x420.png 848w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/05\/create-iamrole-640x317.png 640w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/05\/create-iamrole-681x337.png 681w\" sizes=\"(max-width: 1415px) 100vw, 1415px\" \/><\/p>\n<p><span style=\"font-weight: 400;\">Select the service as \u201cEKS\u201d and select the use case as \u201cEKS-Cluster\u201d.<\/span><\/p>\n<p><img decoding=\"async\" class=\"aligncenter wp-image-82299 size-full\" title=\"EKS Cluster Policy\" src=\"https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/05\/eksclusterpolicy.png\" alt=\"EKS Cluster Policy\" width=\"1410\" height=\"734\" srcset=\"https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/05\/eksclusterpolicy.png 1410w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/05\/eksclusterpolicy-300x156.png 300w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/05\/eksclusterpolicy-1024x533.png 1024w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/05\/eksclusterpolicy-768x400.png 768w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/05\/eksclusterpolicy-807x420.png 807w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/05\/eksclusterpolicy-640x333.png 640w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/05\/eksclusterpolicy-681x355.png 681w\" sizes=\"(max-width: 1410px) 100vw, 1410px\" \/><\/p>\n<p><span style=\"font-weight: 400;\">Give a name to the role and click on create role.<\/span><\/p>\n<p><img decoding=\"async\" class=\"aligncenter wp-image-82305 size-full\" title=\"EKS role\" src=\"https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/05\/eksrole-2.png\" alt=\"EKS role\" width=\"1143\" height=\"593\" srcset=\"https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/05\/eksrole-2.png 1143w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/05\/eksrole-2-300x156.png 300w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/05\/eksrole-2-1024x531.png 1024w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/05\/eksrole-2-768x398.png 768w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/05\/eksrole-2-810x420.png 810w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/05\/eksrole-2-640x332.png 640w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/05\/eksrole-2-681x353.png 681w\" sizes=\"(max-width: 1143px) 100vw, 1143px\" \/><\/p>\n<p><span style=\"font-weight: 400;\">I have created a role with the name \u201ceksclusterrole\u201d for this tutorial.<\/span><\/p>\n<h3><span class=\"ez-toc-section\" id=\"Create_VPC_for_the_EKS_Cluster\"><\/span>Create VPC for the EKS Cluster<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p><span style=\"font-weight: 400;\">The next step is to create a Virtual Private Cloud (VPC) for the EKS cluster. We can navigate to the VPC section on the AWS Console and create a new VPC. In this tutorial, I will create a VPC from the CloudFormation template.\u00a0<\/span><\/p>\n<p><span style=\"font-weight: 400;\">Navigate to CloudFormation on the AWS Console.<\/span><\/p>\n<p><img decoding=\"async\" class=\"aligncenter wp-image-82306 size-full\" title=\"AWS CloudFormation dashboard\" src=\"https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/05\/cloudformation_dashboard.png\" alt=\"AWS CloudFormation dashboard\" width=\"1415\" height=\"699\" srcset=\"https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/05\/cloudformation_dashboard.png 1415w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/05\/cloudformation_dashboard-300x148.png 300w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/05\/cloudformation_dashboard-1024x506.png 1024w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/05\/cloudformation_dashboard-768x379.png 768w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/05\/cloudformation_dashboard-850x420.png 850w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/05\/cloudformation_dashboard-640x316.png 640w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/05\/cloudformation_dashboard-681x336.png 681w\" sizes=\"(max-width: 1415px) 100vw, 1415px\" \/><\/p>\n<p><span style=\"font-weight: 400;\">I am going to use the CloudFormation template to create VPC. The following template will create a VPC with 2 public subnets and 2 private subnets.\u00a0<\/span><\/p>\n<p><span style=\"font-weight: 400;\">I have given the template link below. You can use it if needed. Upload the YML file and give a name and click on create stack.<\/span><\/p>\n<p><img decoding=\"async\" class=\"aligncenter wp-image-82309 size-full\" title=\"eks stack\" src=\"https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/05\/eks-stack.png\" alt=\"eks stack\" width=\"1252\" height=\"616\" srcset=\"https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/05\/eks-stack.png 1252w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/05\/eks-stack-300x148.png 300w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/05\/eks-stack-1024x504.png 1024w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/05\/eks-stack-768x378.png 768w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/05\/eks-stack-854x420.png 854w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/05\/eks-stack-640x315.png 640w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/05\/eks-stack-681x335.png 681w\" sizes=\"(max-width: 1252px) 100vw, 1252px\" \/><\/p>\n<p><span style=\"font-weight: 400;\">Wait for a few seconds, you can see the status as create complete. Go back to the VPC section, you can see the VPC has been created.\u00a0<\/span><\/p>\n<p><img decoding=\"async\" class=\"aligncenter wp-image-82308 size-full\" title=\"AWS VPC Created\" src=\"https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/05\/vpc-created.png\" alt=\"AWS VPC Created\" width=\"1408\" height=\"698\" srcset=\"https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/05\/vpc-created.png 1408w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/05\/vpc-created-300x149.png 300w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/05\/vpc-created-1024x508.png 1024w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/05\/vpc-created-768x381.png 768w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/05\/vpc-created-847x420.png 847w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/05\/vpc-created-640x317.png 640w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/05\/vpc-created-681x338.png 681w\" sizes=\"(max-width: 1408px) 100vw, 1408px\" \/><\/p>\n<h3><span class=\"ez-toc-section\" id=\"Creating_an_Elastic_Kubernetes_Service_EKS_Cluster\"><\/span>Creating an Elastic Kubernetes Service (EKS) Cluster<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p><span style=\"font-weight: 400;\">Okay. Now, we have created an IAM role and a VPC. The next step is to create an EKS cluster. Navigate to the EKS Cluster on AWS console. <\/span><\/p>\n<p><img decoding=\"async\" class=\"aligncenter wp-image-82311 size-full\" title=\"AWS EKS console\" src=\"https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/05\/EKS_console.png\" alt=\"AWS EKS console\" width=\"1416\" height=\"700\" srcset=\"https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/05\/EKS_console.png 1416w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/05\/EKS_console-300x148.png 300w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/05\/EKS_console-1024x506.png 1024w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/05\/EKS_console-768x380.png 768w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/05\/EKS_console-850x420.png 850w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/05\/EKS_console-640x316.png 640w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/05\/EKS_console-681x337.png 681w\" sizes=\"(max-width: 1416px) 100vw, 1416px\" \/><\/p>\n<p><span style=\"font-weight: 400;\">Click on the Add Cluster button and select create. Give a name and select the Kubernetes version (in my case, I have selected Kubernetes v1.21). You should be able to see the IAM role which we have created in the previous step, if not you can select one. Click on the Next.<\/span><\/p>\n<p><span style=\"font-weight: 400;\">You will land up in the Networking section and we need to select the dedicated VPC. Select the correct VPC which we have created using the CloudFormation stack.\u00a0<\/span><\/p>\n<p><span style=\"font-weight: 400;\">Select the security group which we have created with the CloudFormation stack.\u00a0<\/span><\/p>\n<p><span style=\"font-weight: 400;\">There are 3 different options available for the Cluster endpoint access. Public, Public &amp; Private, Private.\u00a0<\/span><\/p>\n<p><span style=\"font-weight: 400;\">Public means the cluster endpoint or cluster API is accessible from outside the VPC. Still the worker node traffic also leave a VPC to connect to the endpoint.\u00a0<\/span><\/p>\n<p><span style=\"font-weight: 400;\">In the Public &amp; Private, only the cluster endpoint will be accessible from outside the cluster and the traffic of the worker nodes will not leave the VPC.\u00a0<\/span><\/p>\n<p><span style=\"font-weight: 400;\">Private means the cluster endpoint will be accessible only from the dedicated VPC and worker nodes traffic also stays within the VPC.\u00a0<\/span><\/p>\n<p><span style=\"font-weight: 400;\">In this tutorial we will select Public &amp; Private. You can enable the logging on the next page if you want. Verify your selections and click on the create. As soon as you click the button the status will show as creating. Wait a few seconds and check if the status is changed from creating to active.\u00a0<\/span><\/p>\n<h3><span class=\"ez-toc-section\" id=\"Summary\"><\/span>Summary<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p><span style=\"font-weight: 400;\">We have successfully created an EKS cluster on AWS. We will show on how to set up a control plane and worker nodes in the upcoming article. Hope you have enjoyed this article and learned about deploying Kubernetes on AWS.\u00a0 Thanks for reading!\u00a0<\/span><\/p>\n","protected":false},"excerpt":{"rendered":"<p>In this article, we are going to learn &#8211; How to run Kubernetes on the AWS platform. Kubernetes is the most popular and open-source container orchestration platform. Kubernetes (K8S) automates most of the manual tasks involved in deploying and managing containerized applications.\u00a0Amazon Web Services (AWS) is the top Cloud service provider and has a wide range of services with high availability. In this article, we will see what are the different options available to set up a Kubernetes cluster on AWS and how to do it.\u00a0 Creating a cluster with kobs\u00a0 Kubernetes Operations or kops is an open-source project used [&hellip;]<\/p>\n","protected":false},"author":7,"featured_media":82453,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_uag_custom_page_level_css":"","site-sidebar-layout":"default","site-content-layout":"","ast-site-content-layout":"default","site-content-style":"default","site-sidebar-style":"default","ast-global-header-display":"","ast-banner-title-visibility":"","ast-main-header-display":"","ast-hfb-above-header-display":"","ast-hfb-below-header-display":"","ast-hfb-mobile-header-display":"","site-post-title":"","ast-breadcrumbs-content":"","ast-featured-img":"","footer-sml-layout":"","theme-transparent-header-meta":"","adv-header-id-meta":"","stick-header-meta":"","header-above-stick-meta":"","header-main-stick-meta":"","header-below-stick-meta":"","astra-migrate-meta-layouts":"default","ast-page-background-enabled":"default","ast-page-background-meta":{"desktop":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"ast-content-background-meta":{"desktop":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"footnotes":""},"categories":[10,4823],"tags":[3388],"class_list":["post-82287","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-cloud-computing-certifications","category-kuberenetes","tag-aws-kubernetes"],"uagb_featured_image_src":{"full":["https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/05\/kubernetes-on-aws.png",600,315,false],"thumbnail":["https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/05\/kubernetes-on-aws-150x150.png",150,150,true],"medium":["https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/05\/kubernetes-on-aws-300x158.png",300,158,true],"medium_large":["https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/05\/kubernetes-on-aws.png",600,315,false],"large":["https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/05\/kubernetes-on-aws.png",600,315,false],"1536x1536":["https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/05\/kubernetes-on-aws.png",600,315,false],"2048x2048":["https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/05\/kubernetes-on-aws.png",600,315,false],"profile_24":["https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/05\/kubernetes-on-aws.png",24,13,false],"profile_48":["https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/05\/kubernetes-on-aws.png",48,25,false],"profile_96":["https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/05\/kubernetes-on-aws.png",96,50,false],"profile_150":["https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/05\/kubernetes-on-aws.png",150,79,false],"profile_300":["https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/05\/kubernetes-on-aws.png",300,158,false],"tptn_thumbnail":["https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/05\/kubernetes-on-aws-250x250.png",250,250,true],"web-stories-poster-portrait":["https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/05\/kubernetes-on-aws.png",600,315,false],"web-stories-publisher-logo":["https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/05\/kubernetes-on-aws.png",96,50,false],"web-stories-thumbnail":["https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2022\/05\/kubernetes-on-aws.png",150,79,false]},"uagb_author_info":{"display_name":"Dharmalingam N","author_link":"https:\/\/www.whizlabs.com\/blog\/author\/dharmalingam\/"},"uagb_comment_info":6,"uagb_excerpt":"In this article, we are going to learn &#8211; How to run Kubernetes on the AWS platform. Kubernetes is the most popular and open-source container orchestration platform. Kubernetes (K8S) automates most of the manual tasks involved in deploying and managing containerized applications.\u00a0Amazon Web Services (AWS) is the top Cloud service provider and has a wide&hellip;","_links":{"self":[{"href":"https:\/\/www.whizlabs.com\/blog\/wp-json\/wp\/v2\/posts\/82287","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.whizlabs.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.whizlabs.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.whizlabs.com\/blog\/wp-json\/wp\/v2\/users\/7"}],"replies":[{"embeddable":true,"href":"https:\/\/www.whizlabs.com\/blog\/wp-json\/wp\/v2\/comments?post=82287"}],"version-history":[{"count":6,"href":"https:\/\/www.whizlabs.com\/blog\/wp-json\/wp\/v2\/posts\/82287\/revisions"}],"predecessor-version":[{"id":82455,"href":"https:\/\/www.whizlabs.com\/blog\/wp-json\/wp\/v2\/posts\/82287\/revisions\/82455"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.whizlabs.com\/blog\/wp-json\/wp\/v2\/media\/82453"}],"wp:attachment":[{"href":"https:\/\/www.whizlabs.com\/blog\/wp-json\/wp\/v2\/media?parent=82287"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.whizlabs.com\/blog\/wp-json\/wp\/v2\/categories?post=82287"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.whizlabs.com\/blog\/wp-json\/wp\/v2\/tags?post=82287"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}