https://github.com/fillmore-labs/name-service
https://github.com/fillmore-labs/name-service
grpc grpc-go grpc-server knative knative-serving postgresql
Last synced: 5 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/fillmore-labs/name-service
- Owner: fillmore-labs
- License: apache-2.0
- Created: 2023-08-22T10:43:35.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2026-01-17T03:27:49.000Z (5 months ago)
- Last Synced: 2026-01-17T15:21:56.133Z (5 months ago)
- Topics: grpc, grpc-go, grpc-server, knative, knative-serving, postgresql
- Language: Go
- Homepage:
- Size: 104 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 5
-
Metadata Files:
- Readme: README.adoc
- License: LICENSE
Awesome Lists containing this project
README
= Knative Name Service
:Date: 2023-08
:Revision: v0.1
:toc: macro
image:https://badge.buildkite.com/4af004d06982bb48f8459313b1232cd25db425c5f240e20eef.svg?branch=main[title="Buildkite build status",link=https://buildkite.com/fillmore-labs/name-service]
toc::[]
== 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
https://www.postgresql.org/docs/current/libpq-connect.html#LIBPQ-CONNSTRING[PostgreSQL connection URI],
i.e. `postgresql://user:password@host:5432/dbname`
It expects a existing user and database. For an example see
[source,shell]
kubectl apply -k k8s/postgres
== Deploy
[source,shell]
----
./deploy-name-service.sh
----
== Test
A test pod could be started with
[source,shell]
----
./run-name-client.sh
----