Skip to content
A proxy that lets XHRs access services in Knative.
JavaScript
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.gitignore
README.md
app.js
package-lock.json Initial commit Feb 12, 2019
package.json
sampleInput.txt

README.md

knative-proxy

A node.js proxy for invoking Knative services on behalf of XHRs. This code exists because Knative by default requires a certain value in the HOST header. That value by default is servicename.namespace.example.com. Unfortunately, XHRs aren't allowed to set the HOST header value, so they can't access Knative services.

This repo is part of an interactive Knative and serverless tutorial, the Compile Driver, a ride at an imaginary theme park called Coderland.

Environment variables

There are three environment variables you can set when you run npm start:

  1. PORT - the port number for the service. Default is 8888.
  2. PROXY_URL - The URL for the Knative cluster. Default is http://192.168.99.100:31380/overlayImage.
  3. PROXY_HOST - The value for the HOST header. Default is overlayimage.knativetutorial.example.com.nip.io.

IMPORTANT LINKS

📓 Knative Tutorial Docs

🎁 Knative Tutorial repo

Part 1: Introduction to Serverless with Knative

📄 ARTICLE: Part 1: Introduction to Serverless with Knative

🎬 VIDEO: Part 1: Introduction to Serverless with Knative

🎁 REPO: Image overlay

Part 2: Building a Serverless Service

📄ARTICLE: Part 2: Building a Serverless Service

🎬 VIDEO: Part 2: Building a Serverless Service

🎁 REPO: Photo store

Part 3: Deploying a Serverless Service to Knative

📄ARTICLE: Part 3: Deploying a Serverless Service to Knative

🎬 VIDEO: Part 3: Deploying a Serverless Service to Knative

🎁 REPO: Knative proxy


Coderland 🎢🚀🎡 is a place for learning. Developer Training and Red Hat Software: Red Hat Developer.

You can’t perform that action at this time.