Slide 1

Slide 1 text

( Desmitificando ) Networking en Kubernetes Pablo Fredrikson - Lead SRE @ Invision @pablokbs

Slide 2

Slide 2 text

@pablokbs NO SOY VENEZOLANO ni chileno ● Pablo Fredrikson ● Argentino (Mendoza) ● Lead SRE @ Invision ● Mil años con Linux ● 2 Años con Kubernetes en Producción

Slide 3

Slide 3 text

@pablokbs STORY TIME

Slide 4

Slide 4 text

@pablokbs Kubernetes en 3 minutos - Conceptos ● Contenedor ● Pod ● Nodo / Worker ● Replicas ● Daemonset

Slide 5

Slide 5 text

@pablokbs Kubernetes en 3 minutos MASTER API server Kube Scheduler Controller Manager Cloud Controller Manager API Kubernetes Cluster Services API Kubernetes Cluster Services API etcd deployment pod1: - container1 - container2 replicas: 3 pod2: - container3 replicas: 2 Kubelet Kubelet Kubelet P1R3 P1R1 P2R1 P1R2 P2R2

Slide 6

Slide 6 text

@pablokbs Kubernetes en 3 minutos Kubelet P2R1 Kubelet P1R2 Kubelet Kubernetes Cluster Services API deployment pod1: - container1 - container2 replicas: 3 pod2: - container3 replicas: 2 P1R3 P1R1 P2R2 P1R3 P1R1

Slide 7

Slide 7 text

@pablokbs Expertos en Kubernetes @pablokbs

Slide 8

Slide 8 text

Qs? @pablokbs @InvisionApp

Slide 9

Slide 9 text

@pablokbs Pod Networking Kubernetes Cluster Services API Manager Workers Kubelet pod c c calico 10.0.10.34 Kubelet pod c c calico 10.0.10.37 ip route ip route ● Cada pod tiene su propio IP ● IP routing etcd

Slide 10

Slide 10 text

@pablokbs Kubernetes Services: Kube-proxy Kubelet Kubernetes Cluster Services API pod c c calico 10.0.10.34 ip routing kube-proxy Kubelet pod c c calico 10.0.10.37 ip routing kube-proxy Manager Workers ● Cluster IP ● Node Port ● Load Balancer

Slide 11

Slide 11 text

@pablokbs Kubelet Kubernetes Services: Ingress Kubernetes Cluster Services API Manager Workers myservice.example.com K C K C svc pod c c calico 10.0.10.34 Kubelet pod c c calico 10.0.10.37

Slide 12

Slide 12 text

@pablokbs Network Policies Kubernetes Cluster Services API Manager Workers Kubelet front c c calico 10.0.10.34 ip route + iptables Kubelet client c c calico 10.0.10.37 ip route + iptables Kubelet back c c calico 10.0.10.38 ip route + iptables

Slide 13

Slide 13 text

@pablokbs Conceptos de conectividad de Kubernetes ● Pod networking (CNI) ● Services (kube-proxy) ● Ingress ● Network Policy

Slide 14

Slide 14 text

@pablokbs Demo

Slide 15

Slide 15 text

Qs? @pablokbs @InvisionApp