Skip to content

fillmore-labs/name-service

Repository files navigation

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