"Fossies" - the Fresh Open Source Software Archive

Member "istio-1.6.5/samples/websockets/README.md" (8 Jul 2020, 1855 Bytes) of package /linux/misc/istio-1.6.5.tar.gz:


As a special service "Fossies" has tried to format the requested source page into HTML format (assuming markdown format). Alternatively you can here view or download the uninterpreted source code file. A member file download can also be achieved by clicking within a package contents listing on the according byte size field.

Tornado - Demo Websockets App

This is a sample application that demonstrates the use of an upgraded websockets connection on an ingress traffic when using Istio VirtualService. The app.yaml creates a Kubernetes Service and a Deployment that is based on an existing Docker image for Hiroakis's Tornado Websocket Example.

Notice: The addition of websockets upgrade support in v1alpha3 routing rules has only been added after the release of Istio v0.8.0.

Prerequisites

Install Istio by following the Istio Quick Start.

Installation

  1. First install the application service:

    kubectl create -f <(istioctl kube-inject -f samples/websockets/app.yaml)
    
    kubectl create -f samples/websockets/app.yaml
    
  2. Create the Ingress Gateway and VirtualService that enables the upgrade to Websocket for incoming traffic:

    kubectl create -f samples/websockets/route.yaml
    

Test

Cleanup

kubectl delete -f samples/websockets/route.yaml
kubectl delete -f samples/websockets/app.yaml