stock-demo

command module
v0.0.0-...-0fcc64d Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 3, 2023 License: MIT Imports: 13 Imported by: 0

README

Stock app demo

Buy some fake produce. Mainly to manage some stateful data in postgres DB

First create a namespace

kubectl create ns stock-demo

Then install postgres via helm for example

helm repo add bitnami https://charts.bitnami.com/bitnami
helm install -n stock-demo --set global.postgresql.auth.username=root --set global.postgresql.auth.password=notsecure --set global.postgresql.auth.database=stock stockdb bitnami/postgresql

Then deploy the app. Service deploys as LoadBalancer

kubectl -n stock-demo apply -f https://raw.githubusercontent.com/tdewin/stock-demo/main/kubernetes/deployment.yaml
kubectl -n stock-demo apply -f https://raw.githubusercontent.com/tdewin/stock-demo/main/kubernetes/svc.yaml

After deployment, use /init to create the basic table and insert some fake produce

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL