[ Kube 77 ] AWS EKS Kubernetes cluster provisioning using Terraform

แชร์
ฝัง
  • เผยแพร่เมื่อ 5 ก.ย. 2024
  • In this video, lets see how to use Terraform to provision a Kubernetes cluster in AWS using ESK managed Kubernetes Service.
    Learn Kubernetes Playlist:
    • Learn Kubernetes
    EKS Getting Started Documentation:
    learn.hashicor...
    Terraform Provider AWS Github Repo:
    github.com/ter...
    Install aws-iam-authenticator:
    docs.aws.amazo...
    Hope you enjoyed this video. Please share it with your friends and don't forget to subscribe to this channel. For any questions/issues/feedback, please leave me a comment and I will be happy to help. Thanks for watching.
    If you wish to support me:
    www.paypal.com...
    #kubernetes #learnkubernetes #justmekubernetes #awseks #eksctl #justmeandopensource

ความคิดเห็น • 156

  • @AdarlanTeixeira
    @AdarlanTeixeira 2 ปีที่แล้ว +1

    Thanks for this video! In my opinion, the best way to learn about AWS resources is through Terraform documentation

    • @justmeandopensource
      @justmeandopensource  2 ปีที่แล้ว +2

      Yeah Terraform does a good job in documentation but still AWS documentation is extensive. Thanks for watching.

  • @MysonRijudh
    @MysonRijudh 2 ปีที่แล้ว

    I was totally unaware of KUBERNETES with terraform..This video helped me in understanding everything that I need basically..

  • @ranjiniganesh4233
    @ranjiniganesh4233 4 ปีที่แล้ว +3

    In this video, you are launching cluster in public subnet. Can you explain how do we launch in private subnet and also how about having a load balancer?

  • @PavanKumar-yj8fu
    @PavanKumar-yj8fu ปีที่แล้ว +1

    Thank you very much for the video, it was very useful.

  • @omkarkhatavkar8722
    @omkarkhatavkar8722 4 ปีที่แล้ว

    I don't know I was facing issue while seeing this video above 360 Pixel. Content was really awesome ! best channel to learn about K8s

    • @justmeandopensource
      @justmeandopensource  4 ปีที่แล้ว

      Hi Omkar, thanks for watching. I have had complaints from few viewers that they can't play this video in anything higher than 360p. I am experiencing the same issue. Its just this one video in my entire channel having this problem. Not sure what happened. Apologies.

  • @muziburrahman1083
    @muziburrahman1083 3 ปีที่แล้ว +2

    Venkat, vanakkam, i just sent some contribution from my paypal. Thanks much for such good effor and content..for K8s

    • @justmeandopensource
      @justmeandopensource  3 ปีที่แล้ว +1

      Hi Muzibur, many thanks for your contribution. Much appreciated. And thanks for your interest in this channel. Cheers.

  • @rsrini7
    @rsrini7 4 ปีที่แล้ว +2

    At 6:50.... Please take care Venket. Stay safe and Thanks for the video Venkat. Please try to include Pulumi and aws cdk. Compare all 3 (i may not know, anything else still out there)

    • @justmeandopensource
      @justmeandopensource  4 ปีที่แล้ว +2

      Hi Srini, thanks for watching. This was recorded before we knew about the pandemic in UK :)

  • @chetancc
    @chetancc 2 ปีที่แล้ว +1

    Hi,
    Found it useful. Tried it today and it worked. Thanks for your time and sharing. Subscribed your channel too.
    Thanks,
    Chetan from Kandivali, Mumbai :)

  • @ruwanvimukthimettananda7847
    @ruwanvimukthimettananda7847 3 ปีที่แล้ว +1

    Hi Venkat, I have sorted lot of problems with the help of this video. Can you please do a video on how to setup ALB ingress controller and add path base routing to it

    • @justmeandopensource
      @justmeandopensource  3 ปีที่แล้ว +2

      Hi Ruwan, thanks for watching. I can give it a try but my videos are primarily based on local bare metals.

  • @sravssmartideas
    @sravssmartideas 2 ปีที่แล้ว +2

    500th like...thank you sosoo much....😀

  • @gv.ramana
    @gv.ramana 4 ปีที่แล้ว +1

    your tutorial is awesome Venkat garu... really awesome. please do more video's and when i choose 1080p resolution video not getting rendered. may be try to re-upload the same

    • @justmeandopensource
      @justmeandopensource  4 ปีที่แล้ว +1

      Hi Venkat, thanks for watching. Unfortunately I don't have the original recording to re-upload. All my recent videos should be okay. There are few that has this problem.

  • @mouhamedfall3792
    @mouhamedfall3792 4 ปีที่แล้ว +1

    Good Job Venkat
    Thanks and waiting terraform series

    • @justmeandopensource
      @justmeandopensource  4 ปีที่แล้ว +3

      Hi Mouhamed, thanks for watching. I wish to start the Terraform series. Let me see if I manage to find time in between. Cheers.

  • @venkateshsethuraman8326
    @venkateshsethuraman8326 2 ปีที่แล้ว +1

    Massive work Venkat.

  • @dremedley970
    @dremedley970 4 ปีที่แล้ว +5

    Fantastic Job Venkat. I've learned so much from your videos! Would you be able to do a series on kubernetes and Operators (e.g using/writing/setting up environments) ?

    • @LesterThom
      @LesterThom 4 ปีที่แล้ว +2

      I would also be interested in operators

    • @justmeandopensource
      @justmeandopensource  4 ปีที่แล้ว +3

      Thanks for your interest in my videos. Operators are one area where I haven't spent enough time exploring to be able to explain. I will see if I get some time to do that. Its difficult to set apart some time in these times.

    • @rohanrustagi7857
      @rohanrustagi7857 ปีที่แล้ว

      @@LesterThom what are operators btw??

  • @networkfreddy2000
    @networkfreddy2000 ปีที่แล้ว +1

    Great content! Subscribed.

  • @Gandolfof
    @Gandolfof 3 ปีที่แล้ว +1

    I really wanted to see the video. But quality is not enough. I hope I would see it in a better quality in the future. Wish you the best!

    • @justmeandopensource
      @justmeandopensource  3 ปีที่แล้ว +1

      Hi Hossein, sorry about that. Will make sure the quality is good in my future videos. Cheers.

  • @F1re4fect
    @F1re4fect 4 ปีที่แล้ว +8

    I can't seem to play this video above 360p, anyone else?

    • @justmeandopensource
      @justmeandopensource  4 ปีที่แล้ว +3

      Hi Carter, Yes you are right. I can't go any higher than 360p. Not sure what happened. All other videos are okay. I don't have the original video in my hard disk to re upload unfortunately. Think its a waste of time them.

    • @koiralaprabeshika5468
      @koiralaprabeshika5468 4 ปีที่แล้ว +1

      @@justmeandopensource its was productive for me :)

  • @lineuve
    @lineuve 2 ปีที่แล้ว +1

    Tkanks for sharing

  • @user-hh9qn1wx3f
    @user-hh9qn1wx3f 2 ปีที่แล้ว +1

    Thank you this was an amazing video

  • @vinaykagithapu6061
    @vinaykagithapu6061 2 ปีที่แล้ว

    Informative. Can you please make a video on creating complete private eks cluster using terraform. Thank you

  • @claudiogarcia7557
    @claudiogarcia7557 2 ปีที่แล้ว

    Great Job Venkat, Excellent, When you get a chance could you make a video creating in K8S an AWS ALB with kubectl , I am a little bit confused between differents open ports , eg, sg inbound rules , host port, target ports, It will be great to learn about that, Thanks a lot Sir

  • @tharikida1000
    @tharikida1000 ปีที่แล้ว +1

    Hello Venkat, very nice presentation. Much appreciated. May I know which connection manager (mac compatible) you are using for you linux terminals?.

    • @justmeandopensource
      @justmeandopensource  ปีที่แล้ว +1

      Hi Rajeev , thanks for watching. What do you mean by connection manager? Sorry I lost the context.

    • @tharikida1000
      @tharikida1000 ปีที่แล้ว

      @@justmeandopensource I mean the multi window mputty like terminals for accessing your Linux box. Is that mobaxterm you use?

    • @justmeandopensource
      @justmeandopensource  ปีที่แล้ว +1

      @@tharikida1000 I just use tmux for that.

    • @tharikida1000
      @tharikida1000 ปีที่แล้ว +1

      @@justmeandopensource thanks for your prompt reply. Much appreciated

    • @justmeandopensource
      @justmeandopensource  ปีที่แล้ว

      @@tharikida1000 no worries. Cheers.

  • @sathwikakatam4504
    @sathwikakatam4504 3 ปีที่แล้ว +2

    Helped my assignment

    • @justmeandopensource
      @justmeandopensource  3 ปีที่แล้ว +1

      Hi Sathwika, glad it helped you. Thanks for watching.

  • @igorlopatchin904
    @igorlopatchin904 ปีที่แล้ว +1

    Hi Venkat, I hope you'll find some time to help me. After the command kubectl cluster-info - I get an error: error loading config file "Users/my user/.kube/config": yaml: line 3: mapping values are not allowed in this context. Do you have nay ideas, what can it be?

  • @johanederlienlunabermeo9907
    @johanederlienlunabermeo9907 2 ปีที่แล้ว +1

    Great Job Men!

  • @sateeshkumar6089
    @sateeshkumar6089 2 ปีที่แล้ว

    Getting error like "mapping values are not allowed in this context " when we see kubectl cluster-info

  • @pjj7466
    @pjj7466 2 ปีที่แล้ว

    I have created EKS through Terrarorm using the latest tag from GitHub.. Now what the point is, after creation I got the kubeconfig file and showing cluster in was and all is well ok... But the problem is I installed terraform on a Linux server from that server I have executed terraform... So how to login into the cluster... If I enter kubectl get nodes from the same server it's saying command not found

  • @sonuthestar
    @sonuthestar 4 ปีที่แล้ว +2

    Hi Venkat, good video and appreciate your efforts on this. I have seen similar videos and articles demonstrating this but what I am trying to work out is, create this EKS using existing VPCs, IGs, Route tables, subnets & SGs rather than creating new AWS network components. As I believe that's how it will be real-time if you are creating a new EKS from scratch in the existing VPC network. I have been looking for this info and got some suggestions to look at datasource, but I didn't get it working or either I am using it incorrectly, as I am still learning both EKS & K8s, so struggling on these bits, so if you have got some inputs/suggestions on these requirements, that will be great. Maybe a link/video on this would be really helpful, if the video takes longer to create, quick suggestions as an email / here or link guiding to get this achieved would be highly appreciated. Many thx

    • @justmeandopensource
      @justmeandopensource  4 ปีที่แล้ว +2

      Hi, thanks for watching. I will see if I can get sometime to explore that. But if you look at the eksctl help commands for creating cluster, there are options for all these.

    • @sonuthestar
      @sonuthestar 4 ปีที่แล้ว +2

      @@justmeandopensource Thanks for checking and replying on this, sorry I should have mentioned building eks using terraform on existing vpc network resources and I believe using eksctl command will create new VPC, but will explore eksctl using existing vpc network options as well. I would be more interested in getting this done using terraform in existing VPC as that's how it will be deployed in real-time afaik. thx

    • @justmeandopensource
      @justmeandopensource  4 ปีที่แล้ว +1

      @@sonuthestar I see. Still thats possible. Let me see.

    • @sathyapotharla6088
      @sathyapotharla6088 4 ปีที่แล้ว

      @@justmeandopensource just checking if you got a chance to look at this requirement on buildin eks in a existing vpc & subnets, if you got it working, can you please code / gir repo on this or some reference to it would be really appreciated. thx

  • @SaiKrishna-hq7xl
    @SaiKrishna-hq7xl 4 ปีที่แล้ว +2

    Hi Venkat,
    Thanks for the Knowledge shared by you. its really very helpful.
    Using the mentioned Terraform Code we can build cluster with one linux worker node.
    Where i am looking for windows worker nodes, i had went through the documents and build the manually but finding difficulties in creating the same with terraform. Could you please help out with this.

    • @justmeandopensource
      @justmeandopensource  4 ปีที่แล้ว +2

      HI Sai, thanks for watching. can you share your terraform code in pastebin.com. I will take a look later when I get some time. Cheers.

    • @SaiKrishna-hq7xl
      @SaiKrishna-hq7xl 4 ปีที่แล้ว

      @@justmeandopensource Hi thanks for your response, I am using the terraform code that's given by AWS in their GitHub repository eks module. Can you check that once and I am facing issues during auth configmaps code execution. Thanks in advance

  • @thannasip8001
    @thannasip8001 4 ปีที่แล้ว +1

    Nice one 👌😁

  • @maticoul
    @maticoul 2 ปีที่แล้ว

    Very useful tutorial Il liked, also I would like create an other cluster with 3masters, and 3 etcd can help me to do that??

  • @showmethemoney824
    @showmethemoney824 3 ปีที่แล้ว

    this is a good tutorial but after the deployment of the Nginx pod or why there is no sample to expose the service to outside? is there another tutorial to follow?

  • @shivasingleforever
    @shivasingleforever 4 ปีที่แล้ว +2

    do i need to setup kubernetes locally before doing this?
    command : terraform output kubeconfig > ~/.kube/config is not working

    • @sathwikakatam4504
      @sathwikakatam4504 3 ปีที่แล้ว +1

      Yeah you should have minikube and Kubectl locally

    • @justmeandopensource
      @justmeandopensource  3 ปีที่แล้ว +1

      Hi Sathwika, thanks for answering. Cheers.

    • @saurabhchopra
      @saurabhchopra ปีที่แล้ว

      @@sathwikakatam4504 Why do we need minikube when we are creating EKS cluster?

  • @gideonkamau8299
    @gideonkamau8299 3 ปีที่แล้ว

    Great video Venkat, also can we use tarraform to provision a k8s cluster without the EKS(managed) service, the way kops does?

  • @manish436
    @manish436 2 ปีที่แล้ว

    Very well explained thank you, also interested in multiregion K8S cluster with terraform.

  • @smokzpolski
    @smokzpolski 3 ปีที่แล้ว +1

    Could you please say, what the console with auto completion is this and how can i have the same on my mac?

    • @justmeandopensource
      @justmeandopensource  3 ปีที่แล้ว +2

      Hi Alex, if you are asking about my terminal, i have done a video on the setup around Zsh which can be achieved in Mac as well.
      th-cam.com/video/PUWnCbr9cN8/w-d-xo.html
      Cheers.

  • @johanesboy
    @johanesboy 4 ปีที่แล้ว +1

    Thank you for this video. How does one attach a RDS db to the worker nodes in this setup? What is the best practice for architecture and do you have any examples?

    • @justmeandopensource
      @justmeandopensource  4 ปีที่แล้ว +2

      Hi Ron, thanks for watching. What do you mean by attaching RDS to worker nodes? RDS is accessed through its endpoint. Your applications deployed in the kubernetes cluster will have access to the RDS point if they need to use database. You just need to make sure the security groups on worker nodes and RDS allow this.

    • @johanesboy
      @johanesboy 4 ปีที่แล้ว +1

      ​@@justmeandopensource No problem. Its wasy to watch with such great content :) Thanks for the reply!! yeah that is what I meant. To allow worker nodes to interact with RDS endpoint. So does the security group of RDS need to allow access for the nodes and the security group of the nodes need to allow access to RDS. Assuming that the RDS instance and the nodes live in the same VPC (which I think is the most efficient approach): Does the RDS instance need to live in a private subnet on the same VPC? Is that a good approach? In which case, does a private subnet need to be added to the example?

    • @justmeandopensource
      @justmeandopensource  4 ปีที่แล้ว +1

      Yes RDS needs to be in a private subnet unless you want external public accesd directly to your RDS. It can be in the same vpc or different. If in different vpc, you need to make sure you have vpc peering and routing setup.

  • @ankireddy5483
    @ankireddy5483 3 ปีที่แล้ว

    Awesome bro ,Can you please make a video for codepipeline deploy to ecs (EC2 ) for node projects with terraform

  • @noisehxbit2466
    @noisehxbit2466 10 หลายเดือนก่อน

    Hello Venkat, I Want to create EKS clusters and ALB . Will AWS charge me if i create resources for them for short time?

  • @manikumarsajjanapu7434
    @manikumarsajjanapu7434 3 ปีที่แล้ว

    Hi, I am getting below error while applying in terraform, from windows10
    Error: error waiting for EKS Node Groupe (terraform-eks-demo:demo) to create: unexpected state 'CREATE_FAILED', wanted target 'ACTIVE'. last error: %!s()

    │ with aws_eks_node_group.demo,
    │ on eks-worker-nodes.tf line 41, in resource "aws_eks_node_group" "demo":
    │ 41: resource "aws_eks_node_group" "demo" {

  • @myvillagemyfriends7306
    @myvillagemyfriends7306 4 ปีที่แล้ว +1

    Please upload a video on kubespray using terraform aws eks

    • @justmeandopensource
      @justmeandopensource  4 ปีที่แล้ว +2

      Thanks for watching. Kubespray is based on Ansible for automation and terraform is different.

    • @myvillagemyfriends7306
      @myvillagemyfriends7306 4 ปีที่แล้ว

      @@justmeandopensource thank you. Please upload kubespray using ansible aws eks

  • @nataraj1929
    @nataraj1929 3 ปีที่แล้ว

    It's really great video, kindly help me how to add more masters and workers to existing eks cluster, thanks

  • @manasupadhyay8101
    @manasupadhyay8101 3 ปีที่แล้ว +1

    Hey Venkat
    I am unable to play this video after a minute it goes on buffer mode

    • @justmeandopensource
      @justmeandopensource  3 ปีที่แล้ว

      Hi Manas, I am not sure what went wrong with this video. TH-cam seems to have problem on just this one video in my playlist.
      I can't fix it but you can watch it if you change the video resolution to 360p.

  • @indrajeetsohoni4315
    @indrajeetsohoni4315 3 ปีที่แล้ว

    Hey Venkat what if I want to add another kubernetes master node to the cluster can you please let me know what needs to be done?

  • @sanyamgrover1
    @sanyamgrover1 3 ปีที่แล้ว +1

    Which image is being used in worker nodes in this EKS video..?

    • @justmeandopensource
      @justmeandopensource  3 ปีที่แล้ว +2

      Amazon Linux 2 image is the default but you have an option to choose from a list.
      registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/eks_node_group
      Look for ami_type in the above link.

    • @sanyamgrover1
      @sanyamgrover1 3 ปีที่แล้ว +1

      @@justmeandopensource How do i deploy a django app with Redis from Docker-compose file in EKS using Terraform..?

    • @justmeandopensource
      @justmeandopensource  3 ปีที่แล้ว +1

      @@sanyamgrover1 Terraform is best suited for deploying infrastructures. There are other better ways to deploy apps/workloads onto k8s cluster.

  • @krishnasainallapaneni4835
    @krishnasainallapaneni4835 2 ปีที่แล้ว

    Unable to connect to the server: dial tcp [::1]:8080: connectex: No connection could be made because the target machine actively refused it.
    can you please help with this error

  • @GenerativeAI-Guru
    @GenerativeAI-Guru 3 ปีที่แล้ว +1

    Good Work!

    • @justmeandopensource
      @justmeandopensource  3 ปีที่แล้ว +1

      Thanks for watching.

    • @GenerativeAI-Guru
      @GenerativeAI-Guru 3 ปีที่แล้ว +1

      @@justmeandopensource Which terraform version you are using I am getting following error
      Warning: Version constraints inside provider configuration blocks are deprecated

      │ on providers.tf line 7, in provider "aws":
      │ 7: version = ">= 2.38.0"

      │ Terraform 0.13 and earlier allowed provider version constraints inside the provider configuration block, but that is now deprecated and will be removed in a future
      │ version of Terraform. To silence this warning, move the provider version constraint into the required_providers block.


      │ Error: Error in function call

      │ on vpc.tf line 12, in resource "aws_vpc" "demo":
      │ 12: tags = map(
      │ 13: "Name", "terraform-eks-demo-node",
      │ 14: "kubernetes.io/cluster/${var.cluster-name}", "shared",
      │ 15: )
      │ ├────────────────
      │ │ var.cluster-name is a string, known only after apply

      │ Call to function "map" failed: the "map" function was deprecated in Terraform v0.12 and is no longer available; use tomap({ ... }) syntax to write a literal map.

    • @justmeandopensource
      @justmeandopensource  3 ปีที่แล้ว +1

      @@GenerativeAI-Guru I used v0.12 I guess.

    • @GenerativeAI-Guru
      @GenerativeAI-Guru 3 ปีที่แล้ว

      @@justmeandopensource Thanks it works
      Do you have any reference for running terraform using git-cicd.yml and storing terraform state in s3 ?

  • @funmilade3007
    @funmilade3007 3 ปีที่แล้ว

    how do I see my codes in the visual studio codes so i can paste in the CLI

  • @niamhletter
    @niamhletter 4 ปีที่แล้ว +1

    Great video. Very well explained.

  • @kapilkaushal6178
    @kapilkaushal6178 3 ปีที่แล้ว

    Hey Venkat, Thanks for this awesome explanation. Actually , I am trying to create a cluster on aws and using the latest tag to build the resources. My resources are getting build successfully and I could see some resources created on the console like vpc , SG, Iam etc. But I could not see any machines created as part of the worker node. And also while navigating to the AWS EKS service I could see the cluster created but cannot see any thing inside that . Seems like some permission is missing but not sure. Can you please help.

    • @kapilkaushal6178
      @kapilkaushal6178 3 ปีที่แล้ว

      Also, As when I navigate to eks service and click on the new cluster then I am getting some info like " your current user or role does not have access to kubernetes objects on this EKS cluster"

  • @lakshminarayanans3927
    @lakshminarayanans3927 4 ปีที่แล้ว +1

    Hi venkat, Its pretty good. I have followed your video. You have deployed nginx from local to cluster. How to see the whether nginx deployed or not? Any particular URL to show?

    • @justmeandopensource
      @justmeandopensource  4 ปีที่แล้ว +1

      Hi, thanks for watching. If you just want to know whether nginx is deployed or not, you can do kubectl get all which will show whether the nginx pods are running fine. If you want to access the nginx application from your local machine, you will have to use loadbalancer or nodeport or port-forwarding.

    • @lakshminarayanans3927
      @lakshminarayanans3927 4 ปีที่แล้ว +1

      @@justmeandopensource many thanks,.I want to access nginx application.Do you have any video for loadbalancing or nodeport or port forwarding.

    • @justmeandopensource
      @justmeandopensource  4 ปีที่แล้ว +1

      @@lakshminarayanans3927 Just search in my Kubernetes playlist. I have over 100 videos on Kubernetes topic. I have covered the load balancing concept in various videos but nothing in particular.

    • @lakshminarayanans3927
      @lakshminarayanans3927 4 ปีที่แล้ว

      @@justmeandopensource, i will look at this. Many thanks

  • @swwapnilkulkarni7059
    @swwapnilkulkarni7059 4 ปีที่แล้ว +1

    Hi Venkat
    Can u make some video on CloudFormation

    • @justmeandopensource
      @justmeandopensource  4 ปีที่แล้ว +1

      Hi, thanks for watching. I have a separate series on AWS where I was planning to do few videos around CloudFormation. But I couldn't find time to record. If I were to upload videos, it will be in this series.
      th-cam.com/play/PL34sAs7_26wMKAl2wcDXb7ko65V8KDBzG.html

  • @ankushverma7957
    @ankushverma7957 4 ปีที่แล้ว +1

    Hello, I have one question, what was the reason to install Nginx server and after you installed why did you delete it??

    • @justmeandopensource
      @justmeandopensource  4 ปีที่แล้ว +1

      Hi Ankush, thanks for watching. I deployed nginx application just to verify that the cluster is working fine.

    • @ankushverma7957
      @ankushverma7957 4 ปีที่แล้ว +1

      @@justmeandopensource Thanks for your reply. Your videos are so helpful please make the whole tutorial on Terraform with some real-time labs.

    • @justmeandopensource
      @justmeandopensource  3 ปีที่แล้ว +1

      @@ankushverma7957 Sure. Will do.

  • @koolkeshi
    @koolkeshi ปีที่แล้ว

    Hello Venkat, thanks for this awesome video, but I'm running into this error error: error loading config file "C:\Users\\.kube\config": yaml: line 4: mapping values are not allowed in this context" this happened after I copied the kubeconfig file to ./kube/config. I have tried to check online for a solution but I don't find anything. Any help would be highly appreciated.

  • @ManishPandey-oq8wm
    @ManishPandey-oq8wm 4 ปีที่แล้ว +1

    please start videos on terraform

    • @justmeandopensource
      @justmeandopensource  4 ปีที่แล้ว +3

      Hi Manish, thanks for watching. I have that in my mind. Let me see if I have enough time to work on that series. Cheers.

  • @srinivaschowdary8886
    @srinivaschowdary8886 2 ปีที่แล้ว +1

    how can i get the source code

    • @justmeandopensource
      @justmeandopensource  2 ปีที่แล้ว +1

      git clone github.com/hashicorp/learn-terraform-provision-eks-cluster

  • @daniyarrisbaiuulu4917
    @daniyarrisbaiuulu4917 2 ปีที่แล้ว

    do you have a git repo link?

  • @Alpha-kt6hc
    @Alpha-kt6hc 2 ปีที่แล้ว

    Hi Venkat, I was able to create the EKS cluster using:
    assume_role {
    role_arn = "arn:aws:iam::234257617375:role/role_admin_temp"
    }
    Which is an ugly workaround when you don't have the mfa permission set for the user.
    I use aws-vault to manage my aws user credentials. I got unauthorized error after executing "kubectl cluster-info" -> (error: You must be logged in to the server (Unauthorized))
    Do you know why I am getting this? I think that it is because I am assuming a role to create the cluster and my user does not have the access to the server.

    • @justmeandopensource
      @justmeandopensource  2 ปีที่แล้ว +1

      Yeah I believe what you think is right although I haven't tried it myself to confirm.

  • @katuciaatootong7779
    @katuciaatootong7779 2 ปีที่แล้ว +1

    You did not provide the code

  • @ashok.9761
    @ashok.9761 4 ปีที่แล้ว +1

    Can I setup using t2.micro is possible

    • @justmeandopensource
      @justmeandopensource  4 ปีที่แล้ว +1

      Hi Ashok, thanks for watching. I haven't tried using t2.micro with EKS. These instance type has only 512MB RAM which is not sufficient to run as worker nodes. You can give it a try and see what happens.

    • @ashok.9761
      @ashok.9761 4 ปีที่แล้ว +1

      I have create all this things in t2.micro

    • @justmeandopensource
      @justmeandopensource  4 ปีที่แล้ว +1

      @@ashok.9761 Cool. For learning thats fine. But t2.micro with its limited cpu and memory won't cater even to the lightest workload.

    • @ashok.9761
      @ashok.9761 4 ปีที่แล้ว +1

      In this vpc
      I have to create additional 2 private subnets
      Plz tel me cidr block range using
      Count 2
      Cidr_block = "10.0.${count.index}.1/24
      But getting error

    • @justmeandopensource
      @justmeandopensource  4 ปีที่แล้ว +1

      @@ashok.9761 Networks are something you have to design. You will specify the network range while creating the VPC and the divide the network into subnets. You can use an online subnet calculator like www.subnet-calculator.com/ for this purpose. Thanks.

  • @rritsoftwaresolutions9566
    @rritsoftwaresolutions9566 ปีที่แล้ว

    nice please provide sourcecode link

  • @julianomoraisbarbosa
    @julianomoraisbarbosa 3 ปีที่แล้ว

    # TIL
    Tks !!!!

  • @lakshminarayanans3927
    @lakshminarayanans3927 4 ปีที่แล้ว

    once again i followed this video and trying to create. When i tried to hit "terraform apply" , it thrown below error. Whats the issue?
    error waiting for EKS Node Group (terraform-eks-demo:demo) creation: Ec2SubnetInvalidConfiguration: One or more Amazon EC2 Subnets of [subnet-018fc2a0efe34c37c, subnet-0ce71f0d5f8bbf027] for node group demo does not automatically assign public IP addresses to instances launched into it. If you want your instances to be assigned a public IP address, then you need to enable auto-assign public IP address for the subnet. See IP addressing in VPC guide: docs.aws.amazon.com/vpc/latest/userguide/vpc-ip-addressing.html#subnet-public-ip. Resource IDs: [subnet-018fc2a0efe34c37c subnet-0ce71f0d5f8bbf027]
    on eks-worker-nodes.tf line 41, in resource "aws_eks_node_group" "demo":
    41: resource "aws_eks_node_group" "demo" {

    • @dhanabalasingamjagannathan3135
      @dhanabalasingamjagannathan3135 4 ปีที่แล้ว

      I am having the same issue. any solution for this?

    • @dhanabalasingamjagannathan3135
      @dhanabalasingamjagannathan3135 4 ปีที่แล้ว +4

      @Lakshminarayanan S - I found the solution. you need to add the key "map_public_ip_on_launch = true" to the vpc.tf file as below and save the file. then execute terraform apply and that solved the issue.
      resource "aws_subnet" "demo" {
      count = 2
      availability_zone = data.aws_availability_zones.available.names[count.index]
      cidr_block = "10.0.${count.index}.0/24"
      vpc_id = aws_vpc.demo.id
      map_public_ip_on_launch = true

    • @lakshminarayanans3927
      @lakshminarayanans3927 4 ปีที่แล้ว

      @@dhanabalasingamjagannathan3135 , yes its working fine bro after added map_public_ip_on_launch = true.

  • @tprasanna3294
    @tprasanna3294 3 ปีที่แล้ว +2

    The concepts are really awesome, while running this code its is asking some config files.so i got struck with this error
    root@ip-172-31-26-108:~/terraform-provider-aws/examples/eks-getting-started# kubectl get nodes
    W0521 11:02:26.700220 2738 loader.go:223] Config not found: /etc/kubernetes/admin.conf
    The connection to the server localhost:8080 was refused - did you specify the right host or port?

    • @justmeandopensource
      @justmeandopensource  3 ปีที่แล้ว +1

      Thanks for watching. This video is about a year old and in Kubernetes space, things change quite frequently. I will have to check this video again to confirm whether something has changed or its just an issue in your setup.

    • @tprasanna3294
      @tprasanna3294 3 ปีที่แล้ว +1

      @@justmeandopensource thank s for the response.ols update the status

  • @nphariharan
    @nphariharan 3 ปีที่แล้ว +1

    Thank you so much for this video. It is very useful.