Create a private Kubernetes cluster on AWS EKS

Поделиться
HTML-код
  • Опубликовано: 29 июл 2024
  • In this video, we will learn how to Create a private Kubernetes cluster on AWS EKS.
    #aws #kubernetes #eks
    ▬▬▬▬▬▬ T I M E S T A M P S ⏰ ▬▬▬▬▬▬
    00:00 | Intro
    00:18 | Provision VPC & other resources
    01:55 | Provision private EKS cluster
    04:56 | Provision worker nodes
    08:40 | Provision jump servers
    11:05 | Install kubectl, configure aws
    13:23 | Update kubeconfig
    14:26 | Jump to EKS connectivity
    15:50 | Access EKS cluster via IAM role
    ▬▬▬▬▬▬ Important links❗️ ▬▬▬▬▬▬
    ► Install kubectl - docs.aws.amazon.com/eks/lates...
    ► Update kubeconfig - docs.aws.amazon.com/cli/lates...
    ► Enabling IAM principal access to your cluster -
    docs.aws.amazon.com/eks/lates...
    ▬▬▬▬▬▬ My Videos 📹 ▬▬▬▬▬▬
    Learn Terraform:
    ► 4 ways to structure your terraform projects - • 4 ways to structure yo...
    ► Three-tier architecture in AWS using Terraform - • Three-tier architectur...
    ► Terraform backend using S3 and Dynamodb with state locking | DevOps | Infrastructure as code - • Terraform backend usin...
    CI CD Tutorials:-
    ► Jenkins Tutorial - Java CI/CD Pipeline with GitHub, Maven & Tomcat - • Jenkins Tutorial - Jav...
    Learn AWS:-
    ► Access Private EC2 & RDS Instances Over The Internet Via Jump Server - • Access Private EC2 & R...
    ► 3 real-life scenarios to kick-start your AWS journey now!
    - • 3 real-life scenarios ...
    ► Demo - Delegate access across AWS accounts using IAM roles - • Demo - Delegate access...
    Learn Kubernetes:-
    ► Configure Kubernetes master-worker node using kubeadm on Amazon Linux - • Kubernetes master-work...
    ► Kubernetes namespaces explained - demo and use-cases - • Kubernetes namespaces ...
    Learn Jenkins:-
    ► Scale Jenkins using EC2 plugin - • Scale jenkins slave us...
    ► Jenkins role based authorisation strategy | Manage and assign roles | DevOps - • Jenkins role based aut...
    Learn DevOps:-
    ► Become a DevOps Engineer in 2021 | DevOp Engineer roadmap - • Become a DevOps Engine...
    ► Top 5 DevOps Certifications in 2021 | Learn DevOps - • Top 5 DevOps Certifica...
    ▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬
    ► Connect with me on LinkedIn: / ajitinamdar
    Disclaimer: Opinions expressed in this video are my own!

