1
00:00:04,890 --> 00:00:08,340
What is the smallest unit in the Kubernetes world?

2
00:00:08,820 --> 00:00:10,140
In Docker world?

3
00:00:10,170 --> 00:00:12,940
Container is smallest unit.

4
00:00:12,960 --> 00:00:16,620
In Kubernetes, port is the smallest possible unit.

5
00:00:16,890 --> 00:00:20,280
And containers are created inside of the port.

6
00:00:20,370 --> 00:00:24,600
So port anatomy is following inside of the port.

7
00:00:24,630 --> 00:00:29,490
There could be containers, either one or even several containers.

8
00:00:29,820 --> 00:00:35,700
Also, there are shared volumes and shared network resources.

9
00:00:35,700 --> 00:00:37,980
For example, a shared IP address.

10
00:00:38,640 --> 00:00:46,530
This means that all containers inside of the same port share volumes and share IP address.

11
00:00:47,710 --> 00:00:54,310
And you must keep that in mind if you want to create multiple containers inside of the same port.

12
00:00:54,940 --> 00:00:59,230
Most common scenario, of course, is to have just a single container per port.

13
00:00:59,230 --> 00:01:06,520
But sometimes when containers have to be tightened together and they heavily depend on each other and

14
00:01:06,520 --> 00:01:12,910
they could exist in the same namespace, it is possible to create several containers in the same port.

15
00:01:14,710 --> 00:01:20,860
But again, single container per port is the most common use case.

16
00:01:22,910 --> 00:01:28,650
Also, please keep in mind that each port must be located on the same server.

17
00:01:28,670 --> 00:01:36,290
It is not possible to spread containers from one port across different servers in the Kubernetes cluster.

18
00:01:36,770 --> 00:01:37,550
One port.

19
00:01:37,550 --> 00:01:38,510
One server.

