Kubernetes Security Best Practices you need to know | THE Guide for securing your K8s cluster!

แชร์
ฝัง
  • เผยแพร่เมื่อ 15 พ.ค. 2024
  • Secure your K8s cluster with this Top 10 Kubernetes Security Best Practices | Kubernetes Security 101
    💙 Become a Kubernetes Administrator ► bit.ly/420TrA7
    💚 Become a DevOps Engineer - full educational program ► bit.ly/3q7Ir6X
    💛 Follow me on IG for behind-the-scenes-content ► bit.ly/2F3LXYJ
    ✅ Learn more about Kubernetes Backup and Restore with Kasten: • Kubernetes Backup and ...
    #kubernetes #devops #techworldwithnana
    ► Thank you Kasten for sponsoring this video 🙌
    ► Free Kubernetes Backup and Migration - Download Free Kasten K10 #1 Kubernetes Backup: www.kasten.io/nana
    In this video I talk about a super important topic, which is security in Kubernetes and what are some of the best practices for securing your Kubernetes cluster.
    The big challenge that we see in terms of Kubernetes security is that it's already so challenging to set up a Kubernetes cluster and to configure it to deploy the applications in it, that security often becomes the afterthought, adding on top of that already complex configuration. However we can't deny the importance of security, especially when the systems are so complex!
    Cloud applications actually become a very attractive target to a lot of hackers and this growing number of cloud native applications mostly use Kubernetes as a platform and that's where the relevance of knowing how to secure Kubernetes clusters comes into play.
    ▬▬▬▬▬▬ L I N K S 🔗▬▬▬▬▬▬
    Sign up to get notified about new upcoming courses ► www.techworld-with-nana.com/c...
    ▬▬▬▬▬▬ T I M E S T A M P S ⏰ ▬▬▬▬▬▬
    0:00 - Intro
    00:33 - Security in Cloud in general
    01:39 - Security in Kubernetes
    02:26 - Security as a Spectrum
    04:39 - BP 1 - Image Scanning
    09:45 - BP 2 - Run as Non-Root User
    11:08 - BP 3 - Users & Permissions with RBAC
    15:44 - BP 4 - Use Network Policies
    18:18 - BP 5 - Encrypt Communication
    19:06 - BP 6 - Secure Secret Data
    20:34 - BP 7 - Secure etcd
    22:05 - BP 8 - Automated Backup & Restore
    24:54 - BP 9 - Configure Security Policies
    26:50 - BP 10 - Disaster Recovery
    ▬▬▬▬▬▬ Want to learn more? 🚀 ▬▬▬▬▬▬
    Full Python course ► • Python Tutorial for Be...
    Full Docker course ► • Docker Tutorial for Be...
    Full K8s course ► • Kubernetes Tutorial fo...
    DevOps Tools explained ► bit.ly/2W9UEq6
    ▬▬▬▬▬▬ Connect with me 👋 ▬▬▬▬▬▬
    INSTAGRAM ► bit.ly/2F3LXYJ
    TWITTER ► bit.ly/3i54PUB
    LINKEDIN ► bit.ly/3hWOLVT
    FB group ► bit.ly/32UVSZP
    DEV ► bit.ly/3h2fqiO
    ▬▬▬▬▬▬ Courses & Bootcamp & Ebooks 🚀 ▬▬▬▬▬▬
    ► Become a DevOps Engineer - full educational program 👉🏼 bit.ly/45mXaer
    ► High-Quality and Hands-On Courses 👉🏼 bit.ly/3BNS8Kv
    ► Kubernetes 101 - compact and easy-to-read ebook bundle 👉🏼 bit.ly/3Ozl28x

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

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

    Please share with others, which K8s security best practice is important, which I didn't mention?
    💙 Become a Kubernetes Administrator ► bit.ly/420TrA7
    💚 Become a DevOps Engineer - full educational program ► bit.ly/3q7Ir6X
    💛 Follow me on IG for behind-the-scenes-content ► bit.ly/2F3LXYJ
    💡 Sign up to get notified about new upcoming courses ► www.techworld-with-nana.com/course-roadmap

  • @ayushsitoke2456
    @ayushsitoke2456 ปีที่แล้ว +29

    Awesome!
    1. Do Image Scanning for vulnerability
    2. Avoid root user for running container
    3. Manage User & Permission - RBAC
    4. Use Network policies or service mesh
    5. Encrypt Communication
    6. Secure secret data
    7. Secure etcd
    8. Backup & Restore
    9. Configure security policies
    10. Disaster Recovery

    • @aliandy.jf.nababan
      @aliandy.jf.nababan ปีที่แล้ว

      You're right, Nana is very good presenting concept basis for developer knowledge, especially when presenting strength weakness opportunity threat (SWOT) analisis kind of comparison of different DevOps tools👍

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

      So basically, protection at 3 layers,
      1. Network
      2. Application
      3. Data
      All above 10 points are in these category

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

    These security best practices are at root based on several infosec standards such as iso27001, and you have applied these for K8s beautifully.

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

    The more I watch your youtube videos, more it clarify basics of each K8s components!!! you are the best...!

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

    Nana, I love the way you explain each and every point. You are the best Teacher in the world. Thanks and appreciate all your hard work.

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

    Nana, your explanation skills are just great, as usual! 🙏❤️

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

    Best cloud and K8S security content. Bravo. Thank you for sharing.

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

    Really awesome, appreciate how you organized the content. Happy to learn good things.😀

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

    I learned more from this 30 Minute video than I did the entire Linux Foundation Kubernetes Security Essentials course. Thanks!

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

    Thank you Nana, your content always great and easy to understand.

  • @9sandy13
    @9sandy13 ปีที่แล้ว

    Great fan of your work and your tech videos, your explanation is really very helpful to understand the concepts, keep up the good work.

  • @lovehumanrace
    @lovehumanrace 2 หลายเดือนก่อน

    Fantastic overview! Just what I was looking for. Thank you. 🙏

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

    Security is a very important thing to take care of, thank you.

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

    Well explained Nana... thanks for making such a amazing content 👍

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

    Great explanation! Direct and clear to the topic 💯

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

    Excellent and very helpful video. Thanks Nana!

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

    Very helpful and made my day since I’ve been figuring out how to do this and I learned it so quick as I clicked into this video,thanks girl

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

    As usual, PERFECT. God Bless you.

  • @review.masahiro
    @review.masahiro 5 หลายเดือนก่อน

    love your content and clear explanation. it is 10/10 from me. thank you nana

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

    Nama you are pedagogical breaking down this security .Thanks

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

    you explanation is really understandable by every one. Simply superb work keep it up.

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

    Extremely helpful. Thank you.

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

    Great video Mam !!!, a very core feature which is rarely being used in companies for implementing k8s security,
    kindly also cover Locking Down Kubelet as its a backdoor for api server & image signature as its must to make sure that image is a legitimate one, Thank You

  • @shubamthokare
    @shubamthokare 5 หลายเดือนก่อน

    Thanks you. Is was very helpful for understanding the k8s security concept.

  • @jamallmahmoudi9481
    @jamallmahmoudi9481 7 หลายเดือนก่อน

    Hi,
    It was great and useful, thank you🙏

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

    Truly awesome, Thank You Nana !

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

    The word "best teacher" is too not enough to describe you. Thank you 🙏🙏🙏

  • @manasanayini2655
    @manasanayini2655 2 หลายเดือนก่อน

    Big thanks for the best lecture!!

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

    This is such a great stuff and important too! Thanks Nana! The best tutor!

  • @md.ishtayaqueahmad3170
    @md.ishtayaqueahmad3170 10 หลายเดือนก่อน +1

    Very well explained. Thank you very much for sharing such informative video.

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

    Nice Explanation..
    Also one of the best practices to secure Etcd is to encrypt it..

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

    Thank you Nana for the awesome explanation

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

    Thanks very much Nana for your great effort.

  • @thomash.8297
    @thomash.8297 2 ปีที่แล้ว +1

    Thank you, waited for that 😮

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

    Best explanation! Thanks, Nana!!

  • @nupeamanga9514
    @nupeamanga9514 6 หลายเดือนก่อน

    Thanks a lot for this priceless narratives

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

    Great stuff as usual!!

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

    Very clear explanation,thanks you so much

  • @picapicatchof8309
    @picapicatchof8309 3 หลายเดือนก่อน

    Hi, first of all I would like to thank you for your great effort to explain us the k8s cybersecurity issues and how to mitigate threats related to its deployment, just one the most important thing that also can improve the K8s security is the log management, it give you the possibility to control and monitor security issues in real time using for example syslog protocol to collect and treat them in a centralized areas. So, if you can focus on this issue in next time. Thanks.

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

    nice one! thank you Nana!

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

    Great video. Thank you so much. Can you suggest a enterprise grade tool that helps with most of these best practices rather than using different tools for each type

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

    Much needed video...was wondering about the security of kubernetes...You're being a Santa just keep fulfilling the wishes...Thanks for your time and effort

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

      My pleasure! I'm glad it was helpful 😊💙

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

    First of all this was a great video on this series. I have a question related to the point 10. You marked this as result of a successful attack but, if you just restore the cluster, could get attacked the same way so, there are any tool that lets you identify how it happened to solve the related security flaws? Thank you in advance.

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

    Thank you Nana!

  • @TamLe-sh2ru
    @TamLe-sh2ru 2 ปีที่แล้ว +1

    Thanks, great video!

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

    Thanks Nana, you rock!

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

    Thanks for always an easy to follow content and giving me more knowledge

  • @simon-rey
    @simon-rey ปีที่แล้ว

    Great video, very informative and smart ideas, thanks

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

    You have been great Nana - really appreciate you giving the right amount of details. I wanted to ask while I understand 3rd party product was mentioned for data recovery, I wanteed to ask if Volume Storage can help in protecting or recovering the application/config data in any which ways during a cyber event. If anyone can hep - wouldd be appreciated.

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

    Hi thanks for these videos. I have a request. If you find some time can you please make a video on how you learn a technology/concpet this thorough? For me, it takes couple of times reading and trying out before I understand the basics properly. If you have a shortcut, we would love to know.

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

    Awesome video !

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

    Many thanks, plenty of food for thought.

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

    Wonderful video 😍

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

    Great explanation...Thanks

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

    Great video! Greetings from Argentina!

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

    What a fabulous explanation, thank you kindly.

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

      Happy to hear! Appreciate your positive feedback! 💙

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

    Thank you so much for these valuable information

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

    knowledge ++
    many many ty

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

    Great overview.. thanks

  • @alexserbul
    @alexserbul 9 หลายเดือนก่อน

    Thank you!

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

    Nice informative video !

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

    Really helpful

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

    Great video👌

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

    Great explanation, this is top level content.

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

    Thank you for this awasome video

  • @s.sandeep
    @s.sandeep 2 ปีที่แล้ว +1

    Thanks!

  • @munnieswaroop
    @munnieswaroop 27 วันที่ผ่านมา

    Thank you

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

    Thanks nana

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

    Awesome bro

  • @Fayaz-Rehman
    @Fayaz-Rehman 2 ปีที่แล้ว +1

    Great - Thanks for sharing.

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

    thanks for the nice video! i habe got 2 doubts after watching the video:
    1. in point 5 you mention that pods traffic is unencrypted by default. is this only true for communication inside the cluster, i.e. is the host to host communication for both control plane and pods elements encrypted from the outside? if this is not the case, is it necessary to setup a VPN mesh between the k8s nodes or would that be an unusual overhead in regular k8s deployments?
    2. how about securing network access to cluster and its services on a TCP level? can port 6443 remain unprotected? should administrator always access the cluster protected services via port forwarding or is it best to publish ingresses on a protected subnet and then setup a VPN to push that subnet to authorized users? what are best/common cloud native practices here? is there any helm chart for that?
    thanks

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

    Great Stuff as usually

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

    for scan image, you could use anchore

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

    Bery good Video nana

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

    Thank you for the video! 🙏
    I’m interested in using Hashicorp Vault. Could you maybe make a video about it to? :)

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

      Thank you for your suggestion. Yes, we are thinking about making video about Vault.

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

    I really like the way you teach, I prefer your videos over udemy .....thanks a lot

  • @k.alipardhan6957
    @k.alipardhan6957 หลายเดือนก่อน

    would have been helpful to mention more details on scanning... static, dymanic, SCA, and Docker Scout.

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

    Great video! It would be nice if you inform the viewer whenever, you jump to a sponsored or affiliated component, such that the viewed knows that your view on that component is biased like with Kasten K10.

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

      Thanks for your valuable feedback! Sure, will try to make it clearer in the videos, when talking about the sponsored tool.

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

    hey nana, i like your content, do you have an advice for including security testing in the pipeline, like vulnerability scanning and compliance checks? For example how do i include cis benchmarks and vuln scanning and define thresholds that prevent unsecure workloads from going to production?

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

      Nice question

    • @stockmarket9449
      @stockmarket9449 4 หลายเดือนก่อน

      Image scanning happens in CI/CD and also Image registery regularly, we can consider to do such scanning at appropriate stage in deployment. Also we can consider to attach digital signature when run scanning is completed just before to start tranfer the image upon pull Image request from registery , and verify it at appropriate stage during deployment workflow.
      Please share your thoughts. Thank you!

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

    Hi Nana,discuss about what are the career paths in software field,it will be helpful,to set goal beside that

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

    Excellent

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

    One important point missing was a firewall between your cluster and the outside world.

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

    I've just started a job as DevSecOps and I have zero experience. I'm buying the course as it comes out!

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

      Good to hear! I'm sure it can be pretty challenging.

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

    i love u nana

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

    Just to help drive home the misconception of the security in cloud in general. Each cloud provider has a shared responsibility model. The cloud provider is responsible for the security OF the cloud and the customer is responsible for the security IN the cloud :)

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

    Hi nana was attended 3 times interview within a span of 1 month in tcs but 3rd time i got selected and they released offer and joining date too while doing background check previous two attempts they will consider? Normally they will. Check the candidate before attending interview right wether candidate is attended or not like?

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

    How to use regex in audit policy in k8s ?

  • @R-Kannada-DevOps
    @R-Kannada-DevOps 9 หลายเดือนก่อน

    How to delete already pulled images from cluster to release space .

  • @Thomas-1023
    @Thomas-1023 2 หลายเดือนก่อน

    I'm enchanted by this content. I had the pleasure of reading something similar, and I was completely enchanted. "Mastering AWS: A Software Engineers Guide" by Nathan Vale

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

    Does any one else feels like crying? I found peace finally!!!!

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

    Kubernetes secrets are not stored in ETCD. Secrets in k8s are stored in a separate "Secrets API" object in encrypted format within k8s.

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

    Just pointing out that at 19:30 you forgot a "=" at the end of your mongo-password secret. In fact, it should be "bW9uZ29wYXNzd29yZA==". Maybe I do have too much free time 😅?

  • @vanzoelmaulana4324
    @vanzoelmaulana4324 7 หลายเดือนก่อน

    actually sa can be used for human also

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

    💯💻

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

    Get NeuVector...done :)

  • @JamesMcCabe703
    @JamesMcCabe703 6 หลายเดือนก่อน

    Encryption: AWS engineers when using their KMS have a copy of the private key. So they become the insider threat. See arrest of Paige Thompson, AWS engineer who release Captial One customer data. Use you're own key management system.

  • @John-3692
    @John-3692 2 หลายเดือนก่อน

    This is exceptional in every way. I read a book with similar content, and it was exceptional in every way. "Mastering AWS: A Software Engineers Guide" by Nathan Vale

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

    After reading the NSA/CISA Kubernetes Hardening Guide, it's a no thank you. Managed Kubernetes platforms ftw. Especially D2IQ

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

    Anousa, Velavet

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

    not sure if actual tutorial or a list of product placements ...

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

      There is a single sponsored product in the video, which is K10. And I explicitly mention that in the video, that it's sponsored. All other tools are just examples. Plus, you can also ignore the tools and just focus on concepts. As I mentioned in my previous video, tools come and go, concepts stay. I hope this makes it clear.