Skip to content

Latest commit

 

History

History
44 lines (29 loc) · 936 Bytes

README.adoc

File metadata and controls

44 lines (29 loc) · 936 Bytes

Knative Name Service

Purpose

An sample Knative service that interfaces with a database.

Configuration

On startup, the service expects an environment variable POSTGRES_URL or to be set.

PostgreSQL Configuration

The POSTGRES_URL should be in the form of a PostgreSQL connection URI, i.e. postgresql://user:password@host:5432/dbname

It expects a existing user and database. For an example see

kubectl apply -k k8s/postgres

Deploy

./deploy-name-service.sh

Test

A test pod could be started with

./run-name-client.sh