AWS EKS Cluster Setup using eksctl | AWS EKS Cluster setup | Create Kubernetes cluster on Amazon EKS

AWS EKS Cluster Setup using eksctl | Create EKS Cluster on AWS | Create Kubernetes cluster on Amazon EKS in simple steps | aws eks cluster setup step by step

  • 0:00 Introduction to AWS EKS
  • 2:10 Difference between EKS and KOPS
  • 5:43 Prereuisites to setup EKS cluster on AWS
  • 6:45 Different ways to Create AWS EKS Cluster
  • 12:57 Create Ubuntu EC2 Instance in AWS
  • 19:01 Install eksctl, kubectl and aws cli on Ubuntu Instance
  • 25:30 create IAM user and assign admin access
  • 28:01 AWS EKS Cluster Setup using eksctl
  • 45:20 delete AWS EKS cluster using eksctl

Follow below instruction to install eksctl, kubectl and aws cli
https://github.com/weaveworks/eksctl
1)

curl --silent --location "https://github.com/weaveworks/eksctl/releases/latest/download/eksctl_$(uname -s)_amd64.tar.gz" | tar xz -C /tmp
sudo mv /tmp/eksctl /usr/local/bin

eksctl version

eksctl --help

eksctl create cluster --help

eksctl create cluster [command] --help
  1. Install Kubectl on Ubuntu
curl -s https://packages.cloud.google.com/apt/doc/apt-key.gpg | sudo apt-key add -
sudo touch /etc/apt/sources.list.d/kubernetes.list 
echo "deb http://apt.kubernetes.io/ kubernetes-xenial main" | sudo tee -a /etc/apt/sources.list.d/kubernetes.list
sudo apt-get update
sudo apt-get install -y kubectl
 curl "https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip" -o "awscliv2.zip"
 sudo apt install unzip
unzip awscliv2.zip
sudo ./aws/install
  1. aws configure
 eksctl create cluster \
--name demo-ekscluster \
--region ap-south-1 \
--version 1.20 \
--nodegroup-name linux-nodes \
--node-type t2.micro \
--nodes 2

To create pod using kubectl on AWS EKS

kubectl run nginx --image=nginx

To delete AWS EKS cluster using eksctl

eksctl delete cluster demo-ekscluster

Related Articles:

  1. Setup Kubernetes Cluster using KOPS
    https://youtu.be/R5iDY-wagGA​​​​​​
  2. How to Create Namespace, Role Binding and Service Account in Kubernetes
    https://youtu.be/_wqdubPS7I8​​​​​​
  3. Configure Traefik Ingress Controller on Kubernetes | traefik ingress Kubernetes
    Configure Traefik Ingress Controller on Kubernetes | traefik ingress Kubernetes
  4. Kubernetes Replica Set vs Replication Controller | Kubernetes Replication Practical Demonstration
    https://youtu.be/D15dzWkor28​​​​​​
  5. How to Create Kubernetes Cluster using Kubeadm on Ubuntu | Setup Kubernetes Cluster using Kubeadm
    https://youtu.be/IvuMyIcit6I​​​​
  6. How to Install Nginx Ingress Controller on Kubernetes KOPS using Helm 3
    https://youtu.be/dxQdcCYDZx8​​
  7. Install Traefik Ingress Controller on Kubernetes using Helm 3 | Traefik Ingress Kubernetes helm
    https://youtu.be/4oWojfB_dMQ​
  8. Kubernetes Nginx Ingress Controller Let’s Encrypt | https on Kubernetes Nginx Ingress contoller
    https://youtu.be/D87z6v9xqW8​

If you likes our video, please subscribe our channel on YouTube Channel
https://www.youtube.com/c/devopshint

#aws #kubernetes

What is GEEK

Buddha Community

AWS EKS Cluster Setup using eksctl | AWS EKS Cluster setup | Create Kubernetes cluster on Amazon EKS
Christa  Stehr

Christa Stehr

