using istio and envoy for edge routing in cloud foundry
play

Using Istio and Envoy for Edge Routing in Cloud Foundry Shubha - PowerPoint PPT Presentation

Using Istio and Envoy for Edge Routing in Cloud Foundry Shubha Anjur Tupil Product Manager, Pivotal Aaron Hurley Engineer, Pivotal Cloud Foundry is an Open Source Cloud Application Platform Integration friendly Any App Interoperable


  1. Using Istio and Envoy for Edge Routing in Cloud Foundry Shubha Anjur Tupil Product Manager, Pivotal Aaron Hurley Engineer, Pivotal

  2. Cloud Foundry is an … Open Source Cloud Application Platform Integration friendly Any App Interoperable Services Marketplace IaaS Agnostic Proven at Scale

  3. What users expect from a platform? Security ○ “mTLS everywhere” ○ Application Isolation ○ Policy configuration ○ App security ○ Secure app to app communication

  4. What users expect from a platform? Resiliency ○ Backup and Disaster Recovery ○ Resiliency of control plane components

  5. What users expect from a platform? High Availability ○ Availability Zones ○ Health Management for App Instances ○ Process monitoring ○ Resurrection for VMs

  6. What users expect from a platform? Telemetry ○ Logging ○ Metrics

  7. Cloud Foundry and Kubernetes Productivity Optimization Customizability Application Abstraction Layer Container Unified Project & Community Expansive

  8. Use cases (for Istio) in Cloud Foundry Traffic Management Security Cross Platform Workloads Granular Control ● Canary Releases ● mTLS everywhere ● k8s + CF ● Per application ● A/B Testing ● Secure app to app controls ● Staged rollouts communication ● Per route controls Protocol Support Flexible L7 routing Fault Tolerance ● HTTP/2 ● HTTP Header ● Circuit breaking ● UDP based routing ● Timeouts ● IPv6 ● Regex match ● Retries ● gRPC

  9. Motivations for using Istio in Cloud Foundry ● Community adoption ● Delivering value to our users faster ● Unified routing tier for K8s and non-K8s environments ● Simplify Cloud Foundry Routing architecture

  10. CF Routing Data Plane Cloud Foundry (Private Cloud) *.apps.example.com Load GoRouter App Balancer tcp.apps.example.com Load TCP App Balancer Router

  11. CF Routing Control Plane HTTP Route Cloud Mappings NATS GoRouter DB Controller Desired Workloads + routing metadata HTTP Route Mappings Diego DB TCP BBS (non-durable) Router Desired & Actual Workloads + routing metadata TCP Route Mappings Diego Cell ... TCP Route C C Routing Route Mappings DB API Emitter ... C C

  12. CF Routing Control Plane (In Progress) Route Cloud Istio URLs Mappings Copilot CF DB Controller Pilot Desired Workloads xDS APIs + routing metadata IP:Port Diego Envoy DB BBS (Gateway) (non-durable) Desired & Actual Workloads + routing metadata Diego Cell ● Cleanup of Orchestration Layer ... ● Unified Routing Tier C C Route ● Removed NATS, Routing API (DB), Emitter ... Route Emitter C C

  13. Implementation Details ● Envoy ○ v1.7 (latest) ○ gRPC ADS via Pilot ○ Gateway apiVersion : networking.istio.io/v1alpha3 kind : Gateway metadata : name : cloudfoundry-ingress spec : servers : - port : name : http number : 80 protocol : http hosts : - "*"

  14. Implementation Details ● Istio Pilot Discovery Service ○ In-Memory Config Store ○ CF Service Registry ■ Co-pilot Snapshotter

  15. Implementation Details ● Co-pilot ○ Interfaces with CF components ■ gRPC - Cloud Controller (URLs) ■ HTTP stream - Diego BBS (IP:Port) ○ gRPC - Pilot (Route Mappings) ● Mesh Config Protocol (TBD)

  16. Challenges ● Young project that moves quickly ● Istio built with Kubernetes in mind ● How should Istio functionality be exposed to Cloud Foundry users?

  17. Weighted Routing Example (Istio) reviews.yaml apiVersion: networking.istio.io/v1alpha3 kind: VirtualService metadata: creationTimestamp: null reviews name: reviews 90% v1 namespace: default resourceVersion: "1999" spec: Envoy hosts: $ istioctl create -f reviews.yaml - reviews reviews http: 10% - route: v2 - destination: host: reviews subset: v1 weight: 90 - destination: host: reviews subset: v2 weight: 10

  18. Weighted Routing Example (CF app manifest) reviews.yaml applications: - name: reviews-v1 path: ./v1/ reviews - name: reviews-v2 path: ./v2/ 90% v1 routes: - route: reviews.example.com Envoy destinations: - name: reviews-v1 $ cf push -f reviews.yaml weight: 90 reviews 10% - name: reviews-v2 v2 weight: 10

  19. Weighted Routing Example (CF CLI) reviews 90% v1 Envoy $ cf update-route reviews-v1 example.com --hostname reviews --weight 90 $ cf update-route reviews-v2 example.com --hostname reviews --weight 10 reviews 10% v2

  20. We’re on our way... Wins: ● Istio Gateway work ● Basic HTTP Routing through Envoy in CF ● CF e2e Test in Pilot Currently focused on: ● Mesh Config Protocol ● Scaling of Control Plane

  21. We love feedback! ○ Try out Cloud Foundry! ○ github.com/cloudfoundry/istio-release ○ How are you leveraging Istio? #istio in cloudfoundry.slack.com sanjurtupil@pivotal.io (Shubha) ahurley@pivotal.io (Aaron)

  22. Resources ● Get Started with Cloud Foundry ● istio-release (BOSH release) ● CF Weighted Routing Proposal ● CF/Istio Proposal ● CF/Istio Technical Design Doc ● Mesh Config APIs / Protocol ● routing-release (BOSH release) ● CF Routing Team Backlog

Download Presentation
Download Policy: The content available on the website is offered to you 'AS IS' for your personal information and use only. It cannot be commercialized, licensed, or distributed on other websites without prior consent from the author. To download a presentation, simply click this link. If you encounter any difficulties during the download process, it's possible that the publisher has removed the file from their server.

Recommend


More recommend