0
0
Microservicessystem_design~5 mins

Container networking in Microservices - Cheat Sheet & Quick Revision

Choose your learning style9 modes available
Recall & Review
beginner
What is container networking?
Container networking is the way containers communicate with each other and with the outside world. It connects containers so they can share data and services.
Click to reveal answer
intermediate
Name a common network model used in container orchestration platforms like Kubernetes.
The common network model is the "flat network" where every container gets its own IP address and can communicate directly with others without NAT (Network Address Translation).
Click to reveal answer
intermediate
What is a network namespace in container networking?
A network namespace isolates the network stack for a container. It means each container can have its own IP addresses, routing tables, and ports, separate from the host or other containers.
Click to reveal answer
advanced
Explain the role of a Container Network Interface (CNI).
CNI is a set of standards and plugins that help connect containers to networks. It manages IP address allocation and network setup for containers in a consistent way.
Click to reveal answer
advanced
What is the difference between bridge and overlay networks in container networking?
Bridge networks connect containers on the same host, like a local switch. Overlay networks connect containers across multiple hosts, creating a virtual network over the physical one.
Click to reveal answer
Which of the following best describes a network namespace?
AA physical network switch
BAn isolated network environment for a container
CA type of container image
DA storage volume for containers
What does CNI stand for in container networking?
AContainer Network Isolation
BContainer Node Integration
CContainer Network Interface
DCloud Network Infrastructure
Which network type connects containers across multiple hosts?
AOverlay network
BHost network
CBridge network
DLoopback network
In Kubernetes, how do containers typically communicate within a pod?
AUsing separate IP addresses
BThrough external load balancer
CVia host network only
DUsing shared network namespace
What is the main purpose of a bridge network in container environments?
AConnect containers on the same host
BConnect containers across different hosts
CProvide internet access to containers
DIsolate containers from the host
Describe how container networking allows containers to communicate within the same host and across multiple hosts.
Think about local vs virtual networks and how IP addresses are assigned.
You got /4 concepts.
    Explain the concept of network namespaces and why they are important in container networking.
    Imagine each container having its own private network space.
    You got /4 concepts.