1602964260

50+ Useful Kubernetes Tools for 2020 - Part 2

Introduction

Last year, we provided a list of Kubernetes tools that proved so popular we have decided to curate another list of some useful additions for working with the platform—among which are many tools that we personally use here at Caylent. Check out the original tools list here in case you missed it.

According to a recent survey done by Stackrox, the dominance Kubernetes enjoys in the market continues to be reinforced, with 86% of respondents using it for container orchestration.

(State of Kubernetes and Container Security, 2020)

And as you can see below, more and more companies are jumping into containerization for their apps. If you’re among them, here are some tools to aid you going forward as Kubernetes continues its rapid growth.

(State of Kubernetes and Container Security, 2020)

#blog #tools #amazon elastic kubernetes service #application security #aws kms #botkube #caylent #cli #container monitoring #container orchestration tools #container security #containers #continuous delivery #continuous deployment #continuous integration #contour #developers #development #developments #draft #eksctl #firewall #gcp #github #harbor #helm #helm charts #helm-2to3 #helm-aws-secret-plugin #helm-docs #helm-operator-get-started #helm-secrets #iam #json #k-rail #k3s #k3sup #k8s #keel.sh #keycloak #kiali #kiam #klum #knative #krew #ksniff #kube #kube-prod-runtime #kube-ps1 #kube-scan #kube-state-metrics #kube2iam #kubeapps #kubebuilder #kubeconfig #kubectl #kubectl-aws-secrets #kubefwd #kubernetes #kubernetes command line tool #kubernetes configuration #kubernetes deployment #kubernetes in development #kubernetes in production #kubernetes ingress #kubernetes interfaces #kubernetes monitoring #kubernetes networking #kubernetes observability #kubernetes plugins #kubernetes secrets #kubernetes security #kubernetes security best practices #kubernetes security vendors #kubernetes service discovery #kubernetic #kubesec #kubeterminal #kubeval #kudo #kuma #microsoft azure key vault #mozilla sops #octant #octarine #open source #palo alto kubernetes security #permission-manager #pgp #rafay #rakess #rancher #rook #secrets operations #serverless function #service mesh #shell-operator #snyk #snyk container #sonobuoy #strongdm #tcpdump #tenkai #testing #tigera #tilt #vert.x #wireshark #yaml

AWS Fargate for Amazon Elastic Kubernetes Service | Caylent

On-demand cloud computing brings new ways to ensure scalability and efficiency. Rather than pre-allocating and managing certain server resources or having to go through the usual process of setting up a cloud cluster, apps and microservices can now rely on on-demand serverless computing blocks designed to be efficient and highly optimized.

Amazon Elastic Kubernetes Service (EKS) already makes running Kubernetes on AWS very easy. Support for AWS Fargate, which introduces the on-demand serverless computing element to the environment, makes deploying Kubernetes pods even easier and more efficient. AWS Fargate offers a wide range of features that make managing clusters and pods intuitive.

Utilizing Fargate
As with many other AWS services, using Fargate to manage Kubernetes clusters is very easy to do. To integrate Fargate and run a cluster on top of it, you only need to add the command –fargate to the end of your eksctl command.

EKS automatically configures the cluster to run on Fargate. It creates a pod execution role so that pod creation and management can be automated in an on-demand environment. It also patches coredns so the cluster can run smoothly on Fargate.

A Fargate profile is automatically created by the command. You can choose to customize the profile later or configure namespaces yourself, but the default profile is suitable for a wide range of applications already, requiring no human input other than a namespace for the cluster.

There are some prerequisites to keep in mind though. For starters, Fargate requires eksctl version 0.20.0 or later. Fargate also comes with some limitations, starting with support for only a handful of regions. For example, Fargate doesn’t support stateful apps, DaemonSets or privileged containers at the moment. Check out this link for Fargate limitations for your consideration.

Support for conventional load balancing is also limited, which is why ALB Ingress Controller is recommended. At the time of this writing, Classic Load Balancers and Network Load Balancers are not supported yet.

