Slide 1

Slide 1 text

Masaya Aoyama CyberAgent adtech studio Ingressͷछྨͱ࠷ۙͷIngressࣄ৘ @GKE ʙNetwork Endpoint Groups (NEGs)ʙ @Container SIG Meet-up 2018 Fall MasayaAoyama @amsy810 Masaya Aoyama CyberAgent adtech studio Ingressͷछྨͱ࠷ۙͷIngressࣄ৘ @GKE ʙNetwork Endpoint Groups (NEGs)ʙ @Container SIG Meet-up 2018 Fall MasayaAoyama @amsy810

Slide 2

Slide 2 text

Japan Container Days v18.04 Keynote Cloud Native Meetup Tokyo Organizer (+ KubeCon + JKD) CKA #138CKAD #2 Kubernetes @ThinkIT OpenStack / Kubernetes Contributor Masaya Aoyama (@amsy810) Infrastructure Engineer

Slide 3

Slide 3 text

what is Ingress page 03 L7 LoadBalancing extensions/v1beta1 NodePort Service Ingress Ingress L4 LoadBalancing v1 LoadBalancer + iptables Service (type: LoadBalancer)

Slide 4

Slide 4 text

what is Ingress page 04 Y^Y^Y^Y^Y^Y^Y^Y^Y^Y^Y

Slide 5

Slide 5 text

02 Pod-Offloaded Ingress K8s"8Nginx Pod L7.#+!(9+ L4 Service LoadBalancer: 03 Pod-Native Network Ingress Cloud Provider Ingress70 Pod-Native Network, LB-%Pod45 01 Cloud Provider Ingress GCPAWSAzure & L7 Load Balancer6' Type of Ingress implementation LoadBalancer (L7) Node Node NIC NIC VM Network Pod Network Pod Pod Pod type: NodePort kube-proxy (iptables) kube-proxy (iptables) *123 )/LB$Router

Slide 6

Slide 6 text

02 Pod-Offloaded Ingress K8s&+7S Nginx Pod L7E8/B6=U+ L4 Service LoadBalancerV 03 Pod-Native Network Ingress Cloud Provider IngressR1H Pod-Native Network0CLBD:PodOP 01 Cloud Provider Ingress GCPAWSAzure;. L7 Load Balancer Q< Type of Ingress implementation LoadBalancer (L7) Node Node NIC NIC VM Network Pod Network Pod Pod Pod type: NodePort kube-proxy (iptables) kube-proxy (iptables) 2?T(*"#&))K NodePort%*!G5*' 30000-32767U2800 ServicesV $ !Source IPSNAT@ X-Forwarded-For Header-, 2I Cloud Provider6L … 43AJMN >FLB9Router

Slide 7

Slide 7 text

02 Pod-Offloaded Ingress K8s"8Nginx Pod L7.#+!(9+ L4 Service LoadBalancer: 03 Pod-Native Network Ingress Cloud Provider Ingress70 Pod-Native Network, LB-%Pod45 01 Cloud Provider Ingress GCPAWSAzure & L7 Load Balancer6' Type of Ingress implementation LoadBalancer (L4) Node Node NIC NIC VM Network Pod Network Pod Pod Pod type: LoadBalancer kube-proxy (iptables) kube-proxy (iptables) Pod Pod Pod *123 )/LB$Router

Slide 8

Slide 8 text

02 Pod-Offloaded Ingress K8s& +3O Nginx Pod L7B4-?2:Q+ L4 Service LoadBalancerR 03 Pod-Native Network Ingress Cloud Provider IngressN/D Pod-Native Network.@LBA7PodKL 01 Cloud Provider Ingress GCPAWSAzure8, L7 Load Balancer M9 Type of Ingress implementation LoadBalancer (L4) Node Node NIC NIC VM Network Pod Network Pod Pod Pod type: LoadBalancer kube-proxy (iptables) kube-proxy (iptables) Pod Pod Pod & CPU/Memory'*=J Nginx Pod*')5G 10>EHI ;CLB6Router 03 Pod-Native Network Ingress Cloud Provider IngressN/D Pod-Native Network.@LBA7PodKL 3

Slide 9

Slide 9 text

02 Pod-Offloaded Ingress K8s"8Nginx Pod L7.#+!(9+ L4 Service LoadBalancer: 03 Pod-Native Network Ingress Cloud Provider Ingress70 Pod-Native Network, LB-%Pod45 01 Cloud Provider Ingress GCPAWSAzure & L7 Load Balancer6' *123 )/LB$Router Type of Ingress implementation LoadBalancer (L7) Node Node NIC NIC VM Network Pod Network Pod Pod Pod kube-proxy (iptables) kube-proxy (iptables)

Slide 10

Slide 10 text

GKE with NEGs #% " Kubernetes 1.10 VPC-Native Network'IP alias( !GKE 'Pod Network $& ( AWS alb-ingress-conrtroller amazon-vpc-cni-k8s By AWS Conatiner Hero mumoshu Node Node NIC NIC VM Network Pod Network Pod Pod Pod Router VM

Slide 11

Slide 11 text

03 Pod-Native Network Ingress Cloud Provider IngressR1H Pod-Native Network0CLBD:PodOP 01 Cloud Provider Ingress GCPAWSAzure;. L7 Load Balancer Q< 43AJMN >FLB9Router Type of Ingress implementation LoadBalancer (L7) Node Node NIC NIC VM Network Pod Network Pod Pod Pod kube-proxy (iptables) kube-proxy (iptables) 02 Pod-Offloaded Ingress K8s&+7S Nginx Pod L7E8/B6=U+ L4 Service LoadBalancerV 03 Pod-Native Network Ingress Cloud Provider IngressR1H Pod-Native Network0CLBD:PodOP 2?T(*"#&))K NodePort%*!G5*' 30000-32767U2800 ServicesV $ !Source IPSNAT@ X-Forwarded-For Header-, 2I Cloud Provider6L …

Slide 12

Slide 12 text

To be continue… page 012 type: LoadBalaner GKE-likeIngress Controller * NEGs… * Japan Container Days v18.04 – Keynote session https://speakerdeck.com/masayaaoyama/saibaezientoniokerupuraibetokontenaji-pan-akewozhi-eruji-shu

Slide 13

Slide 13 text

Using Container-native Load Balancing https://cloud.google.com/kubernetes-engine/docs/how-to/container-native-load-balancing Container Native Load Balancing on GKE (Cloud Next '18) https://www.youtube.com/watch?v=ficroL6bS-w Cloud Load Balancing Deep Dive and Best Practices (Cloud Next '18) https://www.youtube.com/watch?v=J5HJ1y6PeyE

Slide 14

Slide 14 text

Thank you for your attension follow me: @amsy810