19
JANUARY 2020 API Gateway & Ingress Management with Kong

with Kong API Gateway & Ingress Management · API Gateway & Ingress Management with Kong. Harry Bagdi Senior Engineer, Kong, Inc. Kong 2.0 Kong for Kubernetes overview 0.7 deep dive

  • Upload
    others

  • View
    36

  • Download
    0

Embed Size (px)

Citation preview

Page 1: with Kong API Gateway & Ingress Management · API Gateway & Ingress Management with Kong. Harry Bagdi Senior Engineer, Kong, Inc. Kong 2.0 Kong for Kubernetes overview 0.7 deep dive

JANUARY 2020

API Gateway & Ingress Management with Kong

Page 2: with Kong API Gateway & Ingress Management · API Gateway & Ingress Management with Kong. Harry Bagdi Senior Engineer, Kong, Inc. Kong 2.0 Kong for Kubernetes overview 0.7 deep dive

Harry Bagdi

Senior Engineer, Kong, Inc.

Page 3: with Kong API Gateway & Ingress Management · API Gateway & Ingress Management with Kong. Harry Bagdi Senior Engineer, Kong, Inc. Kong 2.0 Kong for Kubernetes overview 0.7 deep dive

■ Kong 2.0■ Kong for Kubernetes overview■ 0.7 deep dive■ Demo■ Roadmap

Page 4: with Kong API Gateway & Ingress Management · API Gateway & Ingress Management with Kong. Harry Bagdi Senior Engineer, Kong, Inc. Kong 2.0 Kong for Kubernetes overview 0.7 deep dive

Plugins for Kong can be built using Go programming language

Go plugins

Control-plane Kong nodes configure Data-plane Kong nodes

Hybrid mode - DP CP separation

New plugin: acme, which now automatically provisions and encrypts your traffic

Auto-SSL

Buffer requests in-memory and modify them

Buffered proxying

Page 5: with Kong API Gateway & Ingress Management · API Gateway & Ingress Management with Kong. Harry Bagdi Senior Engineer, Kong, Inc. Kong 2.0 Kong for Kubernetes overview 0.7 deep dive

5

Ingress controller for Kubernetes

Page 6: with Kong API Gateway & Ingress Management · API Gateway & Ingress Management with Kong. Harry Bagdi Senior Engineer, Kong, Inc. Kong 2.0 Kong for Kubernetes overview 0.7 deep dive

6

- Vendor-neutral spec defining external access to services inside k8s

- HTTP metadata based routing policies- Wide adoption

Page 7: with Kong API Gateway & Ingress Management · API Gateway & Ingress Management with Kong. Harry Bagdi Senior Engineer, Kong, Inc. Kong 2.0 Kong for Kubernetes overview 0.7 deep dive

7

apiVersion: networking/v1beta1kind: Ingressmetadata: name: finance-apisspec: rules: - host: example.com http: paths: - path: /bills backend: serviceName: bills servicePort: 80 - path: /orders backend: serviceName: orders servicePort: 443

Page 8: with Kong API Gateway & Ingress Management · API Gateway & Ingress Management with Kong. Harry Bagdi Senior Engineer, Kong, Inc. Kong 2.0 Kong for Kubernetes overview 0.7 deep dive

8

API-server

orders

Kong Controller bills

inventory

Page 9: with Kong API Gateway & Ingress Management · API Gateway & Ingress Management with Kong. Harry Bagdi Senior Engineer, Kong, Inc. Kong 2.0 Kong for Kubernetes overview 0.7 deep dive

9

API-server

orders

Kong Controller bills

inventory

Page 10: with Kong API Gateway & Ingress Management · API Gateway & Ingress Management with Kong. Harry Bagdi Senior Engineer, Kong, Inc. Kong 2.0 Kong for Kubernetes overview 0.7 deep dive

- Translates the Ingress policies into vendor-specific configurations

- Manages the communication between Kubernetes Control-plane and the proxy software

- Implementations exist for cloud-provider specific load-balancers and reverse proxy softwares

API-server Kong Controller

Page 11: with Kong API Gateway & Ingress Management · API Gateway & Ingress Management with Kong. Harry Bagdi Senior Engineer, Kong, Inc. Kong 2.0 Kong for Kubernetes overview 0.7 deep dive

11

API-server

orders

Kong Controller bills

inventory

Page 12: with Kong API Gateway & Ingress Management · API Gateway & Ingress Management with Kong. Harry Bagdi Senior Engineer, Kong, Inc. Kong 2.0 Kong for Kubernetes overview 0.7 deep dive

12

Page 13: with Kong API Gateway & Ingress Management · API Gateway & Ingress Management with Kong. Harry Bagdi Senior Engineer, Kong, Inc. Kong 2.0 Kong for Kubernetes overview 0.7 deep dive
Page 14: with Kong API Gateway & Ingress Management · API Gateway & Ingress Management with Kong. Harry Bagdi Senior Engineer, Kong, Inc. Kong 2.0 Kong for Kubernetes overview 0.7 deep dive
Page 15: with Kong API Gateway & Ingress Management · API Gateway & Ingress Management with Kong. Harry Bagdi Senior Engineer, Kong, Inc. Kong 2.0 Kong for Kubernetes overview 0.7 deep dive
Page 16: with Kong API Gateway & Ingress Management · API Gateway & Ingress Management with Kong. Harry Bagdi Senior Engineer, Kong, Inc. Kong 2.0 Kong for Kubernetes overview 0.7 deep dive

16

Page 17: with Kong API Gateway & Ingress Management · API Gateway & Ingress Management with Kong. Harry Bagdi Senior Engineer, Kong, Inc. Kong 2.0 Kong for Kubernetes overview 0.7 deep dive

17

- Round robin, weight based, least conn- Sticky session, hash based- Active & passive health-checks (TCP/HTTP)

Load balancing

- Route by HTTP Method- Route by header

Routing

●●●

Plugins

- cert-manager: automated TLS certs- external-dns: automate DNS records

Integrations

Page 18: with Kong API Gateway & Ingress Management · API Gateway & Ingress Management with Kong. Harry Bagdi Senior Engineer, Kong, Inc. Kong 2.0 Kong for Kubernetes overview 0.7 deep dive

- L4 TCP/TLS routing- Ingress v2 API- Knative integration- DP-CP separation

18

Page 19: with Kong API Gateway & Ingress Management · API Gateway & Ingress Management with Kong. Harry Bagdi Senior Engineer, Kong, Inc. Kong 2.0 Kong for Kubernetes overview 0.7 deep dive

19

Install Kong for Kubernetes:kubectl apply -f https://bit.ly/k4k8s

Free lab environment (k8s in your browser)https://konglabs.io/kubernetes

Getting help#kong channel in Kubernetes Slack

Kong for Kubernetes Demohttp://bit.ly/37GUvxN