Click here to load reader
Upload
openstack-korea-community
View
9.324
Download
0
Embed Size (px)
Citation preview
K8S ONOPENSTACKDOCKER NETWORKING ONOPENSTACK NEUTRON
@ Kakao Corp.이 승
Known as Niko Bellic
KUBERNETESManage a cluster of Linux containers as a single system to
accelerate Dev and simplify Ops.
K8S PODSco-located group of containers and volumes
each Pod requires dedicated IP
COMMON PRACTICEoverlay network : slow & complicated
NAT : not compatible with legacy systems
Let's use Plain Old Linux Bridge.
PRE-ALLOCATE IPS ON VM
NEUTRON INFO$ neutron port-list+-----+------+-------------------+------------------------------------------------------+| id | name | mac_address | fixed_ips +-----+------+-------------------+------------------------------------------------------+| XXX | cite | xx:xx:xx:xx:xx:xx | {"subnet_id": "...", "ip_address": "172.16.128.128"} | | | | {"subnet_id": "...", "ip_address": "172.16.128.129"} | | | | {"subnet_id": "...", "ip_address": "172.16.128.130"} | | | | {"subnet_id": "...", "ip_address": "172.16.128.131"} | | | | {"subnet_id": "...", "ip_address": "172.16.128.132"} | | | | {"subnet_id": "...", "ip_address": "172.16.128.133"} | | | | {"subnet_id": "...", "ip_address": "172.16.128.134"} | | | | {"subnet_id": "...", "ip_address": "172.16.128.135"} | | | | {"subnet_id": "...", "ip_address": "172.16.128.136"} | | | | {"subnet_id": "...", "ip_address": "172.16.128.137"} | | | | {"subnet_id": "...", "ip_address": "172.16.128.138"} | | | | {"subnet_id": "...", "ip_address": "172.16.128.139"} | | | | {"subnet_id": "...", "ip_address": "172.16.128.140"} | | | | {"subnet_id": "...", "ip_address": "172.16.128.141"}
DOCKER NETWORKcite-node-01:~$ docker network inspect bridge[ { "Name": "bridge", "Id": "686c7352a697c038d642d2db95efadfc221c9e9044877b0f7a38756f5dc22e59" "Scope": "local", "Driver": "bridge", "IPAM": { "Driver": "default", "Config": [ { "Subnet": "172.16.128.0/23", "IPRange": "172.16.128.128/28", "AuxiliaryAddresses": { "DefaultGatewayIPv4": "172.16.128.1" } } ]
K8S POD$ kubectl get pod EXAMPLE -o yamlapiVersion: v1kind: Podmetadata: ...spec: containers: ...status: ... hostIP: 172.16.217.246 phase: Running podIP: 172.16.128.132
CONTAINER INFO$ docker inspect 820ee00d9b3396572adb4c376bb5ff3a9d45c515e597267e1621401f6add297a[{ ... "NetworkSettings": { "Gateway": "172.16.128.1", "IPAddress": "172.16.128.132", "IPPrefixLen": 23, "IPv6Gateway": "", "MacAddress": "02:42:ac:10:80:84", "Networks": { "bridge": { "Gateway": "172.16.128.1", "IPAddress": "172.16.128.132", "IPPrefixLen": 23, "IPv6Gateway": "", "GlobalIPv6Address": "", "GlobalIPv6PrefixLen": 0,
DEMO
QUESTIONS?