Slide 6
Slide 6 text
Kubernetes and Pods - IP Edition!
Those IPs are private and we always define private IPs so that they don’t conflict with Public
IPs attached to internet services.
CIDR is what does that and there are various ranges we can use to define that.
10.0.0.0/24 - Each block can take 8 bits.
To calculate the range in one block, subtract 32 from 24 which gives 8
Do 2^(answer) - 1 to get the number to add to the value already there = 2^8 - 1 = 255
So we get 10.0.0.0 to 10.0.0.(0 + 255)
If we have something like 10.32.0.0/14, we get 18(2, 8, 8), which is
10.32.0.0 to 10.(32 + 3).(0 + 255).(0 + 255) = 10.32.0.0 to 10.35.255.255
Or just use an online calculator: https://www.ipaddressguide.com/cidr 6