However, you can still be very meticulous in how you manage your clusters, including using different clusters to separate trusted and untrusted workloads.

Everything else is straightforward. Once the cluster is created, you can begin specifying pod execution roles for Fargate. You have the ability to use IAM console to create a role and assign it to a Fargate cluster. Or you can also create IAM roles and Fargate profiles via Terraform.

#aws #blog #amazon eks #aws fargate #aws management console #aws services #kubernetes #kubernetes clusters #kubernetes deployment #kubernetes pods

AWS EKS Cluster Setup using eksctl | AWS EKS Cluster setup | Create Kubernetes cluster on Amazon EKS

AWS EKS Cluster Setup using eksctl | Create EKS Cluster on AWS | Create Kubernetes cluster on Amazon EKS in simple steps | aws eks cluster setup step by step

  • 0:00 Introduction to AWS EKS
  • 2:10 Difference between EKS and KOPS
  • 5:43 Prereuisites to setup EKS cluster on AWS
  • 6:45 Different ways to Create AWS EKS Cluster
  • 12:57 Create Ubuntu EC2 Instance in AWS
  • 19:01 Install eksctl, kubectl and aws cli on Ubuntu Instance
  • 25:30 create IAM user and assign admin access
  • 28:01 AWS EKS Cluster Setup using eksctl
  • 45:20 delete AWS EKS cluster using eksctl

Follow below instruction to install eksctl, kubectl and aws cli
https://github.com/weaveworks/eksctl
1)

curl --silent --location "https://github.com/weaveworks/eksctl/releases/latest/download/eksctl_$(uname -s)_amd64.tar.gz" | tar xz -C /tmp
sudo mv /tmp/eksctl /usr/local/bin

eksctl version

eksctl --help

eksctl create cluster --help

eksctl create cluster [command] --help
  1. Install Kubectl on Ubuntu
curl -s https://packages.cloud.google.com/apt/doc/apt-key.gpg | sudo apt-key add -
sudo touch /etc/apt/sources.list.d/kubernetes.list 
echo "deb http://apt.kubernetes.io/ kubernetes-xenial main" | sudo tee -a /etc/apt/sources.list.d/kubernetes.list
sudo apt-get update
sudo apt-get install -y kubectl
 curl "https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip" -o "awscliv2.zip"
 sudo apt install unzip
unzip awscliv2.zip
sudo ./aws/install
  1. aws configure
 eksctl create cluster \
--name demo-ekscluster \
--region ap-south-1 \
--version 1.20 \
--nodegroup-name linux-nodes \
--node-type t2.micro \
--nodes 2

To create pod using kubectl on AWS EKS

kubectl run nginx --image=nginx

To delete AWS EKS cluster using eksctl

eksctl delete cluster demo-ekscluster

Related Articles:

  1. Setup Kubernetes Cluster using KOPS
    https://youtu.be/R5iDY-wagGA​​​​​​
  2. How to Create Namespace, Role Binding and Service Account in Kubernetes
    https://youtu.be/_wqdubPS7I8​​​​​​
  3. Configure Traefik Ingress Controller on Kubernetes | traefik ingress Kubernetes
    Configure Traefik Ingress Controller on Kubernetes | traefik ingress Kubernetes
  4. Kubernetes Replica Set vs Replication Controller | Kubernetes Replication Practical Demonstration
    https://youtu.be/D15dzWkor28​​​​​​
  5. How to Create Kubernetes Cluster using Kubeadm on Ubuntu | Setup Kubernetes Cluster using Kubeadm
    https://youtu.be/IvuMyIcit6I​​​​
  6. How to Install Nginx Ingress Controller on Kubernetes KOPS using Helm 3
    https://youtu.be/dxQdcCYDZx8​​
  7. Install Traefik Ingress Controller on Kubernetes using Helm 3 | Traefik Ingress Kubernetes helm
    https://youtu.be/4oWojfB_dMQ​
  8. Kubernetes Nginx Ingress Controller Let’s Encrypt | https on Kubernetes Nginx Ingress contoller
    https://youtu.be/D87z6v9xqW8​

