Bird
0
0

Given this CNI config snippet:

medium📝 Command Output Q13 of 15
Kubernetes - Networking
Given this CNI config snippet:
{
  "cniVersion": "0.4.0",
  "name": "mynet",
  "type": "bridge",
  "bridge": "cni0",
  "ipMasq": true,
  "ipam": {
    "type": "host-local",
    "subnet": "10.22.0.0/16"
  }
}

What IP subnet will pods get addresses from?
A172.16.0.0/12
B192.168.1.0/24
C10.22.0.0/16
DNone, IPs are assigned dynamically
Step-by-Step Solution
Solution:
  1. Step 1: Locate subnet in config

    The subnet is specified inside the "ipam" section as "10.22.0.0/16".
  2. Step 2: Understand IP assignment

    Pods will get IPs from the defined subnet range in the config.
  3. Final Answer:

    10.22.0.0/16 -> Option C
  4. Quick Check:

    Subnet in ipam = 10.22.0.0/16 [OK]
Quick Trick: Look inside "ipam" for subnet to find pod IP range [OK]
Common Mistakes:
  • Ignoring the subnet field
  • Choosing default Kubernetes pod subnet
  • Thinking IPs are random without subnet

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Kubernetes Quizzes