Комментарии • 76

  • @selvakumars6487
    @selvakumars6487 4 месяца назад +1

    This is an absolute gem!!! Amazing work Ajit, Thank you!

  • @gear6th679
    @gear6th679 9 месяцев назад +1

    fantastic demo

  • @preetgarach9424
    @preetgarach9424 7 месяцев назад

    So elegant, you are a gem brother 💯

  • @ibmuser13
    @ibmuser13 3 месяца назад

    great information ..... so many k8s concepts also covered like editing configmap ..... keep up the good work Ajit, may God bless you!

  • @villaran9295
    @villaran9295 5 месяцев назад

    Great tutorial, thank you!

    • @ajitinamdartech
      @ajitinamdartech  5 месяцев назад +1

      Thanks for your feedback! Glad it was helpful for you.

  • @bobmalo3335
    @bobmalo3335 9 месяцев назад +1

    This is great video thank you so much. This very help full.🤩

    • @ajitinamdartech
      @ajitinamdartech  9 месяцев назад

      Hello.
      Thank you so much for your feedback, glad you liked it!

  • @nareshbabuy8530
    @nareshbabuy8530 Год назад +1

    superb sir.......❤

  • @ruchitaayare4856
    @ruchitaayare4856 11 месяцев назад +5

    Amazing Content Can you please make an entire deep dive video into EKS from scratch with real-time production use cases

    • @ajitinamdartech
      @ajitinamdartech  11 месяцев назад

      Hi Ruchita,
      I’m glad it was useful for you. I have certainly planned more videos on EKS in the coming future. Please stay tuned.

    • @bhupenpal
      @bhupenpal 9 месяцев назад +1

      ​@@ajitinamdartech Hey Ajit,
      Any plans for the production grade EKS setup along with complete VPC, subnets, NAT and Route Tables?

    • @ajitinamdartech
      @ajitinamdartech  9 месяцев назад +1

      Hi @bhupenpal,
      I have planned an entire series on EKS. Please stay tuned.

  • @subhadipchanda3108
    @subhadipchanda3108 Год назад +1

    Excellent

  • @manabroy3036
    @manabroy3036 7 дней назад

    Thanks!!!!!

  • @udupimirror2068
    @udupimirror2068 Год назад +1

    U r the boss

  • @spkumar.17
    @spkumar.17 3 дня назад

    It's amazing tutorial
    Can you let me know what poets do I need to open while creating private eks using Terraform but here I am using ssm not jump server

  • @rahulpardeshi4427
    @rahulpardeshi4427 5 месяцев назад +1

    Thanks for informative video I am following the same steps for setting up my cluster and i am able to access it. But the issue is when i am deploying nginx-controller in my cluster, nginx-controller pods are in pending state due to below reason
    0/2 nodes are available: 1 node(s) didn't have free ports for the requested pod ports. preemption: 0/2 nodes are available: 2 No preemption victims found for incoming pod
    because 443 port is used for jump server access. I have tried all possible solutions from google but not able to make up my nginx-controller pods.
    please help me in this

    • @ajitinamdartech
      @ajitinamdartech  5 месяцев назад

      Hello,
      I didn’t understand how 443 port comes into picture here. Port 443 is on the EKS cluster. Can you please elaborate. Can you try with some other port.

  • @user-yu9ky6xh9n
    @user-yu9ky6xh9n 8 месяцев назад +1

    Very very helpful video.
    What if I use AWS Load balancer controller for private cluster. will it provision ALB NLB??

    • @ajitinamdartech
      @ajitinamdartech  6 месяцев назад

      Hello,
      We can provision both NLB as well as ALB. More details here - kubernetes-sigs.github.io/aws-load-balancer-controller/v2.2/guide/service/nlb/

  • @axaxxaxax7000
    @axaxxaxax7000 Год назад +1

    great video. Is it possible to create another video on setting up eks cluster through aws ci/cd and then deploy a docker container application on that cluster using pipeline.

  • @nitish7507
    @nitish7507 3 месяца назад +1

    Hey, i have followed all the above steps,
    Now i deployed an image of ECR repo, using the deployement.yaml and service.yaml file
    But, i want to get a public IP address(to check the route present in the spring boot app image), to see if the images i properly deployed or not
    How can i do that ?
    I am using "kubectl get svc auth-service" to get the external IP, but that is not working

    • @ajitinamdartech
      @ajitinamdartech  3 месяца назад

      Hello,
      Can you send me more details on my email id please?

  • @light-sg5sl
    @light-sg5sl 6 месяцев назад +1

    Hey ajit,
    I am still getting error saying
    Unauthorized
    Please help what to do
    When enter sts user identity command
    It gives details of iam user created
    But not able to login
    I open the port 443 for jump server as well
    Then again tried attaching i am role as u mentioned to jump server but when we try to change access using role
    I am not even able to cat on configmap yaml file
    What to do

    • @ajitinamdartech
      @ajitinamdartech  6 месяцев назад

      Hello,
      Please reach out to me at ajitinamdar.tech@gmail.com. Send me the required screenshots, and I will try to help. Thanks

  • @urbansounds814
    @urbansounds814 3 месяца назад +1

    it was a super explanation . iam facing an issue , when ever iam trying to add nosed to cluster from GUI am getting health issue error on nodes and failed to add nodes to cluster ? do you have any idea about this error ? thanks in advance . i tried twice bt ended up with same error . pls help

    • @ajitinamdartech
      @ajitinamdartech  3 месяца назад

      Hello,
      Can you send me more details on my email id please?

  • @mohanramv6511
    @mohanramv6511 5 месяцев назад

    hi , thanks for the video , when i try im getting an error,
    node creation failure : instance failed to join the kubernetes cluster
    can yu help on this

    • @ajitinamdartech
      @ajitinamdartech  5 месяцев назад

      Hello,
      Have you followed the video step by step? This error usually occurs when there is no outgoing internet connectivity from your worker nodes. Please check if NAT is created and your subnet is able to route through the NAT.

  • @srinimeka3204
    @srinimeka3204 11 месяцев назад +1

    Hi Ajit
    Creating eks cluster in private subnet with Aws endpoint it failing and getting nodes unable to join cluster
    Could you help me how to resolve issue

    • @ajitinamdartech
      @ajitinamdartech  11 месяцев назад

      Hi Srini,
      Are you following the video or trying something else?

  • @antonypraveen207
    @antonypraveen207 10 месяцев назад +1

    Kindly provide steps to create a self managed nodes and how to make it visible in eks console. With custom Ami.

    • @ajitinamdartech
      @ajitinamdartech  10 месяцев назад

      Sure, Antony. I’ll cover those in my upcoming videos.

  • @rehantayyab82
    @rehantayyab82 9 месяцев назад +1

    If we don't use jump server , we want to use session manager to access eks cluster , what is process for that ?

    • @ajitinamdartech
      @ajitinamdartech  9 месяцев назад

      Hi Rehan,
      We can use cloud shell, I’m going to create a separate video on that. Please stay tuned.

  • @user-sy6lq1it6f
    @user-sy6lq1it6f Год назад +1

    Hi Ajit, Is there a video, where we can deploy the pods in a eks private subnet or any document

    • @ajitinamdartech
      @ajitinamdartech  Год назад

      Hi,
      What’s your exact requirement?
      Yes you can deploy pods in a private subnet.

    • @user-sy6lq1it6f
      @user-sy6lq1it6f Год назад

      ​@@ajitinamdartech is there a way to access the eks other than jump server and deploying the pods in private subnet?
      any videos that you can share

    • @user-sy6lq1it6f
      @user-sy6lq1it6f Год назад

      @@ajitinamdartech how can we provide access to another aws account and to users?

  • @mfaraz669
    @mfaraz669 Год назад +1

    I have created cluster from root account and setup credentials using aws configure and able to access it but when i create iam role im getting error as error: You must be logged in to the server (Unauthorized)

    • @ajitinamdartech
      @ajitinamdartech  Год назад

      Hi,
      You have not performed all the steps as shown in the video.
      I assume you have not configured your aws user on your jump server.
      1. Have you configured aws user? aws configure?
      2. Does your aws user have access to eks cluster?

    • @light-sg5sl
      @light-sg5sl 6 месяцев назад

      Same issue I configured it still getting same error

  • @sangameshwaruppe1115
    @sangameshwaruppe1115 Год назад +1

    Hi @ajith Can I skip aws configure use only I AM role access and access the eks cluster without that through ec2? @13.33

    • @ajitinamdartech
      @ajitinamdartech  Год назад

      Hi Sangam,
      If the cluster is created by your IAM user, you will need the configure step. Or else if it is created by an IAM role you don’t need the aws configure.

    • @sangameshwaruppe1115
      @sangameshwaruppe1115 Год назад +1

      @@ajitinamdartech What I am doing is, I have created the eks cluster in the private mode and want to access through ec2 by attaching the I AM role of accessing eks ec2 is still in the same subnet with private ip as security group. but I am getting this issue You must be logged in to the server (Unauthorized)

    • @ajitinamdartech
      @ajitinamdartech  Год назад

      Yes because the eks cluster was not created using that role. The first login to the eks cluster is possible only using the same user/role which was used to create the cluster.

    • @ajitinamdartech
      @ajitinamdartech  Год назад

      Try creation the cluster using the same iam role which you want to use using the eksctl commands.

    • @sangameshwaruppe1115
      @sangameshwaruppe1115 Год назад +1

      @@ajitinamdartech that's great it's what exactly happened, so is there a way we can fix it just change the I'm role attached to ec2 should attach with the eks cluster creation role? Can I do it

  • @bharath4195
    @bharath4195 Месяц назад +1

    after deploy application. how we can access ?

    • @ajitinamdartech
      @ajitinamdartech  Месяц назад

      It depends how to deploy it, can you elaborate on your question?

    • @bharath4195
      @bharath4195 Месяц назад

      @@ajitinamdartech for example i deploy the application on a private cluster, how i can access publically

  • @yungbfresh1
    @yungbfresh1 20 дней назад

    How does someone remember ALL of this ?

  • @nikhilverma1552
    @nikhilverma1552 Год назад +1

    getting this error : You must be logged in to the server (the server has asked for the client to provide credentials) ....kindly reply

    • @ajitinamdartech
      @ajitinamdartech  Год назад

      Hi Nikhil,
      It seems you have missed some step. Can you watch the video again and see if anything you have missed?

    • @nikhilverma1552
      @nikhilverma1552 Год назад +1

      @@ajitinamdartech sir i have seen your video 2 times but getting same error...i don't know why even though i have followed some other youtube video.....result is same

    • @ajitinamdartech
      @ajitinamdartech  Год назад

      Are you trying to access the cluster from iam role or iam user?

    • @nikhilverma1552
      @nikhilverma1552 Год назад

      @@ajitinamdartech after using root secret key and access keys i m able to access my cluster. to access cluster from jump server use root keys is only solution or we can do something else also ?

    • @ajitinamdartech
      @ajitinamdartech  Год назад

      First of all you should never use root user for provisioning infrastructure.
      Create the eks cluster using an iam user and configure its secret and access key on the jump server to access for the first time. Once you are able to access the cluster, setup iam role to access your cluster which is demonstrated in the video. Please watch the video till the end, you should get an idea.