Consul Service Mesh Tutorial for Beginners [Crash Course]

Поделиться
HTML-код
  • Опубликовано: 1 июн 2024
  • Complete Service Mesh and HashiCorp Consul tutorial - Real life demo of setting up Consul in Kubernetes multi cluster, multi cloud with failover 🚀
    💜 Complete DevSecOps Bootcamp: bit.ly/3tToJxt
    💙 Complete DevOps Bootcamp: bit.ly/471xVhQ
    🧡 GitLab Course with K8s, Microservices, Multi-Stage: bit.ly/3QwWRbi
    #servicemesh #hashicorp #techworldwithnana
    HashiCorp Consul is a service mesh solution. A service mesh is a dedicated infrastructure layer that controls service-to-service communication in a microservices architecture. It manages the routing of service requests to other services, performs load balancing, encrypts data, and discovers other services.
    ▬▬▬▬▬▬ R E F E R E N C E S 🔗▬▬▬▬▬▬
    ► Git repo: gitlab.com/twn-youtube/consul...
    ► Helm Chart Reference: developer.hashicorp.com/consu...
    ► Required Ports for Consul: developer.hashicorp.com/consu...
    ▬▬▬▬▬▬ Course Pre-Requisites ▬▬▬▬▬▬
    💡 Kubernetes, Terraform, AWS
    👉 Microservices explained: • Microservices explaine...
    👉 Service Mesh explained: • Istio & Service Mesh -...
    👉 Istio Setup Demo: • Istio Setup in Kuberne...
    👉 Kubernetes Crash Course: • Kubernetes Crash Cours...
    ▬▬▬▬▬▬ What you’ll learn in 2 Hours ✅ ▬▬▬▬▬▬
    ► What service mesh is, what problems it solves in microservices architecture
    ► How service mesh and Consul specifically works
    ► How Consul works in Kubernetes multi-cluster, hybrid environments with VMs
    ► Consul Architecture (Control Plane and Data Plane)
    ► Learn about
    - Proxy containers
    - Dynamic Service Discovery
    - Health Checks and Fault Tolerance
    ► Learn about secure networking - creating a zero-trust network:
    - Mutual TLS - mTLS
    - Authenticated Communication
    - Control Traffic with Service Intentions
    ► Hands-on demo 🧑🏽‍💻
    - create 2 K8s clusters on 2 different cloud platforms
    - deploy microservices application and Consul on it
    - configure failover, so in case one service is unhealthy or unreachable it routes the traffic to the healthy service instance on the other cloud platform
    ▬▬▬▬▬▬ T I M E S T A M P S ⏰ ▬▬▬▬▬▬
    00:00 - Intro and Course Overview
    01:24 - Why we need a service mesh?
    08:49 - What is a Service Mesh? What is Consul?
    09:52 - How it works without Consul - a K8s city
    13:42 - How it works with Consul Service Mesh
    20:12 - Secure Networking - How mTLS works
    24:10 - Zero-Trust Network - Authentication and Communication Rules
    26:29 - Observability
    28:16 - Consul Architecture - Consul Servers
    29:51 - Consul Architecture - Control Plane and Data Plane
    31:06 - Consul in multi-cluster environment
    33:47 - Consul in hybrid environment
    37:46 - Consul Multi-Cluster Multi-Cloud DEMO
    37:48 - Demo Overview
    40:15 - Create K8s cluster on AWS EKS
    52:14 - Deploy Microservices App on EKS
    1:00:54 - Deploy Consul on EKS
    1:23:50 - Configure Access Rules
    1:28:16 - Create on connect to 2nd K8s cluster
    1:32:28 - Deploy Consul and Microservices on LKE
    1:36:28 - Connect the clusters - Add peer connection
    1:42:18 - Configure failover to other cluster 🎉
    ▬▬▬▬▬▬ Connect with me 👋 ▬▬▬▬▬▬
    INSTAGRAM ► bit.ly/2F3LXYJ
    TWITTER ► bit.ly/3i54PUB
    LINKEDIN ► bit.ly/3hWOLVT
    Facebook group ► bit.ly/32UVSZP

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

  • @TechWorldwithNana
    @TechWorldwithNana  7 месяцев назад +17

    If this course was helpful for you, please like and share it with others, highly appreciate it😊💙
    ▬▬▬▬▬▬ T I M E S T A M P S ⏰ ▬▬▬▬▬▬
    00:00 - Intro and Course Overview
    01:24 - Why we need a service mesh?
    08:49 - What is a Service Mesh? What is Consul?
    09:52 - How it works without Consul - a K8s city
    13:42 - How it works with Consul Service Mesh
    20:12 - Secure Networking - How mTLS works
    24:10 - Zero-Trust Network - Authentication and Communication Rules
    26:29 - Observability
    28:16 - Consul Architecture - Consul Servers
    29:51 - Consul Architecture - Control Plane and Data Plane
    31:06 - Consul in multi-cluster environment
    33:47 - Consul in hybrid environment
    37:46 - Consul Multi-Cluster Multi-Cloud DEMO
    37:48 - Demo Overview
    40:15 - Create K8s cluster on AWS EKS
    52:14 - Deploy Microservices App on EKS
    1:00:54 - Deploy Consul on EKS
    1:23:50 - Configure Access Rules
    1:28:16 - Create on connect to 2nd K8s cluster
    1:32:28 - Deploy Consul and Microservices on LKE
    1:36:28 - Connect the clusters - Add peer connection
    1:42:18 - Configure failover to other cluster 🎉

    • @kodjoviamedimele3066
      @kodjoviamedimele3066 7 месяцев назад +3

      Hi Nana. Thanks for the course. I would like to know if you plan on doing the end to end GitHub actions to deploy to k8s cluster ?

    • @raohammadraza7056
      @raohammadraza7056 7 месяцев назад +1

      Yeah sure why not ,you are a great Teacher 🤲❤️

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

      @@kodjoviamedimele3066 Yes I want to create a complete GitHub actions course, but we don't have a fixed deadline for it yet :) Thanks for your suggestion though

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

      @@TechWorldwithNana ok thank you for the reply. I am looking forward to it

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

      Awesome thy

  • @sagarahire-ys3uj
    @sagarahire-ys3uj 7 месяцев назад +22

    learning curve and curiosity all of a sudden goes high when u comes up with new video...Devops comm is blessed to have u as a mentor

    • @TechWorldwithNana
      @TechWorldwithNana  7 месяцев назад +3

      That's great to hear, appreciate your comment 💙

  • @dipaksawle4207
    @dipaksawle4207 19 дней назад

    Thank you Nana for the most comprehensive course on Consul service mesh. You explain each and every concept in the simplest possible way. Looking forward to more such courses. Great job.

  • @acodersjourney
    @acodersjourney 4 месяца назад +3

    I appreciate your dedication to making complex coding concepts easy to understand. Thanks for being a fantastic teacher!

  • @zoey-hy1rl
    @zoey-hy1rl 3 месяца назад +2

    This was beautiful and easy to understand. Thank you Nana

  • @andriiguselietov8833
    @andriiguselietov8833 2 месяца назад +1

    Fantastic explanation and a practical demo. Thank you!

  • @chandurdissanayake9544
    @chandurdissanayake9544 5 месяцев назад +2

    Absolutely love this! Let's do more HashiCorp-related videos :) ❤♾

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

    Thanks a lot, Nana. You just have a way of simplifying complex concepts.
    I'm deeply grateful.

  • @user-qn6wz4bm7s
    @user-qn6wz4bm7s 4 месяца назад +2

    Awesome, understood service mesh in one go.😍

  • @radeksendecki9922
    @radeksendecki9922 6 месяцев назад +5

    Your work is absolutely great! You are bringing huge value to DevOps comminity. I love your explanations where you use the real life example to present the technology concept. Also love your 'first conxeption, then technology' approach.

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

    This is an Amazing tutorial , the best in this world that I have seen 👍👏

  • @MP07_World_Traveler
    @MP07_World_Traveler 6 месяцев назад +2

    Thanks a lot, simplify the complex concept

  •  2 месяца назад +1

    Thank you for the wonderful and extremely informative video :)

  • @michaele.2591
    @michaele.2591 6 месяцев назад +3

    Thanks!

  • @paulja
    @paulja 6 месяцев назад +2

    Thank you, deposition is one thing, but seeing it all in action is priceless. Great work 👏

  • @mehdimj_ir
    @mehdimj_ir 6 месяцев назад +1

    Great job on explaining Consul and how it works.
    I look forward to Hashicorp Nomad as k8s competitor.

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

    Awesome demo, awesome video. Thank you for your work!

  • @ousmanesoumailayaye8618
    @ousmanesoumailayaye8618 7 месяцев назад +2

    Excellent course, thank you! Champion!!!

  • @thush1990
    @thush1990 7 месяцев назад +2

    Nicely and clearly explained as you always do. Thank you.

  • @traxex1975
    @traxex1975 6 месяцев назад +2

    Great video 🎉
    Thank you so much Nana, for this live and valuable example ❤

  • @user-em7ws2ns9i
    @user-em7ws2ns9i 6 месяцев назад +2

    Thanks a lot nana, I really love your work!!!

  • @alifiroozizamani7782
    @alifiroozizamani7782 7 месяцев назад +2

    What an Awesome tutorial
    Thanks, dear Nana

  • @thomash.8297
    @thomash.8297 7 месяцев назад +2

    Nice video Nana, thanks!

  • @maleekeasedevopsec
    @maleekeasedevopsec 7 месяцев назад +4

    This is a great video and well explained. I could understand every aspect and got an insight on how to apply in production environment. You are one the best DevOps Tutor out there. Great Work @TechWorldwithNana 👍

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

      Thank you for your amazing feedback! Appreciate your comment! 😊

  • @durgeshkshirsagar116
    @durgeshkshirsagar116 7 месяцев назад +3

    Great content Nana 👍🏻👍🏻

  • @vijayraghv2208
    @vijayraghv2208 2 месяца назад

    You are a great teacher!. Liked your way of teaching with concepts first. Just short of words for this funtastic video.
    Any plans to come up with video for K8s new Gateway API

  • @meenasumit
    @meenasumit 7 месяцев назад +2

    Thank you for this awesome course. 👍

  • @mo.dia97
    @mo.dia97 7 месяцев назад +1

    Thank you very much for your hard work Nana! Amazing explanation

  • @TornikeRazmadze
    @TornikeRazmadze 7 месяцев назад +2

    ძააალიან კარგად ხსნი, თან საინტერესო თემებს. მადლობა ❤

  • @aaviko
    @aaviko 6 месяцев назад +1

    Thanks a lot, Nana.

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

    Super informative, thanks! Would be just amazing to see practical integration of consul with others Hashi tools: nomad and vault (probably using same google’s demo services).
    Oh, and something about self-hosted distributed storage in clusters please (nomad/k8) :)

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

    Nana, Great insites....
    Your explanation and Animation mach, make me understood this Topic...
    Its great efforts! I appreciate on the behalf of all learners❤

  • @AlexanderGross
    @AlexanderGross 7 месяцев назад +2

    Excellent course, thank you!

  • @abdoulhamidcoulibaly2385
    @abdoulhamidcoulibaly2385 7 месяцев назад +1

    Thanks for this great material.
    I've learned a bunch of things

  • @maxmetalm4108
    @maxmetalm4108 7 месяцев назад +1

    Thanks. It would be great to see the ways to set up failovers for statefullsets between different clusters)

  • @vladf7180
    @vladf7180 7 месяцев назад +1

    Great! Thanks for your content! It's pretty easy to understand all of service mesh concepts although english is not my native language

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

      I'm glad to hear that! Appreciate your comment!

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

    Excellent 👌. Keep give us updated on ISTIO. 🎉

  • @abessesmahi4888
    @abessesmahi4888 7 месяцев назад +1

    @TechWorldwithNana
    Could you cover Hashicorp Nomad?
    Thank you so much for your efforts

  • @narendrakaduru2603
    @narendrakaduru2603 2 месяца назад +1

    Thankyou Nana ❤

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

    This was an Excellent course on learning Service Mesh, Terraform, EKS and Consul. One of the feedback was the terraform destroy did not delete subnets due to the fact that Elastic Load Balancers was not deleted, which prevented the subnets from being deleted. I have to manually delete ELB to remove the subnets. It's weird. It's quite possible because these 3 ELB are not declared resources in terraform, and it's automatically created for managed node groups. Another question is why you created public subnets and what is the purpose? Is it for IGW only? EKS are in private subnets. Consul is deployed in EKS. Maybe I missed something. Again, thank you so much, Nana.

  • @saadullahkhanwarsi5853
    @saadullahkhanwarsi5853 7 месяцев назад +1

    Amazing, great work

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

      Thank you, happy to hear! :)

    • @kodjoviamedimele3066
      @kodjoviamedimele3066 7 месяцев назад +1

      @@TechWorldwithNana thanks for this course. Please could you create a complete end to end GitHub actions course to deploy microservices into kubernetes as you mentioned in the GitHub actions crash course?

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

    great video!

  • @rsavko
    @rsavko 7 месяцев назад +1

    Thanks a lot!

  • @hprangana
    @hprangana 7 месяцев назад +1

    thanks, a really good one

  • @Anshulmishra160
    @Anshulmishra160 7 месяцев назад +2

    As Nana knows every tool in a few days she will become a Goddess

  • @Shiki229
    @Shiki229 4 месяца назад +2

    Thanks

  • @shreeji_
    @shreeji_ 7 месяцев назад +3

    how about we extend this crash course videos to be a hashicorp stack series, where we get crash courses on all hashicorp products. (nomad, waypoint, ...)

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

    is that also way for multi region deployment?

  • @Fayaz-Rehman
    @Fayaz-Rehman 7 месяцев назад

    Thank you - Excellent - I love to know the matrix data before and after implementing the consul on a kubernetes cluster - like " kubectl top nodes " - Just to see, how much resources in terms of CPU and memory does consul consume . also can we live implement consul on a production kubernetes cluster ? with out deleting pods.

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

      in production, you can do it by increasing the number of replicas of the services and removing the instances without proxies. This way you won't have a down-time.

    • @Fayaz-Rehman
      @Fayaz-Rehman 7 месяцев назад

      @@TechWorldwithNana Great - much appreciated.

  • @wanyuclementclearance3125
    @wanyuclementclearance3125 7 месяцев назад +1

    Hello Nana please what is the recommended order of deploying consul? Do you deploy the application manefest files first before the consul helm chats or vice versa? Thanks so much for your efforts and may you find the energy to continue doing what you are doing for the tech world

    • @TechWorldwithNana
      @TechWorldwithNana  7 месяцев назад +1

      You can deploy in any order you want. You can deploy the service mesh in the cluster even after you have deployed all your applications and services without any issue.

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

      If you deploy Consul after your application pods, you just need to destroy the application pods and let them restart. They'll come back up with the Consul components. You'd need to restart them anyway for annotation changes to take effect.

  • @zinternetguy9678
    @zinternetguy9678 4 месяца назад

    Hello @TechWorldwithNana could you do the same concept with istio please ? thanks in advance

  • @musicthreads
    @musicthreads 7 месяцев назад +1

    I ❤ Nana!

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

    Any playground interactive realtimr projects labs available ??

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

    Please show us how to connect to an vm :) thanks for all your vids

  • @user-fo5zn9vu2s
    @user-fo5zn9vu2s 7 месяцев назад

    Hi Nana, are you offering this course in detail in TWN page? I need detailed course on service mesh. Thanks

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

      Yes, service mesh will be included in the DevSecOps bootcamp in part 2. Scheduled to release start of next year. But I don't have a separate deep dive course only on service mesh.

  • @gansgimmler3684
    @gansgimmler3684 7 месяцев назад +1

    спасибо

  • @Giga4G
    @Giga4G 7 месяцев назад +1

    Welcome back

  • @user-kr3yz4vz4r
    @user-kr3yz4vz4r 6 месяцев назад

    can you please make a video on collecting infra level metrics & logs from kubernetes cluster using opentelemetry using deamonset mode (without doing instrumentation to application/microservices). And View those metrics & logs in grafana and store those metrics & logs in Storage Accounts &/ Database. Is it possible?

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

    Hi. How peers' endpoints were specified? lke was a valid dns name? I don't think so

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

      I mean, in order to connect two clusters using consul or whatever, don't we need to specify somewhere a valid lb ip or dns name of proxy service of counterpart on every peers?

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

    I came across a problem, I am not sure how to address this. 18 VMs running applications and databases. 3 separate VMs (with bit higher capacity for now) are hosting docker swarm ready to host those applications from the VMs; but none of the apps in either platforms are mesh aware; I am trying to use consul's DNS service and custom python background service to listen to docker events and call consul API to [de]register services. Its a mess and very errorprone; I want to simplify this deployment of apps in docker (we're using private registry and its an airgapped system). Also we're running debian 12. No enterprise support.
    How do I also ensure proper service discovery to-from the legacy platform into the new environment? and the sysadmins are inclined towards swarm only, no kubernetes; please help!

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

    Please do a course for Jenkins

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

    Thank you for the great video first. To simulate failover, you delete the deployment. Is there no K8 object in this setup ? I would think of deleting the service object instead. And then the service disappears from EKS Consul GUI. If there is a K8 service object, I'd expect the service appear as failed. Thank you.

  • @raohammadraza7056
    @raohammadraza7056 7 месяцев назад +2

    #TeachworldwithNana Hello teacher, I'm a big fan you, teacher only one request create Java script complete course

    • @TechWorldwithNana
      @TechWorldwithNana  7 месяцев назад +1

      Thank you happy to hear! Was thinking to create a JavaScript crash course for beginners. What would you like to see in such a tutorial? Basics of variables, data types, functions etc?

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

      @@TechWorldwithNana I want to learn from beginner to advanced I have to learn everything about it, I am very fond of coding, Please Teacher create complete course beginer to advance. I'm glad you replied, I hope to come up with a complete course javascript on this soon

    • @TechWorldwithNana
      @TechWorldwithNana  7 месяцев назад +1

      @@raohammadraza7056 You can learn the web development basics as well as cloud and infrastructure basics in our IT beginner's course. IT's perfect for people who want an easy way to get into IT and are starting with 0 pre-knowledge. You can check it on our techworld-with-nana.com website.

  • @tshepontsiu824
    @tshepontsiu824 7 месяцев назад +1

    I was waiting for this what took you so long

  • @bedrilmoussakat210
    @bedrilmoussakat210 2 месяца назад +2

    Merci !

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

    How to make life complicated when you can just use a single AWS

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

      U need more exposure to the world of DevOps.

    • @joshwolfer
      @joshwolfer 7 месяцев назад +1

      Enterprise application networking with redundancy is rather complicated.

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

    Thank you nana , but too much abalogy makes me feel sleepy, we can understand better if you just avoid too much analogy, like ... apartment ..building...etc , good job !

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

    why u r not showing your face , if u show your beautiful face it will be more easy to understand the concept

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