If you likes our video, please subscribe our channel on YouTube Channel
https://www.youtube.com/c/devopshint

#aws #kubernetes

How to Use AWS IAM Role on AWS EKS PODs

A native-AWS way to attach an IAM role into the Kubernetes POD, without third-party software, reducing latency and improving your EKS security.

How It Works

It’s possible to attach an IAM role in a Kubernetes POD without using third-party software, such as kube2iam and kiam. This is thanks to the integration between AWS IAM and Kubernetes ServiceAccount, following the approach of IAM Roles for Service Accounts (IRSA).


Benefits

There are quite a few benefits of using IRSA with Kubernetes PODs.

  • Granular restriction (per cluster, per namespace, etc.).
  • It’s also possible to not use it.
  • More flexible than the other tools.
  • One less point of failure (maybe a few less).
  • Lesser resource consumption.
  • More pods per node.
  • Latency may reduce by ~50ms.
  • Especially for the first request.
  • Prevent issues with caching the credentials.
  • This software takes a few minutes to update its cache.
  • Better auditing.
  • Instead of checking the logs of kube2iam/kiam pods, you can check AWS CloudTrails.
  • Easier to set up.
  • AWS provides full support.

Pre-requirements

There are a few pre-requirements that you’ll need to attempt in order to use the IAM role in a POD.

  • An IAM OpenID Connect provider pointing to the AWS EKS OpenID Connect provider URL.
  • AWS EKS cluster 1.13 or above.
  • A trust relationship between your IAM Role and the OpenID Provider.

#cloud #tutorial #aws #kubernetes #cloud security #k8s #eks #aws security #kubernetes security #aws iam

Panmure  Anho

Panmure Anho

1596961610

Create a Kubernetes Cluster and Deploy an App on Amazon EKS using AWS CLI

This blog describes how create multi-node kubernetes clusters and deploy an application on Amazon EKS. In this blog we will walk through how to setup kubectl and eksctl on workstations and from there we can use one line command to create an EKS Cluster.

Amazon Elastic Container Service for Kubernetes(Amazon EKS)

ubernetes is a container orchestration system from Google and has emerged as the platform of choice for deploying cloud-native applications. Kubernetes is a versatile tool for automating and simplifying your container workflow that gives you limitless scalability at a moment’s notice.

Amazon EKS is a fully managed  Kubernetes service. Customers such as Intel, Snap, Intuit, GoDaddy, and Autodesk trust EKS to run their most sensitive and mission critical applications because of its security, reliability, and scalability.

Benefits of Amazon EKS

  1. Control Plane Monitoring: With Amazon EKS there’s no need to install, operate, or maintain your own Kubernetes control plane. EKS removes the need to architect high availability and scalability for your master nodes, so administrators can focus on their cluster and workloads.
  2. High Availability: EKS runs the Kubernetes management infrastructure across multiple AWS Availability Zones, automatically detects and replaces unhealthy control plane nodes, and provides on-demand, zero downtime upgrades and patching.
  3. Security: EKS automatically applies the latest security patches to your cluster control plane. AWS also works closely with the community to ensure critical security issues are addressed before new releases and patches are deployed to existing cluster
  4. Serverless Option: EKS supports AWS Fargate to provide serverless compute for containers. Fargate removes the need to provision and manage servers, lets you specify and pay for resources per application, and improves security through application isolation by design.
  5. Build with Community: EKS runs upstream Kubernetes and is certified Kubernetes conformant, so applications managed by EKS are fully compatible with applications managed by any standard Kubernetes environment. AWS actively works with the Kubernetes community, including making contributions to the Kubernetes code base that help you take advantage of AWS services and features.

#aws-eks #aws #kubernetes