Kubernetes CKAD Exam - Setup Egress Network Policy

แชร์
ฝัง
  • เผยแพร่เมื่อ 11 ธ.ค. 2021
  • In this video, we will explore Kubernetes NetworkPolicy.
    Sample Exam Question:
    In the default namespace, we have created 2 deployments frontend and backend. Both deployments are exposed using ClusterIP Services.
    Create a NetworkPolicy named fe-netpol to restrict outgoing TCP connections from frontend deployment and only allow those going to backend deployment.
    Note: Make sure the Policy allows outgoing traffic on TCP/UDP ports 53 for DNS resolution.
    In our case, we will setup deployment, services from scratch on a local 3 node Kubernetes cluster that I setup using KubeAdm. Then we will test the services are working. We will also test that frontend pod is able to connect to backend-service and outside world (like curl google.com)
    After we apply Egress Network Policy, the frontend pods should still be able to connect to backend service, but can not curl google.com. Our NetworkPolicy successfully restricted the outbound connections from the POD.
    #kubernetes #cka #ckad
  • วิทยาศาสตร์และเทคโนโลยี

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

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

    Great explanation bro thank you, expecting more videos from you

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

      Glad you like it! Thanks so much for suggesting the topic!

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

    Thanks for this video...need more videos like this👍

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

      Glad you like it! Please subscribe and share. I am planning to make more videos on Kubernetes, AWS and GCP.

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

    Hi....I really like your way of explanation...thank you. Could you please post a video on Node Affinity/Anti Affinity and Pod Affinity/Anti Affinity. Those topics are really so confusing. Thanks in Advance.

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

    Not getting this ports section in documentation.