Create AWS EKS Fargate Using Terraform (EFS, HPA, Ingress, ALB, IRSA, Kubernetes, Helm, Tutorial)

  Рет қаралды 15,434

Anton Putra

Anton Putra

Күн бұрын

Пікірлер: 58
@AntonPutra
@AntonPutra Жыл бұрын
🔴 - To support my channel, I’d like to offer Mentorship/On-the-Job Support/Consulting - me@antonputra.com 👉 [UPDATED] AWS EKS Kubernetes Tutorial [NEW]: kzbin.info/aero/PLiMWaCMwGJXnKY6XmeifEpjIfkWRo9v2l&si=wc6LIC5V2tD-Tzwl
@paolofernandofloresrivera6244
@paolofernandofloresrivera6244 17 күн бұрын
your voice bring me inner peace
@unmatal
@unmatal 2 ай бұрын
Thank you very much for this Detailed and Functional Tutorial. I have learned much from you. Best wishes for you
@AntonPutra
@AntonPutra Ай бұрын
my pleasure!
@therafeeq1
@therafeeq1 4 ай бұрын
Great work, Anton! Perfect speed, and the content was delivered just right.
@AntonPutra
@AntonPutra 4 ай бұрын
thank you!
@AntonPutra
@AntonPutra Жыл бұрын
🟢 [New] Terragrunt Tutorial: Create VPC, EKS from Scratch! (Step-by-Step) - kzbin.info/www/bejne/r5XYeZSFn5iLg8k
@AntonPutra
@AntonPutra 2 жыл бұрын
🔴UPDATED🔴 How to create EKS Cluster using Terraform MODULES (AWS Load Balancer Controller + Autoscaler + IRSA) - kzbin.info/www/bejne/oYOunpaPeJxkgJY
@AntonPutra
@AntonPutra Жыл бұрын
👉 How to Manage Secrets in Terraform - kzbin.info/www/bejne/aX-TpXqBrNt1mqM 👉 Terraform Tips & Tricks - kzbin.info/www/bejne/bYScZaKLid5lsJY 👉 ArgoCD Tutorial - kzbin.info/www/bejne/sHjRlZqafMZkisU
@AntonPutra
@AntonPutra Жыл бұрын
Get Full-Length High-Quality DevOps Tutorials for Free - Subscribe Now! - kzbin.info
@vikasjyotitiwari4826
@vikasjyotitiwari4826 Жыл бұрын
great work Anton. I am trying to build the fargate container with EKS 1.26, but after follow the steps at 7:00 Min, I started getting the error you saw on first terminal at 07:06 Warning LoggingDisabled 15s fargate-scheduler Disabled logging because aws-logging configmap was not found. configmap "aws-logging" not found CoreDNS POD never comes up and stays in pending state. I am going to try on EKS1.22 to see if this does not happen, but have you see this issue?
@AntonPutra
@AntonPutra Жыл бұрын
Thanks! check this You created the CoreDNS pods with a default annotation that maps them to the Amazon Elastic Compute Cloud (Amazon EC2) compute type. To schedule them on a Fargate node, remove the Amazon EC2 compute type. repost.aws/knowledge-center/eks-resolve-pending-fargate-pods and github.com/terraform-aws-modules/terraform-aws-eks/issues/2069
@АндрейБелый-ъ6х
@АндрейБелый-ъ6х 2 ай бұрын
Спасибо за инструкцию. Наверное, нужно добавить что необходимо открыть порт 2049 в группах безопасности для EFS.
@AntonPutra
@AntonPutra 2 ай бұрын
bez problem, i have an updated video covering efs in eks full crouse playlist
@lopezzelo2502
@lopezzelo2502 Жыл бұрын
Hello, just to be sure, now on recent version the annotation for core dns is gone? And we need to create the profile for the core dns pod to be able to launcnh ? Thank you for the content ❤
@AntonPutra
@AntonPutra 11 ай бұрын
Thanks, it's possible, but I don't use Fargate in production and only review it when I refresh the tutorial.
@shoaibshaikh6583
@shoaibshaikh6583 2 жыл бұрын
Great work. Just wanted to suggest to keep Graphical explanation about services and connectivity between different tools before jumping into practical. but still I must say well done.
@AntonPutra
@AntonPutra 2 жыл бұрын
Thanks, noted.
@avinashnadendla7869
@avinashnadendla7869 2 жыл бұрын
You are amazing man
@AntonPutra
@AntonPutra 2 жыл бұрын
Thanks :)
@ashketchum3255
@ashketchum3255 2 ай бұрын
Now the issue is that metric server is not working on eks fargate, though the pod of metric server starts it does not show any metrics. Is there any other way by which I could provision HPA on eks fargate?
@hY-ug8vn
@hY-ug8vn Жыл бұрын
could you do a tutorial for AWS ECS with FARGATE, and ECR as well please
@AntonPutra
@AntonPutra Жыл бұрын
Well, maybe in the future, but it's not as common as EKS.
@hY-ug8vn
@hY-ug8vn Жыл бұрын
@@AntonPutra Thank you, it will be just useful to see how you handle multiple container definitions for ECS task definition, all other solutions out there are badly explained and complex to understand.
@abhijeetsamanta4246
@abhijeetsamanta4246 Жыл бұрын
I am trying to add deployment with efs however its not working giving below error as Pod not supported on Fargate: volumes not supported: host is of an unsupported volume Type
@mustafaaliaykon286
@mustafaaliaykon286 2 жыл бұрын
Hi can you share the steps for production because i think EKS should not be in public subnet. Very clean explanation thanks!
@AntonPutra
@AntonPutra 2 жыл бұрын
you only create public subnets for "public" load balancer, all your nodes located in private subnets with NAT gateway. Public subnets are optional, you can remove them
@ambrishpatil4352
@ambrishpatil4352 2 жыл бұрын
Thanks buddy for useful video 👍
@AntonPutra
@AntonPutra 2 жыл бұрын
Thanks Ambrish!
@lautarodamore2548
@lautarodamore2548 2 жыл бұрын
Great video! I have i question Anton, where you read the information for the aws-load-balancer-controller Helm chart? To know the variables to override for example? I trying to integrate the fluent-bit Helm chart but i coulnt find it.
@AntonPutra
@AntonPutra 2 жыл бұрын
You can use helm show command, example "helm show values karpenter/karpenter"
@jarmenk
@jarmenk Жыл бұрын
Вы используете CoreDNS Addon? Не совсем понятно откуда он начинает деплоиться
@AntonPutra
@AntonPutra Жыл бұрын
I did not explicitly use the CoreDNS managed EKS add-on. As far as I remember, I had to remove taints or do something else (patch), but the process for new EKS 1.27 and higher may be different.
@jarmenk
@jarmenk Жыл бұрын
@@AntonPutra thanks
@espartadog
@espartadog 2 жыл бұрын
Great video!
@AntonPutra
@AntonPutra 2 жыл бұрын
Thanks!
@shoaibshaikh6583
@shoaibshaikh6583 2 жыл бұрын
I have a question sir where did you store the terraform state file?
@AntonPutra
@AntonPutra 2 жыл бұрын
For the demo locally, for production use i store it in S3 with dynamoDB lock. Some in terraform cloud such as IAM policies.
@rohitnarula7038
@rohitnarula7038 Жыл бұрын
Great work Anton. One quick question can we run both Fargate and EC2 together ?
@AntonPutra
@AntonPutra Жыл бұрын
Can you combine a Fargate profile with traditional node groups?' Yes, you can. Fargate only affects the selected namespaces, so it's possible.
@rohitnarula7038
@rohitnarula7038 Жыл бұрын
@@AntonPutra : So in that case how would DNS works, you changed the type to fatgate from ec2.. Should we leave that to default
@AntonPutra
@AntonPutra Жыл бұрын
@@rohitnarula7038 If you use ec2, just keep dns as is.
@babaramdass462
@babaramdass462 Жыл бұрын
Based. Thanks
@AntonPutra
@AntonPutra Жыл бұрын
my pleasure!
@mayarafernandes2016
@mayarafernandes2016 Жыл бұрын
Great video! How to create more namespaces in eks fargate via terraform?
@AntonPutra
@AntonPutra Жыл бұрын
Thanks, just add more fo these - github.com/antonputra/tutorials/blob/main/lessons/113/terraform/7-kube-system-profile.tf#L21-L36
@tanergur2128
@tanergur2128 2 жыл бұрын
Getting Error: (Kubernetes cluster unreachable:: with helm_release.metrics-server, │ on 9-metrics-server.tf line 13, in resource "helm_release" "metrics-server": │ 13: resource "helm_release" "metrics-server") after deploying terraform with helm_release resource. Any idea to fix?
@AntonPutra
@AntonPutra 2 жыл бұрын
try to rerun, if error persist check version and use terraform lock file. Are you able to connect to eks cluster from the terminal? aws eks update-kubeconfig
@tanergur2128
@tanergur2128 2 жыл бұрын
@@AntonPutra Yes thats right, Anton. I am able to connect to cluster. When you say check version, is that helm version? I have not installed helm package on my linux instance. I remember in the video you said you dont need to install extra package. Should I ? Thanks.
@kayoutube690
@kayoutube690 2 жыл бұрын
I have the same issue Anton, what will be the fix for this issue?
@cristopheradasme170
@cristopheradasme170 2 жыл бұрын
I solved adding token argument to helm provider, like so: data "aws_eks_cluster_auth" "cluster-auth" { depends_on = [aws_eks_cluster.cluster] name = aws_eks_cluster.cluster.name } provider "helm" { kubernetes { host = aws_eks_cluster.cluster.endpoint cluster_ca_certificate = base64decode(aws_eks_cluster.cluster.certificate_authority[0].data) token = data.aws_eks_cluster_auth.cluster-auth.token exec { api_version = "client.authentication.k8s.io/v1beta1" args = ["eks", "get-token", "--cluster-name", aws_eks_cluster.cluster.id] command = "aws" } } }│
@Daveooooooooooo0
@Daveooooooooooo0 7 ай бұрын
Ebs is supported
@AntonPutra
@AntonPutra 7 ай бұрын
"You can't mount Amazon EBS volumes to Fargate Pods." AWS Fargate considerations - docs.aws.amazon.com/eks/latest/userguide/fargate.html
@flesz__
@flesz__ 2 жыл бұрын
I was trying to undestand what is Rafael and only later realised it's 'a profile' lol
@AntonPutra
@AntonPutra 2 жыл бұрын
:)
@franklin.lisboa
@franklin.lisboa Жыл бұрын
I followed the AWS Official Doc and It didn't work, thank you for this video.
@AntonPutra
@AntonPutra Жыл бұрын
Welcome, they focus on eksctl which is not most of the people use =)
@franklin.lisboa
@franklin.lisboa Жыл бұрын
​@@AntonPutra yeah, I haven't used Helm until now too but the way you walked through the steps was good enough to get it. I believe the problem could be the missing elb tags in subnets and some annotations I'm preety sure I didn't read in the doc... It was quite frustrating follow step by step the owner doc and the whole thing just doesn't work. Thanks again
SLIDE #shortssprintbrasil
0:31
Natan por Aí
Рет қаралды 49 МЛН
How Coding 4 Hours a Day Changed My Life (in 4 Minutes)
4:46
Ritesh Kumar Verma
Рет қаралды 1,6 М.
VM vs Kubernetes: Performance 🚀
6:07
Anton Putra
Рет қаралды 6 М.
Kubernetes Node Autoscaling with Karpenter (AWS EKS & Terraform)
7:59
Getting Started with EKS and Terraform
18:51
That DevOps Guy
Рет қаралды 41 М.
AWS re:Invent 2020: Amazon EKS on AWS Fargate deep dive
26:24
AWS Events
Рет қаралды 10 М.
AWS EKS - Create Kubernetes cluster on Amazon EKS | the easy way
16:27
TechWorld with Nana
Рет қаралды 567 М.