K8S ON
OPENSTACK
DOCKER NETWORKING ON
OPENSTACK NEUTRON
 @ Kakao Corp.이 승
Known as Niko Bellic
KUBERNETES
Manage a cluster of Linux containers as a single system to
accelerate Dev and simplify Ops.
K8S PODS
co-located group of containers and volumes
each Pod requires dedicated IP
COMMON PRACTICE
overlay 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
| | | | {"subnet_id": "...", "ip_address": "172.16.128
| | | | {"subnet_id": "...", "ip_address": "172.16.128
| | | | {"subnet_id": "...", "ip_address": "172.16.128
| | | | {"subnet_id": "...", "ip_address": "172.16.128
| | | | {"subnet_id": "...", "ip_address": "172.16.128
| | | | {"subnet_id": "...", "ip_address": "172.16.128
| | | | {"subnet_id": "...", "ip_address": "172.16.128
| | | | {"subnet_id": "...", "ip_address": "172.16.128
| | | | {"subnet_id": "...", "ip_address": "172.16.128
| | | | {"subnet_id": "...", "ip_address": "172.16.128
| | | | {"subnet_id": "...", "ip_address": "172.16.128
| | | | {"subnet_id": "...", "ip_address": "172.16.128
| | | | {"subnet_id": "...", "ip_address": "172.16.128
DOCKER NETWORK
cite-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 yaml
apiVersion: v1
kind: Pod
metadata:
...
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?

[2015-11월 정기 세미나]K8s on openstack