/stolon-app

Opinionated stolon gravity/kubernetes app.

Primary LanguageGoApache License 2.0Apache-2.0

stolon-app

Stolon packaged as gravity app.

Provides

Kubernetes resouces in resources folder.

Once deployed or installed, this app will provide HA Postgres via stolon proxy servers, you can find endpoint using:

$  kubectl describe svc/stolon-postgres

Based on

This example included with stolon

Building

Building images

Execute all make target(could be omiited as it is default target).

$ make

Building self-sufficient gravity image(a.k.a Cluster Image)

Download gravity and tele binaries

make download-binaries

Dowload and unpack dependent application packages into state directory(./state by default)

make install-dependent-packages

Build cluster image

export PATH=$(pwd)/bin:$PATH
make build-app

Optional: Build cluster image with intermediate runtime

export PATH=$(pwd)/bin:$PATH
make build-app INTERMEDIATE_RUNTIME_VERSION=6.1.47

Prerequisites

  • docker >= 1.8
  • golang >= 1.13
  • GNU make
  • kubectl >= 1.15