feat: setup local k8s stack with siphon, nats and indexer

What does this MR do and why?

Sets up the minimal local k8s stack with a help of Tilt. Go code is for initial setup purposes and was generated by a model.

Setup:

You need k8s runtime. The fastest way to start running is to install Colima and start it with k8s enabled:

colima start --kubernetes --vm-type=vz --vz-rosetta # use rosetta emulation to ensure correct behaviour for x64 images

Set WAL mode for your GDK Postgresql to logical:

  1. Open file /path/to/gdk/postgresq/data/postgresql.conf.
  2. Edit/uncomment setting: wal_level = logical.

Configure your GDK Postgresql to listen to TCP:

gdk config set postgresql.host localhost
gdk reconfigure
gdk psql

Grant permissions to the container user in psql:

CREATE ROLE nonroot WITH LOGIN PASSWORD '';
ALTER ROLE nonroot WITH SUPERUSER;

In knowledge-graph make sure you install Tilt and Helm via mise:

mise install

You can now run whole Tilt stack:

tilt up

#292 (closed)

Testing

image

image

Performance Analysis

  • This merge request does not introduce any performance regression. If a performance regression is expected, explain why.
Edited by Bohdan Parkhomchuk

Merge request reports

Loading