From the course: Kubernetes: Microservices
Unlock the full course today
Join today to access over 24,400 courses taught by industry experts.
Understanding network policies - Kubernetes Tutorial
From the course: Kubernetes: Microservices
Understanding network policies
- [Presenter] In the last chapter, you got hands-on experience deploying and querying a cluster IP and node port service, and you learned in what scenarios you would use a load balancer and external name service. In this chapter, I'll provide an overview of some advanced techniques to manage networking in a Kubernetes cluster, including network policies, ingress, and service meshes. First, network policies. An interesting fact. Unlike pods, deployments, namespaces and services, and all the other Kubernetes objects you know, Kubernetes does not have network policies by default. A CNI plugin with that feature is required. Remember, you change the CNI in your mini cube cluster from Kind Net to Calico, and that's because Calico can force network policies, while Kind Net cannot. A network policy allows you more fine grain control over the internal communication in a Kubernetes cluster. And you can write a policy that enforces rules about what kinds of things can and cannot communicate with…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.